drivers/staging/rtl8723bs/core/rtw_security.c:95:9: warning: variable 'crc' set but not used
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210619-155350/Jhih-Ming...
head: ed0359e3fa64928e48021387a694f211bc840ff7
commit: ed0359e3fa64928e48021387a694f211bc840ff7 rtw_security: fix cast to restricted __le32
date: 3 hours ago
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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/ed0359e3fa64928e48021387a694f211b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210619-155350/Jhih-Ming-Huang/rtw_security-fix-cast-to-restricted-__le32/20210616-131056
git checkout ed0359e3fa64928e48021387a694f211bc840ff7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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/rtl8723bs/core/rtw_security.c: In function 'rtw_wep_decrypt':
>> drivers/staging/rtl8723bs/core/rtw_security.c:95:9: warning: variable 'crc' set but not used [-Wunused-but-set-variable]
95 | __le32 crc;
| ^~~
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 +/crc +95 drivers/staging/rtl8723bs/core/rtw_security.c
91
92 void rtw_wep_decrypt(struct adapter *padapter, u8 *precvframe)
93 {
94 /* exclude ICV */
> 95 __le32 crc;
96 signed int length;
97 u32 keylength;
98 u8 *pframe, *payload, *iv, wepkey[16];
99 u8 keyindex;
100 struct rx_pkt_attrib *prxattrib = &(((union recv_frame *)precvframe)->u.hdr.attrib);
101 struct security_priv *psecuritypriv = &padapter->securitypriv;
102 struct arc4_ctx *ctx = &psecuritypriv->recv_arc4_ctx;
103
104 pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data;
105
106 /* start to decrypt recvframe */
107 if ((prxattrib->encrypt == _WEP40_) || (prxattrib->encrypt == _WEP104_)) {
108 iv = pframe+prxattrib->hdrlen;
109 /* keyindex =(iv[3]&0x3); */
110 keyindex = prxattrib->key_index;
111 keylength = psecuritypriv->dot11DefKeylen[keyindex];
112 memcpy(&wepkey[0], iv, 3);
113 /* memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[psecuritypriv->dot11PrivacyKeyIndex].skey[0], keylength); */
114 memcpy(&wepkey[3], &psecuritypriv->dot11DefKey[keyindex].skey[0], keylength);
115 length = ((union recv_frame *)precvframe)->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len;
116
117 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen;
118
119 /* decrypt payload include icv */
120 arc4_setkey(ctx, wepkey, 3 + keylength);
121 arc4_crypt(ctx, payload, payload, length);
122
123 /* calculate icv and compare the icv */
124 crc = cpu_to_le32(~crc32_le(~0, payload, length - 4));
125
126 }
127 }
128
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
{standard input}:3084: Error: operands mismatch -- statement `andl %a1,%d1' ignored
by kernel test robot
Hi Brendan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 13311e74253fe64329390df80bed3f07314ddd61
commit: 981f94c3e92146705baf97fb417a5ed1ab1a79a5 bpf: Add bitwise atomic instructions
date: 5 months ago
config: m68k-randconfig-r026-20210621 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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://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 981f94c3e92146705baf97fb417a5ed1ab1a79a5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 >>):
In file included from include/linux/kernel.h:10,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/filter.h:10,
from kernel/bpf/core.c:21:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra]
174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
kernel/bpf/core.c: At top level:
kernel/bpf/core.c:1350:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes]
1350 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
| ^~~~~~~~~~~~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:3023: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `casl %d0,%d1,(%a5)' ignored
>> {standard input}:3084: Error: operands mismatch -- statement `andl %a1,%d1' ignored
{standard input}:3084: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `casl %d0,%d1,(%a5)' ignored
>> {standard input}:3145: Error: operands mismatch -- statement `orl %a1,%d1' ignored
{standard input}:3145: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `casl %d0,%d1,(%a5)' ignored
>> {standard input}:3195: Error: operands mismatch -- statement `eorl %a1,%d1' ignored
{standard input}:3195: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `casl %d0,%d1,(%a5)' ignored
{standard input}:3220: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `casl %d0,%d5,(%a0)' ignored
{standard input}:3248: Error: invalid instruction for this architecture; needs 68020 or higher (68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060]) -- statement `casl %d0,%d5,(%a5)' ignored
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH net-next v5 13/15] virtio-net: support AF_XDP zc rx
by kernel test robot
Hi Xuan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Xuan-Zhuo/virtio-net-support-xdp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git c7654495916e109f76a67fd3ae68f8fa70ab4faa
config: i386-randconfig-a004-20210620 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/f5f1e60139e7c38fbb4ed58d503e89bbb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xuan-Zhuo/virtio-net-support-xdp-socket-zero-copy/20210617-033438
git checkout f5f1e60139e7c38fbb4ed58d503e89bbb26c1464
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>, old ones prefixed by <<):
ERROR: modpost: missing MODULE_LICENSE() in drivers/net/virtio/xsk.o
ERROR: modpost: "merge_drop_follow_bufs" [drivers/net/virtio/xsk.ko] undefined!
ERROR: modpost: "virtnet_run_xdp" [drivers/net/virtio/xsk.ko] undefined!
ERROR: modpost: "merge_receive_follow_bufs" [drivers/net/virtio/xsk.ko] undefined!
ERROR: modpost: "virtnet_xsk_wakeup" [drivers/net/virtio/virtio_net.ko] undefined!
ERROR: modpost: "receive_xsk" [drivers/net/virtio/virtio_net.ko] undefined!
ERROR: modpost: "add_recvbuf_xsk" [drivers/net/virtio/virtio_net.ko] undefined!
ERROR: modpost: "virtnet_poll_xsk" [drivers/net/virtio/virtio_net.ko] undefined!
>> ERROR: modpost: "virtqueue_detach_unused_buf_ctx" [drivers/net/virtio/virtio_net.ko] undefined!
ERROR: modpost: "virtnet_xsk_ctx_rx_copy" [drivers/net/virtio/virtio_net.ko] undefined!
ERROR: modpost: "virtnet_xsk_complete" [drivers/net/virtio/virtio_net.ko] undefined!
WARNING: modpost: suppressed 1 unresolved symbol warnings because there were too many)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[wsa:i2c/for-mergewindow 25/31] drivers/i2c/busses/i2c-riic.c:424:9: warning: cast to smaller integer type 'enum riic_type' from 'const void *'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-mergewindow
head: 4aa908fe4704ef9c09a6b2c19b4b49855a3d6055
commit: 010e765b406f8e08685ea5b687c63a5ea234719a [25/31] i2c: riic: Add RZ/G2L support
config: x86_64-randconfig-b001-20210620 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e1adf90826a57b674eee79b071fb46c1f5683cd0)
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/wsa/linux.git/commit/?id=...
git remote add wsa https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git
git fetch --no-tags wsa i2c/for-mergewindow
git checkout 010e765b406f8e08685ea5b687c63a5ea234719a
# 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 warnings (new ones prefixed by >>):
>> drivers/i2c/busses/i2c-riic.c:424:9: warning: cast to smaller integer type 'enum riic_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
type = (enum riic_type)of_device_get_match_data(&pdev->dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +424 drivers/i2c/busses/i2c-riic.c
398
399 static int riic_i2c_probe(struct platform_device *pdev)
400 {
401 struct riic_dev *riic;
402 struct i2c_adapter *adap;
403 struct resource *res;
404 struct i2c_timings i2c_t;
405 struct reset_control *rstc;
406 int i, ret;
407 enum riic_type type;
408
409 riic = devm_kzalloc(&pdev->dev, sizeof(*riic), GFP_KERNEL);
410 if (!riic)
411 return -ENOMEM;
412
413 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
414 riic->base = devm_ioremap_resource(&pdev->dev, res);
415 if (IS_ERR(riic->base))
416 return PTR_ERR(riic->base);
417
418 riic->clk = devm_clk_get(&pdev->dev, NULL);
419 if (IS_ERR(riic->clk)) {
420 dev_err(&pdev->dev, "missing controller clock");
421 return PTR_ERR(riic->clk);
422 }
423
> 424 type = (enum riic_type)of_device_get_match_data(&pdev->dev);
425 if (type == RIIC_RZ_G2L) {
426 rstc = devm_reset_control_get_exclusive(&pdev->dev, NULL);
427 if (IS_ERR(rstc)) {
428 dev_err(&pdev->dev, "Error: missing reset ctrl\n");
429 return PTR_ERR(rstc);
430 }
431
432 reset_control_deassert(rstc);
433 }
434
435 for (i = 0; i < ARRAY_SIZE(riic_irqs); i++) {
436 res = platform_get_resource(pdev, IORESOURCE_IRQ, riic_irqs[i].res_num);
437 if (!res)
438 return -ENODEV;
439
440 ret = devm_request_irq(&pdev->dev, res->start, riic_irqs[i].isr,
441 0, riic_irqs[i].name, riic);
442 if (ret) {
443 dev_err(&pdev->dev, "failed to request irq %s\n", riic_irqs[i].name);
444 return ret;
445 }
446 }
447
448 adap = &riic->adapter;
449 i2c_set_adapdata(adap, riic);
450 strlcpy(adap->name, "Renesas RIIC adapter", sizeof(adap->name));
451 adap->owner = THIS_MODULE;
452 adap->algo = &riic_algo;
453 adap->dev.parent = &pdev->dev;
454 adap->dev.of_node = pdev->dev.of_node;
455
456 init_completion(&riic->msg_done);
457
458 i2c_parse_fw_timings(&pdev->dev, &i2c_t, true);
459
460 pm_runtime_enable(&pdev->dev);
461
462 ret = riic_init_hw(riic, &i2c_t);
463 if (ret)
464 goto out;
465
466 ret = i2c_add_adapter(adap);
467 if (ret)
468 goto out;
469
470 platform_set_drvdata(pdev, riic);
471
472 dev_info(&pdev->dev, "registered with %dHz bus speed\n",
473 i2c_t.bus_freq_hz);
474 return 0;
475
476 out:
477 pm_runtime_disable(&pdev->dev);
478 return ret;
479 }
480
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[peterz-queue:x86/paravirt 14/14] vmlinux.o: warning: objtool: __wrgsbase_inactive()+0x2e: call to ftrace_likely_update() leaves .noinstr.text section
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/paravirt
head: 0494ad33dad17215f152b8cd9e77de2944133afd
commit: 0494ad33dad17215f152b8cd9e77de2944133afd [14/14] Signed-off-by: Peter Zijlstra (Intel) <peterz(a)infradead.org>
config: x86_64-randconfig-a016-20210620 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/paravirt
git checkout 0494ad33dad17215f152b8cd9e77de2944133afd
# 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 warnings (new ones prefixed by >>):
>> vmlinux.o: warning: objtool: __wrgsbase_inactive()+0x2e: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: __rdgsbase_inactive()+0x2b: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: fixup_bad_iret()+0x7b: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: noist_exc_debug()+0x41: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: exc_nmi()+0x3d: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: poke_int3_handler()+0x45: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: mce_check_crashing_cpu()+0x35: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: do_machine_check()+0x6b3: call to memset() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: exc_machine_check()+0x72: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: safe_stack_exc_vmm_communication()+0x4d: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: __sev_es_ist_exit()+0x32: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0x24: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: exc_vmm_communication()+0x60: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_dynticks_eqs_enter()+0x44: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_dynticks_eqs_exit()+0x48: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_eqs_exit.constprop.0()+0x32: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_eqs_enter.constprop.0()+0x43: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_irq_exit()+0x29: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_nmi_enter()+0x39: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: rcu_irq_enter()+0x29: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_nmi_enter()+0x54: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_nmi_exit()+0x47: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: enter_from_user_mode()+0x4a: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x51: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x4a: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x4a: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_exit()+0x31: call to ftrace_likely_update() leaves .noinstr.text section
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
error: unknown target CPU 'r4300'
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Lauri Kasanen <cand(a)gmx.com>
CC: Thomas Bogendoerfer <tsbogend(a)alpha.franken.de>
Hi Lauri,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cba5e97280f53ec7feb656fcdf0ec00a5c6dd539
commit: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type
date: 5 months ago
config: mips-randconfig-r034-20210621 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e1adf90826a57b674eee79b071fb46c1f5683cd0)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-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 baec970aa5ba11099ad7a91773350c91fb2113f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 >>):
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
--
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
make[2]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1205: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
sound/soc/codecs/rt1019.c:878:34: warning: unused variable 'rt1019_of_match'
by kernel test robot
Hi Mark,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cba5e97280f53ec7feb656fcdf0ec00a5c6dd539
commit: ad858508fd6ac58258dd25fd2063a6f6e10426f7 Merge tag 'mute-led-rework' of https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into asoc-5.13
date: 3 months ago
config: s390-randconfig-r015-20210621 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e1adf90826a57b674eee79b071fb46c1f5683cd0)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-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 ad858508fd6ac58258dd25fd2063a6f6e10426f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 >>):
In file included from sound/soc/codecs/rt1019.c:17:
In file included from include/linux/regmap.h:20:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from sound/soc/codecs/rt1019.c:17:
In file included from include/linux/regmap.h:20:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from sound/soc/codecs/rt1019.c:17:
In file included from include/linux/regmap.h:20:
In file included from include/linux/iopoll.h:14:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> sound/soc/codecs/rt1019.c:878:34: warning: unused variable 'rt1019_of_match' [-Wunused-const-variable]
static const struct of_device_id rt1019_of_match[] = {
^
13 warnings generated.
vim +/rt1019_of_match +878 sound/soc/codecs/rt1019.c
7ec79d3850d0cb Jack Yu 2021-03-11 877
7ec79d3850d0cb Jack Yu 2021-03-11 @878 static const struct of_device_id rt1019_of_match[] = {
7ec79d3850d0cb Jack Yu 2021-03-11 879 { .compatible = "realtek,rt1019", },
7ec79d3850d0cb Jack Yu 2021-03-11 880 {},
7ec79d3850d0cb Jack Yu 2021-03-11 881 };
7ec79d3850d0cb Jack Yu 2021-03-11 882 MODULE_DEVICE_TABLE(of, rt1019_of_match);
7ec79d3850d0cb Jack Yu 2021-03-11 883
:::::: The code at line 878 was first introduced by commit
:::::: 7ec79d3850d0cb6dc52e6aa472886ab3adf15863 ASoC: rt1019: add rt1019 amplifier driver
:::::: TO: Jack Yu <jack.yu(a)realtek.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
1 year, 3 months
[kees:kspp/memcpy/next-20210618/v0.192314 57/90] arch/arm/boot/compressed/misc.c:164:6: warning: no previous prototype for function 'fortify_warn_write'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git kspp/memcpy/next-20210618/v0.192314
head: bbcfcdcf3881ef6f9ae1b1b8e0ddf03da30c5aad
commit: 37bd2f986fbed8a837e7657c7a44d588e79c5aad [57/90] fortify: Detect struct member overflows in memcpy()
config: arm-randconfig-r013-20210620 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e1adf90826a57b674eee79b071fb46c1f5683cd0)
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/kees/linux.git/commit/?id...
git remote add kees https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
git fetch --no-tags kees kspp/memcpy/next-20210618/v0.192314
git checkout 37bd2f986fbed8a837e7657c7a44d588e79c5aad
# 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/boot/compressed/misc.c:126:17: warning: no previous prototype for function '__div0' [-Wmissing-prototypes]
asmlinkage void __div0(void)
^
arch/arm/boot/compressed/misc.c:126:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void __div0(void)
^
static
arch/arm/boot/compressed/misc.c:133:6: warning: no previous prototype for function '__stack_chk_fail' [-Wmissing-prototypes]
void __stack_chk_fail(void)
^
arch/arm/boot/compressed/misc.c:133:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __stack_chk_fail(void)
^
static
arch/arm/boot/compressed/misc.c:142:1: warning: no previous prototype for function 'decompress_kernel' [-Wmissing-prototypes]
decompress_kernel(unsigned long output_start, unsigned long free_mem_ptr_p,
^
arch/arm/boot/compressed/misc.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
>> arch/arm/boot/compressed/misc.c:164:6: warning: no previous prototype for function 'fortify_warn_write' [-Wmissing-prototypes]
void fortify_warn_write(const char *func, size_t buffer_size, size_t write_size)
^
arch/arm/boot/compressed/misc.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void fortify_warn_write(const char *func, size_t buffer_size, size_t write_size)
^
static
arch/arm/boot/compressed/misc.c:169:6: warning: no previous prototype for function 'fortify_panic' [-Wmissing-prototypes]
void fortify_panic(const char *name)
^
arch/arm/boot/compressed/misc.c:169:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void fortify_panic(const char *name)
^
static
5 warnings generated.
vim +/fortify_warn_write +164 arch/arm/boot/compressed/misc.c
163
> 164 void fortify_warn_write(const char *func, size_t buffer_size, size_t write_size)
165 {
166 putstr("warning: detected buffer overflow\n");
167 }
168
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months