drivers/gpu/drm/bridge/analogix/anx7625.c:754:4: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aa78d17099b04fd9d36fe338af48ad6fe2d7fca
commit: c489573b5b6ce6442ad4658d9d5ec77839b91622 Merge drm/drm-next into drm-misc-next
date: 10 months ago
config: x86_64-randconfig-c001-20210813 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 767496d19cb9a1fbba57ff08095faa161998ee36)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 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 c489573b5b6ce6442ad4658d9d5ec77839b91622
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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 >>)
7 warnings generated.
Suppressed 7 warnings (7 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
Suppressed 5 warnings (5 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.
Suppressed 5 warnings (5 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.
Suppressed 5 warnings (5 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.
Suppressed 5 warnings (5 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.
Suppressed 5 warnings (5 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.
15 warnings generated.
net/core/filter.c:1736:2: warning: Null pointer passed as 1st argument to memory set function [clang-analyzer-unix.cstring.NullArg]
memset(to, 0, len);
^
net/core/filter.c:9941:57: note: Passing value via 3rd parameter 'to'
return ____bpf_skb_load_bytes(reuse_kern->skb, offset, to, len);
^~
net/core/filter.c:9941:9: note: Calling '____bpf_skb_load_bytes'
return ____bpf_skb_load_bytes(reuse_kern->skb, offset, to, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/core/filter.c:1725:15: note: Assuming 'offset' is <= 65535
if (unlikely(offset > 0xffff))
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
net/core/filter.c:1725:2: note: Taking false branch
if (unlikely(offset > 0xffff))
^
net/core/filter.c:1729:15: note: Assuming 'ptr' is null
if (unlikely(!ptr))
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
net/core/filter.c:1729:2: note: Taking true branch
if (unlikely(!ptr))
^
net/core/filter.c:1730:3: note: Control jumps to line 1736
goto err_clear;
^
net/core/filter.c:1736:2: note: Null pointer passed as 1st argument to memory set function
memset(to, 0, len);
^ ~~
net/core/filter.c:1770:2: warning: Null pointer passed as 1st argument to memory set function [clang-analyzer-unix.cstring.NullArg]
memset(to, 0, len);
^ ~~
net/core/filter.c:1756:15: note: Assuming 'offset' is <= 65535
if (unlikely(offset > 0xffff))
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
net/core/filter.c:1756:2: note: Taking false branch
if (unlikely(offset > 0xffff))
^
net/core/filter.c:1759:15: note: Assuming field 'skb' is non-null
if (unlikely(!ctx->skb))
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
net/core/filter.c:1759:2: note: Taking false branch
if (unlikely(!ctx->skb))
^
net/core/filter.c:1763:15: note: Assuming 'ptr' is null
if (unlikely(!ptr))
^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
net/core/filter.c:1763:2: note: Taking true branch
if (unlikely(!ptr))
^
net/core/filter.c:1764:3: note: Control jumps to line 1770
goto err_clear;
^
net/core/filter.c:1770:2: note: Null pointer passed as 1st argument to memory set function
memset(to, 0, len);
^ ~~
Suppressed 13 warnings (13 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.
12 warnings generated.
Suppressed 12 warnings (12 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.
7 warnings generated.
>> drivers/gpu/drm/bridge/analogix/anx7625.c:754:4: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = sp_tx_rst_aux(ctx);
^ ~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/analogix/anx7625.c:754:4: note: Value stored to 'ret' is never read
ret = sp_tx_rst_aux(ctx);
^ ~~~~~~~~~~~~~~~~~~
Suppressed 6 warnings (6 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.
8 warnings generated.
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:536:2: warning: Value stored to 'err' is never read [clang-analyzer-deadcode.DeadStores]
err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2],
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:536:2: note: Value stored to 'err' is never read
err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2],
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppressed 7 warnings (7 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
8 warnings generated.
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:424:2: warning: Value stored to 'reg' is never read [clang-analyzer-deadcode.DeadStores]
reg = readl(dp->reg_base + ANALOGIX_DP_SYS_CTL_3);
^
drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:424:2: note: Value stored to 'reg' is never read
Suppressed 7 warnings (6 in non-user code, 1 with check filters).
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.
Suppressed 5 warnings (5 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.
6 warnings generated.
Suppressed 6 warnings (6 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.
8 warnings generated.
Suppressed 8 warnings (8 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
7 warnings generated.
Suppressed 7 warnings (7 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.
8 warnings generated.
Suppressed 8 warnings (8 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.
7 warnings generated.
Suppressed 7 warnings (7 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/media/dvb-frontends/tda1004x.c:547:2: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores]
ret = tda1004x_do_upload(state, fw->data, fw->size, TDA10046H_CODE_CPT, TDA10046H_CODE_IN);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/tda1004x.c:547:2: note: Value stored to 'ret' is never read
ret = tda1004x_do_upload(state, fw->data, fw->size, TDA10046H_CODE_CPT, TDA10046H_CODE_IN);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.
6 warnings generated.
drivers/media/dvb-frontends/sp887x.c:143:23: warning: Value stored to 'mem' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
const unsigned char *mem = fw->data;
^~~ ~~~~~~~~
drivers/media/dvb-frontends/sp887x.c:143:23: note: Value stored to 'mem' during its initialization is never read
const unsigned char *mem = fw->data;
^~~ ~~~~~~~~
drivers/media/dvb-frontends/sp887x.c:458:39: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult]
(sp887x_readreg(state, 0xc07) << 6);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
drivers/media/dvb-frontends/sp887x.c:458:10: note: Calling 'sp887x_readreg'
(sp887x_readreg(state, 0xc07) << 6);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/sp887x.c:84:6: note: Assuming the condition is true
if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/sp887x.c:84:2: note: Taking true branch
if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) {
^
drivers/media/dvb-frontends/sp887x.c:86:3: note: Returning the value -1
return -1;
^~~~~~~~~
drivers/media/dvb-frontends/sp887x.c:458:10: note: Returning from 'sp887x_readreg'
(sp887x_readreg(state, 0xc07) << 6);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/dvb-frontends/sp887x.c:458:39: note: The result of the left shift is undefined because the left operand is negative
(sp887x_readreg(state, 0xc07) << 6);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
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).
vim +/ret +754 drivers/gpu/drm/bridge/analogix/anx7625.c
8bdfc5dae4e3ba Xin Ji 2020-09-18 720
8bdfc5dae4e3ba Xin Ji 2020-09-18 721 static int segments_edid_read(struct anx7625_data *ctx,
8bdfc5dae4e3ba Xin Ji 2020-09-18 722 u8 segment, u8 *buf, u8 offset)
8bdfc5dae4e3ba Xin Ji 2020-09-18 723 {
8bdfc5dae4e3ba Xin Ji 2020-09-18 724 u8 cnt;
8bdfc5dae4e3ba Xin Ji 2020-09-18 725 int ret;
8bdfc5dae4e3ba Xin Ji 2020-09-18 726 struct device *dev = &ctx->client->dev;
8bdfc5dae4e3ba Xin Ji 2020-09-18 727
8bdfc5dae4e3ba Xin Ji 2020-09-18 728 /* Write address only */
8bdfc5dae4e3ba Xin Ji 2020-09-18 729 ret = anx7625_reg_write(ctx, ctx->i2c.rx_p0_client,
8bdfc5dae4e3ba Xin Ji 2020-09-18 730 AP_AUX_ADDR_7_0, 0x30);
8bdfc5dae4e3ba Xin Ji 2020-09-18 731 ret |= anx7625_reg_write(ctx, ctx->i2c.rx_p0_client,
8bdfc5dae4e3ba Xin Ji 2020-09-18 732 AP_AUX_COMMAND, 0x04);
8bdfc5dae4e3ba Xin Ji 2020-09-18 733 ret |= anx7625_reg_write(ctx, ctx->i2c.rx_p0_client,
8bdfc5dae4e3ba Xin Ji 2020-09-18 734 AP_AUX_CTRL_STATUS,
8bdfc5dae4e3ba Xin Ji 2020-09-18 735 AP_AUX_CTRL_ADDRONLY | AP_AUX_CTRL_OP_EN);
8bdfc5dae4e3ba Xin Ji 2020-09-18 736
8bdfc5dae4e3ba Xin Ji 2020-09-18 737 ret |= wait_aux_op_finish(ctx);
8bdfc5dae4e3ba Xin Ji 2020-09-18 738 /* Write segment address */
8bdfc5dae4e3ba Xin Ji 2020-09-18 739 ret |= sp_tx_aux_wr(ctx, segment);
8bdfc5dae4e3ba Xin Ji 2020-09-18 740 /* Data read */
8bdfc5dae4e3ba Xin Ji 2020-09-18 741 ret |= anx7625_reg_write(ctx, ctx->i2c.rx_p0_client,
8bdfc5dae4e3ba Xin Ji 2020-09-18 742 AP_AUX_ADDR_7_0, 0x50);
8bdfc5dae4e3ba Xin Ji 2020-09-18 743 if (ret) {
8bdfc5dae4e3ba Xin Ji 2020-09-18 744 DRM_DEV_ERROR(dev, "IO error : aux initial fail.\n");
8bdfc5dae4e3ba Xin Ji 2020-09-18 745 return ret;
8bdfc5dae4e3ba Xin Ji 2020-09-18 746 }
8bdfc5dae4e3ba Xin Ji 2020-09-18 747
8bdfc5dae4e3ba Xin Ji 2020-09-18 748 for (cnt = 0; cnt <= EDID_TRY_CNT; cnt++) {
8bdfc5dae4e3ba Xin Ji 2020-09-18 749 sp_tx_aux_wr(ctx, offset);
8bdfc5dae4e3ba Xin Ji 2020-09-18 750 /* Set I2C read com 0x01 mot = 0 and read 16 bytes */
8bdfc5dae4e3ba Xin Ji 2020-09-18 751 ret = sp_tx_aux_rd(ctx, 0xf1);
8bdfc5dae4e3ba Xin Ji 2020-09-18 752
8bdfc5dae4e3ba Xin Ji 2020-09-18 753 if (ret) {
8bdfc5dae4e3ba Xin Ji 2020-09-18 @754 ret = sp_tx_rst_aux(ctx);
8bdfc5dae4e3ba Xin Ji 2020-09-18 755 DRM_DEV_ERROR(dev, "segment read fail, reset!\n");
8bdfc5dae4e3ba Xin Ji 2020-09-18 756 } else {
8bdfc5dae4e3ba Xin Ji 2020-09-18 757 ret = anx7625_reg_block_read(ctx, ctx->i2c.rx_p0_client,
8bdfc5dae4e3ba Xin Ji 2020-09-18 758 AP_AUX_BUFF_START,
8bdfc5dae4e3ba Xin Ji 2020-09-18 759 MAX_DPCD_BUFFER_SIZE, buf);
8bdfc5dae4e3ba Xin Ji 2020-09-18 760 if (ret > 0)
8bdfc5dae4e3ba Xin Ji 2020-09-18 761 break;
8bdfc5dae4e3ba Xin Ji 2020-09-18 762 }
8bdfc5dae4e3ba Xin Ji 2020-09-18 763 }
8bdfc5dae4e3ba Xin Ji 2020-09-18 764
8bdfc5dae4e3ba Xin Ji 2020-09-18 765 if (cnt > EDID_TRY_CNT)
8bdfc5dae4e3ba Xin Ji 2020-09-18 766 return -EIO;
8bdfc5dae4e3ba Xin Ji 2020-09-18 767
8bdfc5dae4e3ba Xin Ji 2020-09-18 768 return 0;
8bdfc5dae4e3ba Xin Ji 2020-09-18 769 }
8bdfc5dae4e3ba Xin Ji 2020-09-18 770
:::::: The code at line 754 was first introduced by commit
:::::: 8bdfc5dae4e3ba4d99dfb430ef43249e5f1b7730 drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP
:::::: TO: Xin Ji <xji(a)analogixsemi.com>
:::::: CC: Sam Ravnborg <sam(a)ravnborg.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
arch/arm/mach-s3c/s3c24xx.c:177:16: warning: variable 'tmp' set but not used
by kernel test robot
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0aa78d17099b04fd9d36fe338af48ad6fe2d7fca
commit: 71b9114d2c13a648fbe6523dd859e611c316ad90 ARM: s3c: move into a common directory
date: 12 months ago
config: arm-randconfig-r023-20210815 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
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 71b9114d2c13a648fbe6523dd859e611c316ad90
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
>> arch/arm/mach-s3c/s3c24xx.c:177:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
unsigned long tmp = 0;
^
1 warning generated.
--
>> arch/arm/mach-s3c/gpio-samsung.c:1309:14: warning: no previous prototype for function 's3c2410_modify_misccr' [-Wmissing-prototypes]
unsigned int s3c2410_modify_misccr(unsigned int clear, unsigned int change)
^
arch/arm/mach-s3c/gpio-samsung.c:1309:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned int s3c2410_modify_misccr(unsigned int clear, unsigned int change)
^
static
1 warning generated.
vim +/tmp +177 arch/arm/mach-s3c/s3c24xx.c
68d9ab394f06f9 arch/arm/mach-s3c2410/cpu.c Ben Dooks 2006-06-24 174
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 175 static void s3c24xx_default_idle(void)
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 176 {
813f13e7d6ad23 arch/arm/mach-s3c24xx/common.c Cong Ding 2013-01-18 @177 unsigned long tmp = 0;
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 178 int i;
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 179
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 180 /* idle the system by using the idle mode which will wait for an
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 181 * interrupt to happen before restarting the system.
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 182 */
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 183
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 184 /* Warning: going into idle state upsets jtag scanning */
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 185
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 186 __raw_writel(__raw_readl(S3C2410_CLKCON) | S3C2410_CLKCON_IDLE,
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 187 S3C2410_CLKCON);
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 188
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 189 /* the samsung port seems to do a loop and then unset idle.. */
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 190 for (i = 0; i < 50; i++)
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 191 tmp += __raw_readl(S3C2410_CLKCON); /* ensure loop not optimised out */
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 192
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 193 /* this bit is not cleared on re-start... */
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 194
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 195 __raw_writel(__raw_readl(S3C2410_CLKCON) & ~S3C2410_CLKCON_IDLE,
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 196 S3C2410_CLKCON);
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 197 }
92311272c1a514 arch/arm/plat-s3c24xx/cpu.c Nicolas Pitre 2011-08-03 198
:::::: The code at line 177 was first introduced by commit
:::::: 813f13e7d6ad239bb1003041f4cfae13ae27b14d ARM: S3C24XX: fix uninitialized variable warning
:::::: TO: Cong Ding <dinggnu(a)gmail.com>
:::::: CC: Kukjin Kim <kgene.kim(a)samsung.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: [RFC PATCH 2/2] PCI: apple: Add driver for the Apple M1
by kernel test robot
Hi Alyssa,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20210813]
[cannot apply to pci/next robh/for-next linus/master v5.14-rc5 v5.14-rc4 v5.14-rc3 v5.14-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Alyssa-Rosenzweig/Add-PCI-driver...
base: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153
config: powerpc-randconfig-r005-20210815 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7776b19eed44906e9973bfb240b6279d6feaab41)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/1e2d479681d8a5282a0f68bac346d14f9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alyssa-Rosenzweig/Add-PCI-driver-for-the-Apple-M1/20210815-122655
git checkout 1e2d479681d8a5282a0f68bac346d14f97152e7b
# 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 warnings (new ones prefixed by >>):
>> drivers/pci/controller/pcie-apple.c:186:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.irq_set_affinity = irq_chip_set_affinity_parent,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/pcie-apple.c:184:22: note: previous initialization is here
.irq_set_affinity = irq_chip_set_affinity_parent,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +186 drivers/pci/controller/pcie-apple.c
179
180 static struct irq_chip apple_msi_bottom_chip = {
181 .name = "MSI",
182 .irq_mask = irq_chip_mask_parent,
183 .irq_unmask = irq_chip_unmask_parent,
184 .irq_set_affinity = irq_chip_set_affinity_parent,
185 .irq_eoi = irq_chip_eoi_parent,
> 186 .irq_set_affinity = irq_chip_set_affinity_parent,
187 .irq_set_type = irq_chip_set_type_parent,
188 .irq_compose_msi_msg = apple_msi_compose_msg,
189 };
190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 1213/7963] drivers/hv/hv_common.c:61:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153
commit: afca4d95dd7d7936d46a0ff02169cc40f534a6a3 [1213/7963] Drivers: hv: Make portions of Hyper-V init code be arch neutral
config: x86_64-randconfig-s021-20210815 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout afca4d95dd7d7936d46a0ff02169cc40f534a6a3
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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/hv/hv_common.c:61:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __percpu *__pdata @@ got void [noderef] __percpu **[addressable] [toplevel] hyperv_pcpu_output_arg @@
drivers/hv/hv_common.c:61:21: sparse: expected void [noderef] __percpu *__pdata
drivers/hv/hv_common.c:61:21: sparse: got void [noderef] __percpu **[addressable] [toplevel] hyperv_pcpu_output_arg
>> drivers/hv/hv_common.c:64:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __percpu *__pdata @@ got void [noderef] __percpu **[addressable] [toplevel] hyperv_pcpu_input_arg @@
drivers/hv/hv_common.c:64:21: sparse: expected void [noderef] __percpu *__pdata
drivers/hv/hv_common.c:64:21: sparse: got void [noderef] __percpu **[addressable] [toplevel] hyperv_pcpu_input_arg
>> drivers/hv/hv_common.c:78:31: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __percpu **[addressable] [assigned] [toplevel] hyperv_pcpu_input_arg @@ got void *[noderef] __percpu * @@
drivers/hv/hv_common.c:78:31: sparse: expected void [noderef] __percpu **[addressable] [assigned] [toplevel] hyperv_pcpu_input_arg
drivers/hv/hv_common.c:78:31: sparse: got void *[noderef] __percpu *
>> drivers/hv/hv_common.c:83:40: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __percpu **[addressable] [assigned] [toplevel] hyperv_pcpu_output_arg @@ got void *[noderef] __percpu * @@
drivers/hv/hv_common.c:83:40: sparse: expected void [noderef] __percpu **[addressable] [assigned] [toplevel] hyperv_pcpu_output_arg
drivers/hv/hv_common.c:83:40: sparse: got void *[noderef] __percpu *
drivers/hv/hv_common.c:116:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@
drivers/hv/hv_common.c:116:29: sparse: expected void const [noderef] __percpu *__vpp_verify
drivers/hv/hv_common.c:116:29: sparse: got void [noderef] __percpu **
drivers/hv/hv_common.c:122:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@
drivers/hv/hv_common.c:122:38: sparse: expected void const [noderef] __percpu *__vpp_verify
drivers/hv/hv_common.c:122:38: sparse: got void [noderef] __percpu **
drivers/hv/hv_common.c:144:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@
drivers/hv/hv_common.c:144:29: sparse: expected void const [noderef] __percpu *__vpp_verify
drivers/hv/hv_common.c:144:29: sparse: got void [noderef] __percpu **
drivers/hv/hv_common.c:149:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got void [noderef] __percpu ** @@
drivers/hv/hv_common.c:149:38: sparse: expected void const [noderef] __percpu *__vpp_verify
drivers/hv/hv_common.c:149:38: sparse: got void [noderef] __percpu **
vim +61 drivers/hv/hv_common.c
49
50 /*
51 * Hyper-V specific initialization and shutdown code that is
52 * common across all architectures. Called from architecture
53 * specific initialization functions.
54 */
55
56 void __init hv_common_free(void)
57 {
58 kfree(hv_vp_index);
59 hv_vp_index = NULL;
60
> 61 free_percpu(hyperv_pcpu_output_arg);
62 hyperv_pcpu_output_arg = NULL;
63
> 64 free_percpu(hyperv_pcpu_input_arg);
65 hyperv_pcpu_input_arg = NULL;
66 }
67
68 int __init hv_common_init(void)
69 {
70 int i;
71
72 /*
73 * Allocate the per-CPU state for the hypercall input arg.
74 * If this allocation fails, we will not be able to setup
75 * (per-CPU) hypercall input page and thus this failure is
76 * fatal on Hyper-V.
77 */
> 78 hyperv_pcpu_input_arg = alloc_percpu(void *);
79 BUG_ON(!hyperv_pcpu_input_arg);
80
81 /* Allocate the per-CPU state for output arg for root */
82 if (hv_root_partition) {
> 83 hyperv_pcpu_output_arg = alloc_percpu(void *);
84 BUG_ON(!hyperv_pcpu_output_arg);
85 }
86
87 hv_vp_index = kmalloc_array(num_possible_cpus(), sizeof(*hv_vp_index),
88 GFP_KERNEL);
89 if (!hv_vp_index) {
90 hv_common_free();
91 return -ENOMEM;
92 }
93
94 for (i = 0; i < num_possible_cpus(); i++)
95 hv_vp_index[i] = VP_INVAL;
96
97 return 0;
98 }
99
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [RFC PATCH 2/2] PCI: apple: Add driver for the Apple M1
by kernel test robot
Hi Alyssa,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on next-20210813]
[cannot apply to pci/next robh/for-next linus/master v5.14-rc5 v5.14-rc4 v5.14-rc3 v5.14-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Alyssa-Rosenzweig/Add-PCI-driver...
base: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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/1e2d479681d8a5282a0f68bac346d14f9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alyssa-Rosenzweig/Add-PCI-driver-for-the-Apple-M1/20210815-122655
git checkout 1e2d479681d8a5282a0f68bac346d14f97152e7b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha
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/pci/controller/pcie-apple.c:186:35: warning: initialized field overwritten [-Woverride-init]
186 | .irq_set_affinity = irq_chip_set_affinity_parent,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/pcie-apple.c:186:35: note: (near initialization for 'apple_msi_bottom_chip.irq_set_affinity')
vim +186 drivers/pci/controller/pcie-apple.c
179
180 static struct irq_chip apple_msi_bottom_chip = {
181 .name = "MSI",
182 .irq_mask = irq_chip_mask_parent,
183 .irq_unmask = irq_chip_unmask_parent,
184 .irq_set_affinity = irq_chip_set_affinity_parent,
185 .irq_eoi = irq_chip_eoi_parent,
> 186 .irq_set_affinity = irq_chip_set_affinity_parent,
187 .irq_set_type = irq_chip_set_type_parent,
188 .irq_compose_msi_msg = apple_msi_compose_msg,
189 };
190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-sof-driver:pr/3092 2/3] sound/soc/sof/intel/byt.c:252:18: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} from incompatible pointer t...
by kernel test robot
tree: https://github.com/thesofproject/linux pr/3092
head: 3f3880d79abe5b45a8a21cd53e2dcd451bfc17ce
commit: 528e0d295d43df85228b384d839f70d190060f03 [2/3] ASoC: SOF: Make Intel IPC stream ops generic
config: x86_64-sof-customedconfig-sof-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/thesofproject/linux/commit/528e0d295d43df85228b384d839...
git remote add linux-sof-driver https://github.com/thesofproject/linux
git fetch --no-tags linux-sof-driver pr/3092
git checkout 528e0d295d43df85228b384d839f70d190060f03
# save the attached .config to linux build tree
make W=1 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 >>):
>> sound/soc/sof/intel/byt.c:252:18: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
252 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/byt.c:252:18: note: (near initialization for 'sof_byt_ops.ipc_msg_data')
sound/soc/sof/intel/byt.c:334:18: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
334 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/byt.c:334:18: note: (near initialization for 'sof_cht_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
>> sound/soc/sof/intel/bdw.c:638:18: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
638 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/bdw.c:638:18: note: (near initialization for 'sof_bdw_ops.ipc_msg_data')
cc1: some warnings being treated as errors
--
>> sound/soc/sof/intel/pci-tng.c:169:18: error: initialization of 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'int (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} from incompatible pointer type 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, size_t)' {aka 'void (*)(struct snd_sof_dev *, struct snd_pcm_substream *, void *, long unsigned int)'} [-Werror=incompatible-pointer-types]
169 | .ipc_msg_data = sof_ipc_msg_data,
| ^~~~~~~~~~~~~~~~
sound/soc/sof/intel/pci-tng.c:169:18: note: (near initialization for 'sof_tng_ops.ipc_msg_data')
cc1: some warnings being treated as errors
vim +252 sound/soc/sof/intel/byt.c
217
218 /* baytrail ops */
219 static const struct snd_sof_dsp_ops sof_byt_ops = {
220 /* device init */
221 .probe = byt_acpi_probe,
222 .remove = byt_remove,
223
224 /* DSP core boot / reset */
225 .run = atom_run,
226 .reset = atom_reset,
227
228 /* Register IO */
229 .write = sof_io_write,
230 .read = sof_io_read,
231 .write64 = sof_io_write64,
232 .read64 = sof_io_read64,
233
234 /* Block IO */
235 .block_read = sof_block_read,
236 .block_write = sof_block_write,
237
238 /* Mailbox IO */
239 .mailbox_read = sof_mailbox_read,
240 .mailbox_write = sof_mailbox_write,
241
242 /* doorbell */
243 .irq_handler = atom_irq_handler,
244 .irq_thread = atom_irq_thread,
245
246 /* ipc */
247 .send_msg = atom_send_msg,
248 .fw_ready = sof_fw_ready,
249 .get_mailbox_offset = atom_get_mailbox_offset,
250 .get_window_offset = atom_get_window_offset,
251
> 252 .ipc_msg_data = sof_ipc_msg_data,
253 .ipc_pcm_params = sof_ipc_pcm_params,
254
255 /* machine driver */
256 .machine_select = atom_machine_select,
257 .machine_register = sof_machine_register,
258 .machine_unregister = sof_machine_unregister,
259 .set_mach_params = atom_set_mach_params,
260
261 /* debug */
262 .debug_map = byt_debugfs,
263 .debug_map_count = ARRAY_SIZE(byt_debugfs),
264 .dbg_dump = atom_dump,
265 .debugfs_add_region_item = snd_sof_debugfs_add_region_item_iomem,
266
267 /* stream callbacks */
268 .pcm_open = sof_stream_pcm_open,
269 .pcm_close = sof_stream_pcm_close,
270
271 /* module loading */
272 .load_module = snd_sof_parse_module_memcpy,
273
274 /*Firmware loading */
275 .load_firmware = snd_sof_load_firmware_memcpy,
276
277 /* PM */
278 .suspend = byt_suspend,
279 .resume = byt_resume,
280
281 /* DAI drivers */
282 .drv = atom_dai,
283 .num_drv = 3, /* we have only 3 SSPs on byt*/
284
285 /* ALSA HW info flags */
286 .hw_info = SNDRV_PCM_INFO_MMAP |
287 SNDRV_PCM_INFO_MMAP_VALID |
288 SNDRV_PCM_INFO_INTERLEAVED |
289 SNDRV_PCM_INFO_PAUSE |
290 SNDRV_PCM_INFO_BATCH,
291
292 .dsp_arch_ops = &sof_xtensa_arch_ops,
293 };
294
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
arch/arm64/kvm/va_layout.c:286:6: warning: no previous prototype for function 'kvm_get_kimage_voffset'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ba31f97d43be41ca99ab72a6131d7c226306865f
commit: 63b3f96e1a989846a5a521d4fbef4bc86406929d kvm: Select SCHED_INFO instead of TASK_DELAY_ACCT
date: 3 months ago
config: arm64-randconfig-r013-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 62df4df41c939205b2dc0a2a3bfb75b8c1ed74fa)
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 63b3f96e1a989846a5a521d4fbef4bc86406929d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
arch/arm64/kvm/va_layout.c:188:6: warning: no previous prototype for function 'kvm_patch_vector_branch' [-Wmissing-prototypes]
void kvm_patch_vector_branch(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:188:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_patch_vector_branch(struct alt_instr *alt,
^
static
>> arch/arm64/kvm/va_layout.c:286:6: warning: no previous prototype for function 'kvm_get_kimage_voffset' [-Wmissing-prototypes]
void kvm_get_kimage_voffset(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:286:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_get_kimage_voffset(struct alt_instr *alt,
^
static
>> arch/arm64/kvm/va_layout.c:292:6: warning: no previous prototype for function 'kvm_compute_final_ctr_el0' [-Wmissing-prototypes]
void kvm_compute_final_ctr_el0(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:292:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_compute_final_ctr_el0(struct alt_instr *alt,
^
static
3 warnings generated.
--
^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:182:25: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_CP14_64] = kvm_handle_cp14_64,
^~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:183:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_HVC32] = handle_hvc,
^~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:184:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_SMC32] = handle_smc,
^~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:185:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_HVC64] = handle_hvc,
^~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:186:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_SMC64] = handle_smc,
^~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:187:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_SYS64] = kvm_handle_sys_reg,
^~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:188:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_SVE] = handle_sve,
^~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:189:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_IABT_LOW] = kvm_handle_guest_abort,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:190:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_DABT_LOW] = kvm_handle_guest_abort,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:191:28: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_SOFTSTP_LOW]= kvm_handle_guest_debug,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:192:28: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_WATCHPT_LOW]= kvm_handle_guest_debug,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:193:28: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_BREAKPT_LOW]= kvm_handle_guest_debug,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:194:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_BKPT32] = kvm_handle_guest_debug,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:195:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_BRK64] = kvm_handle_guest_debug,
^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:196:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_FP_ASIMD] = handle_no_fpsimd,
^~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:197:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_PAC] = kvm_handle_ptrauth,
^~~~~~~~~~~~~~~~~~
arch/arm64/kvm/handle_exit.c:176:27: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = kvm_handle_unknown_ec,
^~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/handle_exit.c:295:24: warning: no previous prototype for function 'nvhe_hyp_panic_handler' [-Wmissing-prototypes]
void __noreturn __cold nvhe_hyp_panic_handler(u64 esr, u64 spsr, u64 elr,
^
arch/arm64/kvm/handle_exit.c:295:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __noreturn __cold nvhe_hyp_panic_handler(u64 esr, u64 spsr, u64 elr,
^
static
22 warnings generated.
--
>> arch/arm64/kvm/sys_regs.c:1564:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.reset = reset_pmcr, .reg = PMCR_EL0 },
^~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1563:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCR_EL0), .access = access_pmcr,
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1576:38: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmceid, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1575:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCEID0_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1578:38: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmceid, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1577:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCEID1_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1582:43: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmu_evtyper, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1581:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMXEVTYPER_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1584:42: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.access = access_pmu_evcntr, .reset = NULL },
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1583:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMXEVCNTR_EL0),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1590:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.reset = reset_val, .reg = PMUSERENR_EL0, .val = 0 },
^~~~~~~~~
arch/arm64/kvm/sys_regs.c:1589:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMUSERENR_EL0), .access = access_pmuserenr,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:1745:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.reset = reset_val, .reg = PMCCFILTR_EL0, .val = 0 },
^~~~~~~~~
arch/arm64/kvm/sys_regs.c:1744:4: note: previous initialization is here
{ PMU_SYS_REG(SYS_PMCCFILTR_EL0), .access = access_pmu_evtyper,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/sys_regs.c:947:24: note: expanded from macro 'PMU_SYS_REG'
SYS_DESC(r), .reset = reset_unknown, .visibility = pmu_visibility
^~~~~~~~~~~~~
7 warnings generated.
--
>> arch/arm64/kvm/hyp/vhe/switch.c:215:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes]
void __noreturn hyp_panic(void)
^
arch/arm64/kvm/hyp/vhe/switch.c:215:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __noreturn hyp_panic(void)
^
static
>> arch/arm64/kvm/hyp/vhe/switch.c:225:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes]
asmlinkage void kvm_unexpected_el2_exception(void)
^
arch/arm64/kvm/hyp/vhe/switch.c:225:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void kvm_unexpected_el2_exception(void)
^
static
2 warnings generated.
--
>> arch/arm64/kvm/hyp/nvhe/switch.c:264:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes]
void __noreturn hyp_panic(void)
^
arch/arm64/kvm/hyp/nvhe/switch.c:264:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __noreturn hyp_panic(void)
^
static
>> arch/arm64/kvm/hyp/nvhe/switch.c:286:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes]
asmlinkage void kvm_unexpected_el2_exception(void)
^
arch/arm64/kvm/hyp/nvhe/switch.c:286:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void kvm_unexpected_el2_exception(void)
^
static
2 warnings generated.
--
>> arch/arm64/kvm/hyp/nvhe/hyp-main.c:233:6: warning: no previous prototype for function 'handle_trap' [-Wmissing-prototypes]
void handle_trap(struct kvm_cpu_context *host_ctxt)
^
arch/arm64/kvm/hyp/nvhe/hyp-main.c:233:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void handle_trap(struct kvm_cpu_context *host_ctxt)
^
static
1 warning generated.
--
>> arch/arm64/kvm/hyp/nvhe/psci-relay.c:203:28: warning: no previous prototype for function 'kvm_host_psci_cpu_entry' [-Wmissing-prototypes]
asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on)
^
arch/arm64/kvm/hyp/nvhe/psci-relay.c:203:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on)
^
static
1 warning generated.
--
>> arch/arm64/kvm/hyp/nvhe/setup.c:146:17: warning: no previous prototype for function '__pkvm_init_finalise' [-Wmissing-prototypes]
void __noreturn __pkvm_init_finalise(void)
^
arch/arm64/kvm/hyp/nvhe/setup.c:146:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __noreturn __pkvm_init_finalise(void)
^
static
1 warning generated.
vim +/kvm_get_kimage_voffset +286 arch/arm64/kvm/va_layout.c
1db9d9ded77138 Marc Zyngier 2020-10-21 285
68b824e428c5fb Marc Zyngier 2020-10-24 @286 void kvm_get_kimage_voffset(struct alt_instr *alt,
68b824e428c5fb Marc Zyngier 2020-10-24 287 __le32 *origptr, __le32 *updptr, int nr_inst)
68b824e428c5fb Marc Zyngier 2020-10-24 288 {
68b824e428c5fb Marc Zyngier 2020-10-24 289 generate_mov_q(kimage_voffset, origptr, updptr, nr_inst);
68b824e428c5fb Marc Zyngier 2020-10-24 290 }
755db23420a1ce Marc Zyngier 2021-03-22 291
755db23420a1ce Marc Zyngier 2021-03-22 @292 void kvm_compute_final_ctr_el0(struct alt_instr *alt,
:::::: The code at line 286 was first introduced by commit
:::::: 68b824e428c5fb5c3dc5ef80b1543e767534b58e KVM: arm64: Patch kimage_voffset instead of loading the EL1 value
:::::: TO: Marc Zyngier <maz(a)kernel.org>
:::::: CC: Marc Zyngier <maz(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
kernel/sys_ni.c:362:1: warning: no previous prototype for function '__arm64_sys_memfd_secret'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ba31f97d43be41ca99ab72a6131d7c226306865f
commit: 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 mm: introduce memfd_secret system call to create "secret" memory areas
date: 5 weeks ago
config: arm64-randconfig-r011-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
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 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:127:1: note: expanded from here
__arm64_sys_execveat
^
kernel/sys_ni.c:345:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:347:1: warning: no previous prototype for function '__arm64_sys_userfaultfd' [-Wmissing-prototypes]
COND_SYSCALL(userfaultfd);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:128:1: note: expanded from here
__arm64_sys_userfaultfd
^
kernel/sys_ni.c:347:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:350:1: warning: no previous prototype for function '__arm64_sys_membarrier' [-Wmissing-prototypes]
COND_SYSCALL(membarrier);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:129:1: note: expanded from here
__arm64_sys_membarrier
^
kernel/sys_ni.c:350:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:352:1: warning: no previous prototype for function '__arm64_sys_mlock2' [-Wmissing-prototypes]
COND_SYSCALL(mlock2);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:130:1: note: expanded from here
__arm64_sys_mlock2
^
kernel/sys_ni.c:352:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:354:1: warning: no previous prototype for function '__arm64_sys_copy_file_range' [-Wmissing-prototypes]
COND_SYSCALL(copy_file_range);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:131:1: note: expanded from here
__arm64_sys_copy_file_range
^
kernel/sys_ni.c:354:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:357:1: warning: no previous prototype for function '__arm64_sys_pkey_mprotect' [-Wmissing-prototypes]
COND_SYSCALL(pkey_mprotect);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:132:1: note: expanded from here
__arm64_sys_pkey_mprotect
^
kernel/sys_ni.c:357:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:358:1: warning: no previous prototype for function '__arm64_sys_pkey_alloc' [-Wmissing-prototypes]
COND_SYSCALL(pkey_alloc);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:133:1: note: expanded from here
__arm64_sys_pkey_alloc
^
kernel/sys_ni.c:358:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:359:1: warning: no previous prototype for function '__arm64_sys_pkey_free' [-Wmissing-prototypes]
COND_SYSCALL(pkey_free);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:134:1: note: expanded from here
__arm64_sys_pkey_free
^
kernel/sys_ni.c:359:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
>> kernel/sys_ni.c:362:1: warning: no previous prototype for function '__arm64_sys_memfd_secret' [-Wmissing-prototypes]
COND_SYSCALL(memfd_secret);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:135:1: note: expanded from here
__arm64_sys_memfd_secret
^
kernel/sys_ni.c:362:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:369:1: warning: no previous prototype for function '__arm64_sys_pciconfig_read' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_read);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:136:1: note: expanded from here
__arm64_sys_pciconfig_read
^
kernel/sys_ni.c:369:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:370:1: warning: no previous prototype for function '__arm64_sys_pciconfig_write' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_write);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:137:1: note: expanded from here
__arm64_sys_pciconfig_write
^
kernel/sys_ni.c:370:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:371:1: warning: no previous prototype for function '__arm64_sys_pciconfig_iobase' [-Wmissing-prototypes]
COND_SYSCALL(pciconfig_iobase);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:138:1: note: expanded from here
__arm64_sys_pciconfig_iobase
^
kernel/sys_ni.c:371:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:374:1: warning: no previous prototype for function '__arm64_sys_socketcall' [-Wmissing-prototypes]
COND_SYSCALL(socketcall);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:139:1: note: expanded from here
__arm64_sys_socketcall
^
kernel/sys_ni.c:374:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:381:1: warning: no previous prototype for function '__arm64_sys_vm86old' [-Wmissing-prototypes]
COND_SYSCALL(vm86old);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:148:1: note: expanded from here
__arm64_sys_vm86old
^
kernel/sys_ni.c:381:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:382:1: warning: no previous prototype for function '__arm64_sys_modify_ldt' [-Wmissing-prototypes]
COND_SYSCALL(modify_ldt);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:149:1: note: expanded from here
__arm64_sys_modify_ldt
^
kernel/sys_ni.c:382:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
arch/arm64/include/asm/syscall_wrapper.h:76:13: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
kernel/sys_ni.c:383:1: warning: no previous prototype for function '__arm64_sys_vm86' [-Wmissing-prototypes]
COND_SYSCALL(vm86);
^
arch/arm64/include/asm/syscall_wrapper.h:76:25: note: expanded from macro 'COND_SYSCALL'
asmlinkage long __weak __arm64_sys_##name(const struct pt_regs *regs) \
^
<scratch space>:150:1: note: expanded from here
__arm64_sys_vm86
^
kernel/sys_ni.c:383:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
vim +/__arm64_sys_memfd_secret +362 kernel/sys_ni.c
360
361 /* memfd_secret */
> 362 COND_SYSCALL(memfd_secret);
363
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month