[broonie-misc:spi-5.15 28/30] drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git spi-5.15
head: 7a4697b201a617907e4b440ae34df601d4755bef
commit: 0b89fc0a367edab09065af722894d186bd0ccb0d [28/30] spi: rockchip-sfc: add rockchip serial flash controller
config: alpha-allmodconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?...
git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc spi-5.15
git checkout 0b89fc0a367edab09065af722894d186bd0ccb0d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem * @@ got void *buffer @@
drivers/spi/spi-rockchip-sfc.c:456:32: sparse: expected void volatile [noderef] __iomem *
drivers/spi/spi-rockchip-sfc.c:456:32: sparse: got void *buffer
>> drivers/spi/spi-rockchip-sfc.c:465:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem * @@ got void *buffer @@
drivers/spi/spi-rockchip-sfc.c:465:51: sparse: expected void const volatile [noderef] __iomem *
drivers/spi/spi-rockchip-sfc.c:465:51: sparse: got void *buffer
vim +456 drivers/spi/spi-rockchip-sfc.c
447
448 static int rockchip_sfc_xfer_data_dma(struct rockchip_sfc *sfc,
449 const struct spi_mem_op *op, u32 len)
450 {
451 int ret;
452
453 dev_dbg(sfc->dev, "sfc xfer_dma len=%x\n", len);
454
455 if (op->data.dir == SPI_MEM_DATA_OUT)
> 456 memcpy_toio(sfc->buffer, op->data.buf.out, len);
457
458 ret = rockchip_sfc_fifo_transfer_dma(sfc, sfc->dma_buffer, len);
459 if (!wait_for_completion_timeout(&sfc->cp, msecs_to_jiffies(2000))) {
460 dev_err(sfc->dev, "DMA wait for transfer finish timeout\n");
461 ret = -ETIMEDOUT;
462 }
463 rockchip_sfc_irq_mask(sfc, SFC_IMR_DMA);
464 if (op->data.dir == SPI_MEM_DATA_IN)
> 465 memcpy_fromio(op->data.buf.in, sfc->buffer, len);
466
467 return ret;
468 }
469
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[kbuild] drivers/regulator/bd718x7-regulator.c:531:8: warning: Excessive padding in 'struct bd718xx_regulator_data' (8 padding bytes, where 0 is optimal).
by kernel test robot
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 794c7931a2428a656551f2179e6a093233a6e0aa
commit: e7095c35abfc5a5d566941a87434c0fd5ffb570f regulator: core: add
of_match_full_name boolean flag
date: 9 months ago
:::::: branch date: 12 hours ago
:::::: commit date: 9 months ago
config: arm-randconfig-c002-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project
44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e7095c35abfc5a5d566941a87434c0fd5ffb570f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
ARCH=arm clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
5 warnings generated.
drivers/regulator/as3722-regulator.c:46:8: warning: Excessive
padding in 'struct as3722_register_mapping' (14 padding bytes, where 2
is optimal).
Optimal fields order:
name,
sname,
n_voltages,
enable_reg,
control_reg,
sleep_ctrl_reg,
regulator_id,
vsel_reg,
vsel_mask,
enable_mask,
mode_mask,
sleep_ctrl_mask,
consider reordering the fields or adding explicit padding members
[clang-analyzer-optin.performance.Padding]
struct as3722_register_mapping {
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/regulator/as3722-regulator.c:46:8: note: Excessive padding
in 'struct as3722_register_mapping' (14 padding bytes, where 2 is
optimal). Optimal fields order: name, sname, n_voltages, enable_reg,
control_reg, sleep_ctrl_reg, regulator_id, vsel_reg, vsel_mask,
enable_mask, mode_mask, sleep_ctrl_mask, consider reordering the fields
or adding explicit padding members
struct as3722_register_mapping {
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
5 warnings generated.
>> drivers/regulator/bd718x7-regulator.c:531:8: warning: Excessive
padding in 'struct bd718xx_regulator_data' (8 padding bytes, where 0 is
optimal).
Optimal fields order:
dvs,
additional_inits,
additional_init_amnt,
init,
desc,
consider reordering the fields or adding explicit padding members
[clang-analyzer-optin.performance.Padding]
struct bd718xx_regulator_data {
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
drivers/regulator/bd718x7-regulator.c:531:8: note: Excessive padding
in 'struct bd718xx_regulator_data' (8 padding bytes, where 0 is
optimal). Optimal fields order: dvs, additional_inits,
additional_init_amnt, init, desc, consider reordering the fields or
adding explicit padding members
struct bd718xx_regulator_data {
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
Suppressed 4 warnings (4 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
drivers/gpu/drm/drm_self_refresh_helper.c:85:3: warning: Value
stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = -ENOMEM;
^ ~~~~~~~
drivers/gpu/drm/drm_self_refresh_helper.c:85:3: note: Value stored
to 'ret' is never read
ret = -ENOMEM;
^ ~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
4 warnings generated.
drivers/gpu/drm/drm_fb_helper.c:156:24: warning: Value stored to
'helper' during its initialization is never read
[clang-analyzer-deadcode.DeadStores]
struct drm_fb_helper *helper = info->par;
^~~~~~ ~~~~~~~~~
drivers/gpu/drm/drm_fb_helper.c:156:24: note: Value stored to
'helper' during its initialization is never read
struct drm_fb_helper *helper = info->par;
^~~~~~ ~~~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers.
Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
vim +531 drivers/regulator/bd718x7-regulator.c
ba08799e90b593 drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-05-30 525
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 526 struct reg_init {
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 527 unsigned int reg;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 528 unsigned int mask;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 529 unsigned int val;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 530 };
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 @531 struct bd718xx_regulator_data {
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 532 struct regulator_desc desc;
21b72156ede8b7 drivers/regulator/bd718x7-regulator.c Matti Vaittinen
2020-01-20 533 const struct rohm_dvs_config dvs;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 534 const struct reg_init init;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 535 const struct reg_init *additional_inits;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 536 int additional_init_amnt;
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 537 };
494edd266b945f drivers/regulator/bd71837-regulator.c Matti Vaittinen
2018-09-14 538
:::::: The code at line 531 was first introduced by commit
:::::: 494edd266b945f36908184433dd36eda1719cdb0 regulator/mfd: Support
ROHM BD71847 power management IC
:::::: TO: Matti Vaittinen <matti.vaittinen(a)fi.rohmeurope.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
1 year, 1 month
[pci:pci/misc 7/7] include/linux/pci.h:1725:73: error: omitting the parameter name in a function definition is a C2x extension
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/misc
head: 81e2ce35df9102989cefe180f41d78dd7fb8c9b9
commit: 81e2ce35df9102989cefe180f41d78dd7fb8c9b9 [7/7] PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
config: powerpc64-buildonly-randconfig-r004-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?i...
git remote add pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
git fetch --no-tags pci pci/misc
git checkout 81e2ce35df9102989cefe180f41d78dd7fb8c9b9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:83:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/irq.c:31:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:85:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/irq.c:31:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:87:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/irq.c:31:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:89:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/irq.c:31:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: error: performing pointer arithmetic on a null pointer has undefined behavior [-Werror,-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:91:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kernel/irq.c:49:
>> include/linux/pci.h:1725:73: error: omitting the parameter name in a function definition is a C2x extension [-Werror,-Wc2x-extensions]
static inline int __must_check __pci_register_driver(struct pci_driver *,
^
include/linux/pci.h:1726:27: error: omitting the parameter name in a function definition is a C2x extension [-Werror,-Wc2x-extensions]
struct module *,
^
8 errors generated.
--
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:115:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/mfd/sm501.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:117:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/mfd/sm501.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:119:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/mfd/sm501.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:121:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/mfd/sm501.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:123:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/mfd/sm501.c:18:
>> include/linux/pci.h:1725:73: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
static inline int __must_check __pci_register_driver(struct pci_driver *,
^
include/linux/pci.h:1726:27: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
struct module *,
^
drivers/mfd/sm501.c:222:20: warning: unused function 'sm501_dump_regs' [-Wunused-function]
static inline void sm501_dump_regs(struct sm501_devdata *sm) { }
^
9 warnings generated.
vim +1725 include/linux/pci.h
1718
1719 static inline void pci_set_master(struct pci_dev *dev) { }
1720 static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; }
1721 static inline void pci_disable_device(struct pci_dev *dev) { }
1722 static inline int pcim_enable_device(struct pci_dev *pdev) { return -EIO; }
1723 static inline int pci_assign_resource(struct pci_dev *dev, int i)
1724 { return -EBUSY; }
> 1725 static inline int __must_check __pci_register_driver(struct pci_driver *,
1726 struct module *,
1727 const char *mod_name)
1728 { return 0; }
1729 static inline int pci_register_driver(struct pci_driver *drv)
1730 { return 0; }
1731 static inline void pci_unregister_driver(struct pci_driver *drv) { }
1732 static inline u8 pci_find_capability(struct pci_dev *dev, int cap)
1733 { return 0; }
1734 static inline int pci_find_next_capability(struct pci_dev *dev, u8 post,
1735 int cap)
1736 { return 0; }
1737 static inline int pci_find_ext_capability(struct pci_dev *dev, int cap)
1738 { return 0; }
1739
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v4 3/6] iio: triggered-buffer: extend support to configure output buffers
by kernel test robot
Hi Mihail,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on 94a853eca720ac9e385e59f27e859b4a01123f58]
url: https://github.com/0day-ci/linux/commits/Mihail-Chindris/iio-Add-output-b...
base: 94a853eca720ac9e385e59f27e859b4a01123f58
config: i386-randconfig-a002-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/864c7d5f5d135f37baf9b65d13d186744...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mihail-Chindris/iio-Add-output-buffer-support-and-DAC-example/20210821-010349
git checkout 864c7d5f5d135f37baf9b65d13d186744535a8e4
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
clang-14: warning: optimization flag '-falign-jumps=0' is not supported [-Wignored-optimization-argument]
In file included from drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:9:
In file included from include/linux/device.h:15:
In file included from include/linux/dev_printk.h:16:
In file included from include/linux/ratelimit.h:6:
In file included from include/linux/sched.h:14:
In file included from include/linux/pid.h:5:
In file included from include/linux/rculist.h:11:
In file included from include/linux/rcupdate.h:27:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:60:
arch/x86/include/asm/thread_info.h:172:13: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
oldframe = __builtin_frame_address(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/thread_info.h:174:11: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
frame = __builtin_frame_address(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:57:41: warning: taking address of packed member 'msg' of class or structure '' may result in an unaligned pointer value [-Waddress-of-packed-member]
ret = cros_ec_cmd_xfer_status(ec_dev, &buf.msg);
^~~~~~~
>> drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c:365:35: error: too few arguments to function call, expected 7, have 6
IIO_BUFFER_DIRECTION_IN, NULL);
^
include/linux/iio/triggered_buffer.h:25:5: note: 'devm_iio_triggered_buffer_setup_ext' declared here
int devm_iio_triggered_buffer_setup_ext(struct device *dev,
^
3 warnings and 1 error generated.
vim +365 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
234
235 /**
236 * cros_ec_sensors_core_init() - basic initialization of the core structure
237 * @pdev: platform device created for the sensors
238 * @indio_dev: iio device structure of the device
239 * @physical_device: true if the device refers to a physical device
240 * @trigger_capture: function pointer to call buffer is triggered,
241 * for backward compatibility.
242 * @push_data: function to call when cros_ec_sensorhub receives
243 * a sample for that sensor.
244 *
245 * Return: 0 on success, -errno on failure.
246 */
247 int cros_ec_sensors_core_init(struct platform_device *pdev,
248 struct iio_dev *indio_dev,
249 bool physical_device,
250 cros_ec_sensors_capture_t trigger_capture,
251 cros_ec_sensorhub_push_data_cb_t push_data)
252 {
253 struct device *dev = &pdev->dev;
254 struct cros_ec_sensors_core_state *state = iio_priv(indio_dev);
255 struct cros_ec_sensorhub *sensor_hub = dev_get_drvdata(dev->parent);
256 struct cros_ec_dev *ec = sensor_hub->ec;
257 struct cros_ec_sensor_platform *sensor_platform = dev_get_platdata(dev);
258 u32 ver_mask, temp;
259 int frequencies[ARRAY_SIZE(state->frequencies) / 2] = { 0 };
260 int ret, i;
261
262 platform_set_drvdata(pdev, indio_dev);
263
264 state->ec = ec->ec_dev;
265 state->msg = devm_kzalloc(&pdev->dev,
266 max((u16)sizeof(struct ec_params_motion_sense),
267 state->ec->max_response), GFP_KERNEL);
268 if (!state->msg)
269 return -ENOMEM;
270
271 state->resp = (struct ec_response_motion_sense *)state->msg->data;
272
273 mutex_init(&state->cmd_lock);
274
275 ret = cros_ec_get_host_cmd_version_mask(state->ec,
276 ec->cmd_offset,
277 EC_CMD_MOTION_SENSE_CMD,
278 &ver_mask);
279 if (ret < 0)
280 return ret;
281
282 /* Set up the host command structure. */
283 state->msg->version = fls(ver_mask) - 1;
284 state->msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset;
285 state->msg->outsize = sizeof(struct ec_params_motion_sense);
286
287 indio_dev->name = pdev->name;
288
289 if (physical_device) {
290 state->param.cmd = MOTIONSENSE_CMD_INFO;
291 state->param.info.sensor_num = sensor_platform->sensor_num;
292 ret = cros_ec_motion_send_host_cmd(state, 0);
293 if (ret) {
294 dev_warn(dev, "Can not access sensor info\n");
295 return ret;
296 }
297 state->type = state->resp->info.type;
298 state->loc = state->resp->info.location;
299
300 /* Set sign vector, only used for backward compatibility. */
301 memset(state->sign, 1, CROS_EC_SENSOR_MAX_AXIS);
302
303 for (i = CROS_EC_SENSOR_X; i < CROS_EC_SENSOR_MAX_AXIS; i++)
304 state->calib[i].scale = MOTION_SENSE_DEFAULT_SCALE;
305
306 /* 0 is a correct value used to stop the device */
307 if (state->msg->version < 3) {
308 get_default_min_max_freq(state->resp->info.type,
309 &frequencies[1],
310 &frequencies[2],
311 &state->fifo_max_event_count);
312 } else {
313 if (state->resp->info_3.max_frequency == 0) {
314 get_default_min_max_freq(state->resp->info.type,
315 &frequencies[1],
316 &frequencies[2],
317 &temp);
318 } else {
319 frequencies[1] = state->resp->info_3.min_frequency;
320 frequencies[2] = state->resp->info_3.max_frequency;
321 }
322 state->fifo_max_event_count = state->resp->info_3.fifo_max_event_count;
323 }
324 for (i = 0; i < ARRAY_SIZE(frequencies); i++) {
325 state->frequencies[2 * i] = frequencies[i] / 1000;
326 state->frequencies[2 * i + 1] =
327 (frequencies[i] % 1000) * 1000;
328 }
329
330 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) {
331 /*
332 * Create a software buffer, feed by the EC FIFO.
333 * We can not use trigger here, as events are generated
334 * as soon as sample_frequency is set.
335 */
336 ret = devm_iio_kfifo_buffer_setup_ext(dev, indio_dev,
337 INDIO_BUFFER_SOFTWARE, NULL,
338 cros_ec_sensor_fifo_attributes);
339 if (ret)
340 return ret;
341
342 ret = cros_ec_sensorhub_register_push_data(
343 sensor_hub, sensor_platform->sensor_num,
344 indio_dev, push_data);
345 if (ret)
346 return ret;
347
348 ret = devm_add_action_or_reset(
349 dev, cros_ec_sensors_core_clean, pdev);
350 if (ret)
351 return ret;
352
353 /* Timestamp coming from FIFO are in ns since boot. */
354 ret = iio_device_set_clock(indio_dev, CLOCK_BOOTTIME);
355 if (ret)
356 return ret;
357
358 } else {
359 /*
360 * The only way to get samples in buffer is to set a
361 * software trigger (systrig, hrtimer).
362 */
363 ret = devm_iio_triggered_buffer_setup_ext(dev,
364 indio_dev, NULL, trigger_capture,
> 365 IIO_BUFFER_DIRECTION_IN, NULL);
366 if (ret)
367 return ret;
368 }
369 }
370
371 return 0;
372 }
373 EXPORT_SYMBOL_GPL(cros_ec_sensors_core_init);
374
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linuxppc:next-test 92/92] arch/powerpc/kernel/kvm_emul.S:132: Error: non-constant expression in ".if" statement
by kernel test robot
Hi Christophe,
First bad commit (maybe != root cause):
tree: https://github.com/linuxppc/linux next-test
head: 579a7abaf051ef84dd24cf19e6541455e7df72ce
commit: 579a7abaf051ef84dd24cf19e6541455e7df72ce [92/92] powerpc: Define and use MSR_RI only on non booke/40x
config: powerpc-randconfig-c024-20210821 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/linuxppc/linux/commit/579a7abaf051ef84dd24cf19e6541455...
git remote add linuxppc https://github.com/linuxppc/linux
git fetch --no-tags linuxppc next-test
git checkout 579a7abaf051ef84dd24cf19e6541455e7df72ce
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kernel/kvm_emul.S: Assembler messages:
>> arch/powerpc/kernel/kvm_emul.S:132: Error: non-constant expression in ".if" statement
>> arch/powerpc/kernel/kvm_emul.S:132: Error: non-constant expression in ".if" statement
>> arch/powerpc/kernel/kvm_emul.S:59: Error: invalid operands (*ABS* and *UND* sections) for `|'
arch/powerpc/kernel/kvm_emul.S:60: Error: invalid operands (*ABS* and *UND* sections) for `|'
arch/powerpc/kernel/kvm_emul.S:66: Error: invalid operands (*ABS* and *UND* sections) for `|'
arch/powerpc/kernel/kvm_emul.S:132: Error: invalid operands (*ABS* and *UND* sections) for `|'
vim +132 arch/powerpc/kernel/kvm_emul.S
92234722ed631f Alexander Graf 2010-07-29 26
92234722ed631f Alexander Graf 2010-07-29 27 #define SCRATCH_SAVE \
92234722ed631f Alexander Graf 2010-07-29 28 /* Enable critical section. We are critical if \
92234722ed631f Alexander Graf 2010-07-29 29 shared->critical == r1 */ \
92234722ed631f Alexander Graf 2010-07-29 30 STL64(r1, KVM_MAGIC_PAGE + KVM_MAGIC_CRITICAL, 0); \
92234722ed631f Alexander Graf 2010-07-29 31 \
92234722ed631f Alexander Graf 2010-07-29 32 /* Save state */ \
92234722ed631f Alexander Graf 2010-07-29 33 PPC_STL r31, (KVM_MAGIC_PAGE + KVM_MAGIC_SCRATCH1)(0); \
92234722ed631f Alexander Graf 2010-07-29 34 PPC_STL r30, (KVM_MAGIC_PAGE + KVM_MAGIC_SCRATCH2)(0); \
92234722ed631f Alexander Graf 2010-07-29 35 mfcr r31; \
92234722ed631f Alexander Graf 2010-07-29 36 stw r31, (KVM_MAGIC_PAGE + KVM_MAGIC_SCRATCH3)(0);
92234722ed631f Alexander Graf 2010-07-29 37
92234722ed631f Alexander Graf 2010-07-29 38 #define SCRATCH_RESTORE \
92234722ed631f Alexander Graf 2010-07-29 39 /* Restore state */ \
92234722ed631f Alexander Graf 2010-07-29 40 PPC_LL r31, (KVM_MAGIC_PAGE + KVM_MAGIC_SCRATCH1)(0); \
92234722ed631f Alexander Graf 2010-07-29 41 lwz r30, (KVM_MAGIC_PAGE + KVM_MAGIC_SCRATCH3)(0); \
92234722ed631f Alexander Graf 2010-07-29 42 mtcr r30; \
92234722ed631f Alexander Graf 2010-07-29 43 PPC_LL r30, (KVM_MAGIC_PAGE + KVM_MAGIC_SCRATCH2)(0); \
92234722ed631f Alexander Graf 2010-07-29 44 \
92234722ed631f Alexander Graf 2010-07-29 45 /* Disable critical section. We are critical if \
92234722ed631f Alexander Graf 2010-07-29 46 shared->critical == r1 and r2 is always != r1 */ \
92234722ed631f Alexander Graf 2010-07-29 47 STL64(r2, KVM_MAGIC_PAGE + KVM_MAGIC_CRITICAL, 0);
819a63dc792b08 Alexander Graf 2010-07-29 48
befdc0a65afd17 Liu Yu-B13201 2011-12-01 49 .global kvm_template_start
befdc0a65afd17 Liu Yu-B13201 2011-12-01 50 kvm_template_start:
befdc0a65afd17 Liu Yu-B13201 2011-12-01 51
819a63dc792b08 Alexander Graf 2010-07-29 52 .global kvm_emulate_mtmsrd
819a63dc792b08 Alexander Graf 2010-07-29 53 kvm_emulate_mtmsrd:
819a63dc792b08 Alexander Graf 2010-07-29 54
819a63dc792b08 Alexander Graf 2010-07-29 55 SCRATCH_SAVE
819a63dc792b08 Alexander Graf 2010-07-29 56
819a63dc792b08 Alexander Graf 2010-07-29 57 /* Put MSR & ~(MSR_EE|MSR_RI) in r31 */
819a63dc792b08 Alexander Graf 2010-07-29 58 LL64(r31, KVM_MAGIC_PAGE + KVM_MAGIC_MSR, 0)
819a63dc792b08 Alexander Graf 2010-07-29 @59 lis r30, (~(MSR_EE | MSR_RI))@h
819a63dc792b08 Alexander Graf 2010-07-29 60 ori r30, r30, (~(MSR_EE | MSR_RI))@l
819a63dc792b08 Alexander Graf 2010-07-29 61 and r31, r31, r30
819a63dc792b08 Alexander Graf 2010-07-29 62
819a63dc792b08 Alexander Graf 2010-07-29 63 /* OR the register's (MSR_EE|MSR_RI) on MSR */
819a63dc792b08 Alexander Graf 2010-07-29 64 kvm_emulate_mtmsrd_reg:
df08bd10266ce6 Alexander Graf 2010-08-05 65 ori r30, r0, 0
df08bd10266ce6 Alexander Graf 2010-08-05 66 andi. r30, r30, (MSR_EE|MSR_RI)
819a63dc792b08 Alexander Graf 2010-07-29 67 or r31, r31, r30
819a63dc792b08 Alexander Graf 2010-07-29 68
819a63dc792b08 Alexander Graf 2010-07-29 69 /* Put MSR back into magic page */
819a63dc792b08 Alexander Graf 2010-07-29 70 STL64(r31, KVM_MAGIC_PAGE + KVM_MAGIC_MSR, 0)
819a63dc792b08 Alexander Graf 2010-07-29 71
819a63dc792b08 Alexander Graf 2010-07-29 72 /* Check if we have to fetch an interrupt */
819a63dc792b08 Alexander Graf 2010-07-29 73 lwz r31, (KVM_MAGIC_PAGE + KVM_MAGIC_INT)(0)
819a63dc792b08 Alexander Graf 2010-07-29 74 cmpwi r31, 0
819a63dc792b08 Alexander Graf 2010-07-29 75 beq+ no_check
819a63dc792b08 Alexander Graf 2010-07-29 76
819a63dc792b08 Alexander Graf 2010-07-29 77 /* Check if we may trigger an interrupt */
819a63dc792b08 Alexander Graf 2010-07-29 78 andi. r30, r30, MSR_EE
819a63dc792b08 Alexander Graf 2010-07-29 79 beq no_check
819a63dc792b08 Alexander Graf 2010-07-29 80
819a63dc792b08 Alexander Graf 2010-07-29 81 SCRATCH_RESTORE
819a63dc792b08 Alexander Graf 2010-07-29 82
819a63dc792b08 Alexander Graf 2010-07-29 83 /* Nag hypervisor */
df08bd10266ce6 Alexander Graf 2010-08-05 84 kvm_emulate_mtmsrd_orig_ins:
819a63dc792b08 Alexander Graf 2010-07-29 85 tlbsync
819a63dc792b08 Alexander Graf 2010-07-29 86
819a63dc792b08 Alexander Graf 2010-07-29 87 b kvm_emulate_mtmsrd_branch
819a63dc792b08 Alexander Graf 2010-07-29 88
819a63dc792b08 Alexander Graf 2010-07-29 89 no_check:
819a63dc792b08 Alexander Graf 2010-07-29 90
819a63dc792b08 Alexander Graf 2010-07-29 91 SCRATCH_RESTORE
819a63dc792b08 Alexander Graf 2010-07-29 92
819a63dc792b08 Alexander Graf 2010-07-29 93 /* Go back to caller */
819a63dc792b08 Alexander Graf 2010-07-29 94 kvm_emulate_mtmsrd_branch:
819a63dc792b08 Alexander Graf 2010-07-29 95 b .
819a63dc792b08 Alexander Graf 2010-07-29 96 kvm_emulate_mtmsrd_end:
819a63dc792b08 Alexander Graf 2010-07-29 97
819a63dc792b08 Alexander Graf 2010-07-29 98 .global kvm_emulate_mtmsrd_branch_offs
819a63dc792b08 Alexander Graf 2010-07-29 99 kvm_emulate_mtmsrd_branch_offs:
819a63dc792b08 Alexander Graf 2010-07-29 100 .long (kvm_emulate_mtmsrd_branch - kvm_emulate_mtmsrd) / 4
819a63dc792b08 Alexander Graf 2010-07-29 101
819a63dc792b08 Alexander Graf 2010-07-29 102 .global kvm_emulate_mtmsrd_reg_offs
819a63dc792b08 Alexander Graf 2010-07-29 103 kvm_emulate_mtmsrd_reg_offs:
819a63dc792b08 Alexander Graf 2010-07-29 104 .long (kvm_emulate_mtmsrd_reg - kvm_emulate_mtmsrd) / 4
819a63dc792b08 Alexander Graf 2010-07-29 105
df08bd10266ce6 Alexander Graf 2010-08-05 106 .global kvm_emulate_mtmsrd_orig_ins_offs
df08bd10266ce6 Alexander Graf 2010-08-05 107 kvm_emulate_mtmsrd_orig_ins_offs:
df08bd10266ce6 Alexander Graf 2010-08-05 108 .long (kvm_emulate_mtmsrd_orig_ins - kvm_emulate_mtmsrd) / 4
df08bd10266ce6 Alexander Graf 2010-08-05 109
819a63dc792b08 Alexander Graf 2010-07-29 110 .global kvm_emulate_mtmsrd_len
819a63dc792b08 Alexander Graf 2010-07-29 111 kvm_emulate_mtmsrd_len:
819a63dc792b08 Alexander Graf 2010-07-29 112 .long (kvm_emulate_mtmsrd_end - kvm_emulate_mtmsrd) / 4
7810927760a0d1 Alexander Graf 2010-07-29 113
7810927760a0d1 Alexander Graf 2010-07-29 114
d35b1075afc017 Bharat Bhushan 2012-05-20 115 #define MSR_SAFE_BITS (MSR_EE | MSR_RI)
7810927760a0d1 Alexander Graf 2010-07-29 116 #define MSR_CRITICAL_BITS ~MSR_SAFE_BITS
7810927760a0d1 Alexander Graf 2010-07-29 117
7810927760a0d1 Alexander Graf 2010-07-29 118 .global kvm_emulate_mtmsr
7810927760a0d1 Alexander Graf 2010-07-29 119 kvm_emulate_mtmsr:
7810927760a0d1 Alexander Graf 2010-07-29 120
7810927760a0d1 Alexander Graf 2010-07-29 121 SCRATCH_SAVE
7810927760a0d1 Alexander Graf 2010-07-29 122
7810927760a0d1 Alexander Graf 2010-07-29 123 /* Fetch old MSR in r31 */
7810927760a0d1 Alexander Graf 2010-07-29 124 LL64(r31, KVM_MAGIC_PAGE + KVM_MAGIC_MSR, 0)
7810927760a0d1 Alexander Graf 2010-07-29 125
7810927760a0d1 Alexander Graf 2010-07-29 126 /* Find the changed bits between old and new MSR */
7810927760a0d1 Alexander Graf 2010-07-29 127 kvm_emulate_mtmsr_reg1:
512ba59ed9c580 Alexander Graf 2010-08-05 128 ori r30, r0, 0
512ba59ed9c580 Alexander Graf 2010-08-05 129 xor r31, r30, r31
7810927760a0d1 Alexander Graf 2010-07-29 130
7810927760a0d1 Alexander Graf 2010-07-29 131 /* Check if we need to really do mtmsr */
7810927760a0d1 Alexander Graf 2010-07-29 @132 LOAD_REG_IMMEDIATE(r30, MSR_CRITICAL_BITS)
7810927760a0d1 Alexander Graf 2010-07-29 133 and. r31, r31, r30
7810927760a0d1 Alexander Graf 2010-07-29 134
7810927760a0d1 Alexander Graf 2010-07-29 135 /* No critical bits changed? Maybe we can stay in the guest. */
7810927760a0d1 Alexander Graf 2010-07-29 136 beq maybe_stay_in_guest
7810927760a0d1 Alexander Graf 2010-07-29 137
7810927760a0d1 Alexander Graf 2010-07-29 138 do_mtmsr:
7810927760a0d1 Alexander Graf 2010-07-29 139
7810927760a0d1 Alexander Graf 2010-07-29 140 SCRATCH_RESTORE
7810927760a0d1 Alexander Graf 2010-07-29 141
7810927760a0d1 Alexander Graf 2010-07-29 142 /* Just fire off the mtmsr if it's critical */
7810927760a0d1 Alexander Graf 2010-07-29 143 kvm_emulate_mtmsr_orig_ins:
7810927760a0d1 Alexander Graf 2010-07-29 144 mtmsr r0
7810927760a0d1 Alexander Graf 2010-07-29 145
7810927760a0d1 Alexander Graf 2010-07-29 146 b kvm_emulate_mtmsr_branch
7810927760a0d1 Alexander Graf 2010-07-29 147
7810927760a0d1 Alexander Graf 2010-07-29 148 maybe_stay_in_guest:
7810927760a0d1 Alexander Graf 2010-07-29 149
512ba59ed9c580 Alexander Graf 2010-08-05 150 /* Get the target register in r30 */
512ba59ed9c580 Alexander Graf 2010-08-05 151 kvm_emulate_mtmsr_reg2:
512ba59ed9c580 Alexander Graf 2010-08-05 152 ori r30, r0, 0
512ba59ed9c580 Alexander Graf 2010-08-05 153
f9208427f72e6c Bharat Bhushan 2011-10-13 154 /* Put MSR into magic page because we don't call mtmsr */
f9208427f72e6c Bharat Bhushan 2011-10-13 155 STL64(r30, KVM_MAGIC_PAGE + KVM_MAGIC_MSR, 0)
f9208427f72e6c Bharat Bhushan 2011-10-13 156
7810927760a0d1 Alexander Graf 2010-07-29 157 /* Check if we have to fetch an interrupt */
7810927760a0d1 Alexander Graf 2010-07-29 158 lwz r31, (KVM_MAGIC_PAGE + KVM_MAGIC_INT)(0)
7810927760a0d1 Alexander Graf 2010-07-29 159 cmpwi r31, 0
7810927760a0d1 Alexander Graf 2010-07-29 160 beq+ no_mtmsr
7810927760a0d1 Alexander Graf 2010-07-29 161
7810927760a0d1 Alexander Graf 2010-07-29 162 /* Check if we may trigger an interrupt */
512ba59ed9c580 Alexander Graf 2010-08-05 163 andi. r31, r30, MSR_EE
f9208427f72e6c Bharat Bhushan 2011-10-13 164 bne do_mtmsr
7810927760a0d1 Alexander Graf 2010-07-29 165
7810927760a0d1 Alexander Graf 2010-07-29 166 no_mtmsr:
7810927760a0d1 Alexander Graf 2010-07-29 167
7810927760a0d1 Alexander Graf 2010-07-29 168 SCRATCH_RESTORE
7810927760a0d1 Alexander Graf 2010-07-29 169
7810927760a0d1 Alexander Graf 2010-07-29 170 /* Go back to caller */
7810927760a0d1 Alexander Graf 2010-07-29 171 kvm_emulate_mtmsr_branch:
7810927760a0d1 Alexander Graf 2010-07-29 172 b .
7810927760a0d1 Alexander Graf 2010-07-29 173 kvm_emulate_mtmsr_end:
7810927760a0d1 Alexander Graf 2010-07-29 174
:::::: The code at line 132 was first introduced by commit
:::::: 7810927760a0d16d7a41be4dab895fbbf9445bc0 KVM: PPC: PV mtmsrd L=0 and mtmsr
:::::: TO: Alexander Graf <agraf(a)suse.de>
:::::: CC: Avi Kivity <avi(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH] staging: r8188eu: remove forward declaration of Efuse_Read1ByteFromFakeContent
by kernel test robot
Hi Phillip,
I love your patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Phillip-Potter/staging-r8188eu-r...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 093991aaadf0fbb34184fa37a46e7a157da3f386
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/195b942818ec8dcaa8f3ffd7e8c623d17...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Phillip-Potter/staging-r8188eu-remove-forward-declaration-of-Efuse_Read1ByteFromFakeContent/20210821-080835
git checkout 195b942818ec8dcaa8f3ffd7e8c623d172d75a50
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/staging/r8188eu/core/rtw_efuse.c:33:1: warning: no previous prototype for 'Efuse_Read1ByteFromFakeContent' [-Wmissing-prototypes]
33 | Efuse_Read1ByteFromFakeContent(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/Efuse_Read1ByteFromFakeContent +33 drivers/staging/r8188eu/core/rtw_efuse.c
15865124feed88 Phillip Potter 2021-07-28 27
15865124feed88 Phillip Potter 2021-07-28 28 /* */
15865124feed88 Phillip Potter 2021-07-28 29 #define REG_EFUSE_CTRL 0x0030
15865124feed88 Phillip Potter 2021-07-28 30 #define EFUSE_CTRL REG_EFUSE_CTRL /* E-Fuse Control. */
15865124feed88 Phillip Potter 2021-07-28 31 /* */
15865124feed88 Phillip Potter 2021-07-28 32 bool
15865124feed88 Phillip Potter 2021-07-28 @33 Efuse_Read1ByteFromFakeContent(
15865124feed88 Phillip Potter 2021-07-28 34 struct adapter *pAdapter,
15865124feed88 Phillip Potter 2021-07-28 35 u16 Offset,
15865124feed88 Phillip Potter 2021-07-28 36 u8 *Value)
15865124feed88 Phillip Potter 2021-07-28 37 {
15865124feed88 Phillip Potter 2021-07-28 38 if (Offset >= EFUSE_MAX_HW_SIZE)
15865124feed88 Phillip Potter 2021-07-28 39 return false;
15865124feed88 Phillip Potter 2021-07-28 40 if (fakeEfuseBank == 0)
15865124feed88 Phillip Potter 2021-07-28 41 *Value = fakeEfuseContent[Offset];
15865124feed88 Phillip Potter 2021-07-28 42 else
15865124feed88 Phillip Potter 2021-07-28 43 *Value = fakeBTEfuseContent[fakeEfuseBank - 1][Offset];
15865124feed88 Phillip Potter 2021-07-28 44 return true;
15865124feed88 Phillip Potter 2021-07-28 45 }
15865124feed88 Phillip Potter 2021-07-28 46
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
by kernel test robot
Hi Peter,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa54d366a6e4fe3e16322abdb8b5115f8be0da8b
commit: f166b111e0491486fca0d105f09655ab718bd1c8 rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
date: 11 months ago
config: x86_64-randconfig-a002-20210819 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f166b111e0491486fca0d105f09655ab718bd1c8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
while (!atomic_load(&args->percpu_list_ptr)) {}
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1228:2: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a);
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
>> param_test.c:1230:10: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid)
while (!atomic_load(&args->stop)) {
^ ~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1237:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
if (expect_b != atomic_load(&list_b.c[cpu_b].head->data)) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1243:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
atomic_store(&args->percpu_list_ptr, (intptr_t)&list_b);
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1254:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
expect_a = atomic_load(&list_a.c[cpu_a].head->data);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1261:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
if (expect_a != atomic_load(&list_a.c[cpu_a].head->data)) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1267:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a);
^ ~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1275:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
expect_b = atomic_load(&list_b.c[cpu_b].head->data);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
#define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
^ ~~~~~~
param_test.c:1334:2: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid)
atomic_store(&thread_args.stop, 1);
^ ~~~~~~~~~~~~~~~~~
/opt/cross/clang-9e9d70591e/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
#define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
^ ~~~~~~
10 errors generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month