[zen-kernel-zen-kernel:5.8/zen-sauce 2/26] arch/m68k/include/asm/raw_io.h:83:7: error: variable '__w' set but not used
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.8/zen-sauce
head: 4ae00f4cbefe933616f33bf79935393ec49dbfa3
commit: 5664a4e6b6af231e79f53494742a7d7a08ba72d7 [2/26] ZEN: Add VHBA driver
config: m68k-allmodconfig (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
git checkout 5664a4e6b6af231e79f53494742a7d7a08ba72d7
# 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 arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:10,
from include/linux/highmem.h:10,
from drivers/scsi/vhba/vhba.c:25:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
>> arch/m68k/include/asm/raw_io.h:83:7: error: variable '__w' set but not used [-Werror=unused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: error: variable '__w' set but not used [-Werror=unused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: error: variable '__w' set but not used [-Werror=unused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
In file included from include/linux/init.h:5,
from drivers/scsi/vhba/vhba.c:23:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: error: ordered comparison of pointer with null pointer [-Werror=extra]
169 | #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:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/scsi/vhba/vhba.c:24:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: error: ordered comparison of pointer with null pointer [-Werror=extra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
In file included from drivers/scsi/vhba/vhba.c:42:
drivers/scsi/vhba/vhba.c: At top level:
drivers/scsi/vhba/vhba.c:483:15: error: no previous prototype for 'vhba_queuecommand' [-Werror=missing-prototypes]
483 | DEF_SCSI_QCMD(vhba_queuecommand)
| ^~~~~~~~~~~~~~~~~
include/scsi/scsi_host.h:495:6: note: in definition of macro 'DEF_SCSI_QCMD'
495 | int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd) \
| ^~~~~~~~~
cc1: all warnings being treated as errors
# https://github.com/zen-kernel/zen-kernel/commit/5664a4e6b6af231e79f534947...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.8/zen-sauce
git checkout 5664a4e6b6af231e79f53494742a7d7a08ba72d7
vim +/__w +83 arch/m68k/include/asm/raw_io.h
^1da177e4c3f415 include/asm-m68k/raw_io.h Linus Torvalds 2005-04-16 49
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 50 /*
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 51 * Atari ROM port (cartridge port) ISA adapter, used for the EtherNEC NE2000
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 52 * network card driver.
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 53 * The ISA adapter connects address lines A9-A13 to ISA address lines A0-A4,
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 54 * and hardwires the rest of the ISA addresses for a base address of 0x300.
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 55 *
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 56 * Data lines D8-D15 are connected to ISA data lines D0-D7 for reading.
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 57 * For writes, address lines A1-A8 are latched to ISA data lines D0-D7
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 58 * (meaning the bit pattern on A1-A8 can be read back as byte).
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 59 *
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 60 * Read and write operations are distinguished by the base address used:
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 61 * reads are from the ROM A side range, writes are through the B side range
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 62 * addresses (A side base + 0x10000).
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 63 *
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 64 * Reads and writes are byte only.
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 65 *
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 66 * 16 bit reads and writes are necessary for the NetUSBee adapter's USB
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 67 * chipset - 16 bit words are read straight off the ROM port while 16 bit
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 68 * reads are split into two byte writes. The low byte is latched to the
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 69 * NetUSBee buffer by a read from the _read_ window (with the data pattern
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 70 * asserted as A1-A8 address pattern). The high byte is then written to the
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 71 * write range as usual, completing the write cycle.
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 72 */
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 73
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 74 #if defined(CONFIG_ATARI_ROM_ISA)
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 75 #define rom_in_8(addr) \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 76 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v >>= 8; __v; })
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 77 #define rom_in_be16(addr) \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 78 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; })
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 79 #define rom_in_le16(addr) \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 80 ({ u16 __v = le16_to_cpu(*(__force volatile u16 *) (addr)); __v; })
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 81
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 82 #define rom_out_8(addr, b) \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 @83 ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 84 __w = ((*(__force volatile u8 *) ((_addr | 0x10000) + (__v<<1)))); })
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 85 #define rom_out_be16(addr, w) \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 86 ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 87 __w = ((*(__force volatile u16 *) ((_addr & 0xFFFF0000UL) + ((__v & 0xFF)<<1)))); \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 88 __w = ((*(__force volatile u16 *) ((_addr | 0x10000) + ((__v >> 8)<<1)))); })
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 89 #define rom_out_le16(addr, w) \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 90 ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 91 __w = ((*(__force volatile u16 *) ((_addr & 0xFFFF0000UL) + ((__v >> 8)<<1)))); \
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 92 __w = ((*(__force volatile u16 *) ((_addr | 0x10000) + ((__v & 0xFF)<<1)))); })
84b16b7b0d5c818 arch/m68k/include/asm/raw_io.h Michael Schmitz 2013-04-06 93
:::::: The code at line 83 was first introduced by commit
:::::: 84b16b7b0d5c818fadc731a69965dc76dce0c91e m68k/atari: ROM port ISA adapter support
:::::: TO: Michael Schmitz <schmitz(a)opal.biophys.uni-duesseldorf.de>
:::::: CC: Geert Uytterhoeven <geert(a)linux-m68k.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[zen-kernel-zen-kernel:5.8/zen-sauce 4/26] fs/orangefs/super.c:402:2: warning: 'strncpy' output may be truncated copying 255 bytes from a string of length 255
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.8/zen-sauce
head: 4ae00f4cbefe933616f33bf79935393ec49dbfa3
commit: bf804ff720d6aa54c15d9783fb9e067df94ff2e8 [4/26] ZEN: Unrestrict CONFIG_OPTIMIZE_FOR_PERFORMANCE_O3
config: sparc-randconfig-r026-20200913 (attached as .config)
compiler: sparc-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
git checkout bf804ff720d6aa54c15d9783fb9e067df94ff2e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
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 fs/orangefs/protocol.h:287,
from fs/orangefs/super.c:8:
fs/orangefs/orangefs-debug.h:86:18: warning: 'num_kmod_keyword_mask_map' defined but not used [-Wunused-const-variable=]
86 | static const int num_kmod_keyword_mask_map = (int)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In function 'orangefs_unmount',
inlined from 'orangefs_kill_sb' at fs/orangefs/super.c:615:6:
>> fs/orangefs/super.c:402:2: warning: 'strncpy' output may be truncated copying 255 bytes from a string of length 255 [-Wstringop-truncation]
402 | strncpy(op->upcall.req.fs_umount.orangefs_config_server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
403 | devname, ORANGEFS_MAX_SERVER_ADDR_LEN - 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# https://github.com/zen-kernel/zen-kernel/commit/bf804ff720d6aa54c15d9783f...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.8/zen-sauce
git checkout bf804ff720d6aa54c15d9783fb9e067df94ff2e8
vim +/strncpy +402 fs/orangefs/super.c
1182fca3bc00441 Mike Marshall 2015-07-17 392
9d286b0d8207a70 Martin Brandenburg 2017-04-25 393 static int orangefs_unmount(int id, __s32 fs_id, const char *devname)
9d286b0d8207a70 Martin Brandenburg 2017-04-25 394 {
9d286b0d8207a70 Martin Brandenburg 2017-04-25 395 struct orangefs_kernel_op_s *op;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 396 int r;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 397 op = op_alloc(ORANGEFS_VFS_OP_FS_UMOUNT);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 398 if (!op)
9d286b0d8207a70 Martin Brandenburg 2017-04-25 399 return -ENOMEM;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 400 op->upcall.req.fs_umount.id = id;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 401 op->upcall.req.fs_umount.fs_id = fs_id;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 @402 strncpy(op->upcall.req.fs_umount.orangefs_config_server,
6bdfb48dae8e1b9 Xiongfeng Wang 2018-01-08 403 devname, ORANGEFS_MAX_SERVER_ADDR_LEN - 1);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 404 r = service_operation(op, "orangefs_fs_umount", 0);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 405 /* Not much to do about an error here. */
9d286b0d8207a70 Martin Brandenburg 2017-04-25 406 if (r)
9d286b0d8207a70 Martin Brandenburg 2017-04-25 407 gossip_err("orangefs_unmount: service_operation %d\n", r);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 408 op_release(op);
9d286b0d8207a70 Martin Brandenburg 2017-04-25 409 return r;
9d286b0d8207a70 Martin Brandenburg 2017-04-25 410 }
9d286b0d8207a70 Martin Brandenburg 2017-04-25 411
:::::: The code at line 402 was first introduced by commit
:::::: 9d286b0d8207a70d7e0ffbd5be864ff7a62de05a orangefs: ensure the userspace component is unmounted if mount fails
:::::: TO: Martin Brandenburg <martin(a)omnibond.com>
:::::: CC: Mike Marshall <hubcap(a)omnibond.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[chrome-os:chromeos-4.4 8/9] /tmp/logfile-611928.s:23743: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 2c1ef593f46d417333817c90745e671197c06958
commit: 03b3e0a6e4cb138069de51cdd49d233f9da24159 [8/9] FROMLIST: lib/string.c: implement stpcpy
config: x86_64-randconfig-a006-20200913 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3170d54842655d6d936aae32b7d0bc92fce7f22e)
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
git checkout 03b3e0a6e4cb138069de51cdd49d233f9da24159
# 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 >>):
In file included from include/linux/highmem.h:8:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:51: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:174:16: note: expanded from macro '__trace_if'
______r = !!(cond); \
^~~~
In file included from fs/ntfs/logfile.c:26:
In file included from include/linux/highmem.h:8:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:43: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:163:30: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
In file included from fs/ntfs/logfile.c:26:
In file included from include/linux/highmem.h:8:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:150:51: note: expanded from macro 'likely'
# define likely(x) (__builtin_constant_p(x) ? !!(x) : __branch_check__(x, 1))
^
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:163:30: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
fs/ntfs/logfile.c:385:11: warning: comparison of integers of different signs: 'int' and '__u32' (aka 'unsigned int') [-Wsign-compare]
if (size >= le32_to_cpu(rp->system_page_size)) {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:174:16: note: expanded from macro '__trace_if'
______r = !!(cond); \
^~~~
fs/ntfs/logfile.c:385:11: warning: comparison of integers of different signs: 'int' and '__u32' (aka 'unsigned int') [-Wsign-compare]
if (size >= le32_to_cpu(rp->system_page_size)) {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:163:30: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
fs/ntfs/logfile.c:385:11: warning: comparison of integers of different signs: 'int' and '__u32' (aka 'unsigned int') [-Wsign-compare]
if (size >= le32_to_cpu(rp->system_page_size)) {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:163:42: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
fs/ntfs/logfile.c:504:11: warning: comparison of integers of different signs: 's64' (aka 'long long') and 'unsigned long long' [-Wsign-compare]
if (size > MaxLogFileSize)
~~~~ ^ ~~~~~~~~~~~~~~
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:174:16: note: expanded from macro '__trace_if'
______r = !!(cond); \
^~~~
fs/ntfs/logfile.c:504:11: warning: comparison of integers of different signs: 's64' (aka 'long long') and 'unsigned long long' [-Wsign-compare]
if (size > MaxLogFileSize)
~~~~ ^ ~~~~~~~~~~~~~~
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:163:30: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
fs/ntfs/logfile.c:504:11: warning: comparison of integers of different signs: 's64' (aka 'long long') and 'unsigned long long' [-Wsign-compare]
if (size > MaxLogFileSize)
~~~~ ^ ~~~~~~~~~~~~~~
include/linux/compiler.h:161:36: note: expanded from macro 'if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~
include/linux/compiler.h:163:42: note: expanded from macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
22 warnings generated.
/tmp/logfile-611928.s: Assembler messages:
>> /tmp/logfile-611928.s:23743: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v2] mm: memcontrol: Add the missing numa_stat interface for cgroup v2
by kernel test robot
Hi Muchun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on hnaz-linux-mm/master]
[also build test ERROR on cgroup/for-next v5.9-rc4 next-20200911]
[cannot apply to mmotm/master]
[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/Muchun-Song/mm-memcontrol-Add-th...
base: https://github.com/hnaz/linux-mm master
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>):
In file included from include/linux/mm.h:672,
from arch/powerpc/include/asm/io.h:29,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:10,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from include/linux/cgroup.h:26,
from include/linux/memcontrol.h:13,
from mm/memcontrol.c:26:
mm/memcontrol.c: In function 'memory_numa_stat_format':
>> include/linux/huge_mm.h:120:24: error: initializer element is not constant
120 | #define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT)
| ^
mm/memcontrol.c:6422:17: note: in expansion of macro 'HPAGE_PMD_SIZE'
6422 | { "anon_thp", HPAGE_PMD_SIZE, NR_ANON_THPS },
| ^~~~~~~~~~~~~~
include/linux/huge_mm.h:120:24: note: (near initialization for 'stats[7].ratio')
120 | #define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT)
| ^
mm/memcontrol.c:6422:17: note: in expansion of macro 'HPAGE_PMD_SIZE'
6422 | { "anon_thp", HPAGE_PMD_SIZE, NR_ANON_THPS },
| ^~~~~~~~~~~~~~
# https://github.com/0day-ci/linux/commit/1fadd691a289cdae3e267de7cb5e9444f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Muchun-Song/mm-memcontrol-Add-the-missing-numa_stat-interface-for-cgroup-v2/20200912-234140
git checkout 1fadd691a289cdae3e267de7cb5e9444f8b7705d
vim +120 include/linux/huge_mm.h
d8c37c480678ebe Naoya Horiguchi 2012-03-21 117
71e3aac0724ffe8 Andrea Arcangeli 2011-01-13 118 #ifdef CONFIG_TRANSPARENT_HUGEPAGE
fde52796d487b67 Aneesh Kumar K.V 2013-06-05 119 #define HPAGE_PMD_SHIFT PMD_SHIFT
fde52796d487b67 Aneesh Kumar K.V 2013-06-05 @120 #define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT)
fde52796d487b67 Aneesh Kumar K.V 2013-06-05 121 #define HPAGE_PMD_MASK (~(HPAGE_PMD_SIZE - 1))
71e3aac0724ffe8 Andrea Arcangeli 2011-01-13 122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[vkoul-dmaengine:next 44/46] WARNING: modpost: vmlinux.o(.text+0x47782b0): Section mismatch in reference from the function sctp_assoc_sync_pmtu() to the variable .init.text:.LBE1560
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
head: e3a52158a68220d28e1bcf4797c3762d06813c66
commit: 4c80e9323967125ab8aa7c271ccc7624abc08832 [44/46] Merge tag 'v5.9-rc4' into next
config: riscv-randconfig-r024-20200911 (attached as .config)
compiler: riscv32-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
git checkout 4c80e9323967125ab8aa7c271ccc7624abc08832
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 >>, old ones prefixed by <<):
>> WARNING: modpost: vmlinux.o(.text+0x47782b0): Section mismatch in reference from the function sctp_assoc_sync_pmtu() to the variable .init.text:.LBE1560
The function sctp_assoc_sync_pmtu() references
the variable __init .LBE1560.
This is often because sctp_assoc_sync_pmtu lacks a __init
annotation or the annotation of .LBE1560 is wrong.
--
>> WARNING: modpost: vmlinux.o(.text+0x477e314): Section mismatch in reference from the function sctp_transport_burst_limited() to the variable .init.text:.LBE468
The function sctp_transport_burst_limited() references
the variable __init .LBE468.
This is often because sctp_transport_burst_limited lacks a __init
annotation or the annotation of .LBE468 is wrong.
--
>> WARNING: modpost: vmlinux.o(__ex_table+0x1478): Section mismatch in reference from the (unknown reference) (unknown) to the variable .debug_str:.LASF1083
FATAL: modpost: The relocation at __ex_table+0x1478 references
section ".debug_str" which is not executable, IOW
it is not possible for the kernel to fault
at that address. Something is seriously wrong
and should be fixed.
The below error/warnings are from parent commit:
<< WARNING: modpost: vmlinux.o(.text+0x475cc30): Section mismatch in reference from the function sctp_transport_burst_limited() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(__ex_table+0x16d0): Section mismatch in reference from the (unknown reference) (unknown) to the variable .debug_str:.LASF32
<< WARNING: modpost: vmlinux.o(.text+0x475cc30): Section mismatch in reference from the function sctp_transport_burst_limited() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(__ex_table+0x16d0): Section mismatch in reference from the (unknown reference) (unknown) to the variable .debug_str:.LASF32
<< WARNING: modpost: vmlinux.o(.text+0x475cc30): Section mismatch in reference from the function sctp_transport_burst_limited() to the variable .init.text:.L0
<< WARNING: modpost: vmlinux.o(__ex_table+0x16d0): Section mismatch in reference from the (unknown reference) (unknown) to the variable .debug_str:.LASF32
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH 3/3] spi: spi-geni-qcom: Slightly optimize setup of bidirectional xfters
by kernel test robot
Hi Douglas,
I love your patch! Yet something to improve:
[auto build test ERROR on spi/for-next]
[also build test ERROR on v5.9-rc4 next-20200911]
[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/Douglas-Anderson/spi-spi-geni-qc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: x86_64-randconfig-a002-20200913 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3170d54842655d6d936aae32b7d0bc92fce7f22e)
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/spi/spi-geni-qcom.c:385:2: error: implicit declaration of function '__iowmb' [-Werror,-Wimplicit-function-declaration]
__iowmb();
^
1 error generated.
# https://github.com/0day-ci/linux/commit/4458adf4007926cfaaa505b54a83059c9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Douglas-Anderson/spi-spi-geni-qcom-Use-the-FIFO-even-more/20200913-050928
git checkout 4458adf4007926cfaaa505b54a83059c9ba813ad
vim +/__iowmb +385 drivers/spi/spi-geni-qcom.c
334
335 static void setup_fifo_xfer(struct spi_transfer *xfer,
336 struct spi_geni_master *mas,
337 u16 mode, struct spi_master *spi)
338 {
339 u32 m_cmd = 0;
340 u32 len;
341 struct geni_se *se = &mas->se;
342 int ret;
343
344 /*
345 * Ensure that our interrupt handler isn't still running from some
346 * prior command before we start messing with the hardware behind
347 * its back. We don't need to _keep_ the lock here since we're only
348 * worried about racing with out interrupt handler. The SPI core
349 * already handles making sure that we're not trying to do two
350 * transfers at once or setting a chip select and doing a transfer
351 * concurrently.
352 *
353 * NOTE: we actually _can't_ hold the lock here because possibly we
354 * might call clk_set_rate() which needs to be able to sleep.
355 */
356 spin_lock_irq(&mas->lock);
357 spin_unlock_irq(&mas->lock);
358
359 if (xfer->bits_per_word != mas->cur_bits_per_word) {
360 spi_setup_word_len(mas, mode, xfer->bits_per_word);
361 mas->cur_bits_per_word = xfer->bits_per_word;
362 }
363
364 /* Speed and bits per word can be overridden per transfer */
365 ret = geni_spi_set_clock_and_bw(mas, xfer->speed_hz);
366 if (ret)
367 return;
368
369 mas->tx_rem_bytes = 0;
370 mas->rx_rem_bytes = 0;
371
372 if (!(mas->cur_bits_per_word % MIN_WORD_LEN))
373 len = xfer->len * BITS_PER_BYTE / mas->cur_bits_per_word;
374 else
375 len = xfer->len / (mas->cur_bits_per_word / BITS_PER_BYTE + 1);
376 len &= TRANS_LEN_MSK;
377
378 mas->cur_xfer = xfer;
379
380 /*
381 * Factor out the __iowmb() so that we can use writel_relaxed() for
382 * both writes below and thus only incur the overhead once even if
383 * we execute both of them.
384 */
> 385 __iowmb();
386
387 if (xfer->tx_buf) {
388 m_cmd |= SPI_TX_ONLY;
389 mas->tx_rem_bytes = xfer->len;
390 writel_relaxed(len, se->base + SE_SPI_TX_TRANS_LEN);
391 }
392 if (xfer->rx_buf) {
393 m_cmd |= SPI_RX_ONLY;
394 writel_relaxed(len, se->base + SE_SPI_RX_TRANS_LEN);
395 mas->rx_rem_bytes = xfer->len;
396 }
397
398 /*
399 * Lock around right before we start the transfer since our
400 * interrupt could come in at any time now.
401 */
402 spin_lock_irq(&mas->lock);
403 geni_se_setup_m_cmd(se, m_cmd, FRAGMENTATION);
404
405 /*
406 * TX_WATERMARK_REG should be set after SPI configuration and
407 * setting up GENI SE engine, as driver starts data transfer
408 * for the watermark interrupt.
409 */
410 if (m_cmd & SPI_TX_ONLY)
411 writel(mas->tx_wm, se->base + SE_GENI_TX_WATERMARK_REG);
412 spin_unlock_irq(&mas->lock);
413 }
414
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[atishp04:5.10_numa_unified_v2 7/7] drivers/base/arch_numa.c:463:12: warning: no previous prototype for 'arch_acpi_numa_init'
by kernel test robot
Hi Atish,
First bad commit (maybe != root cause):
tree: https://github.com/atishp04/linux 5.10_numa_unified_v2
head: 54c2769b07a0e9c8344550c6a7a974c4e406c852
commit: 54c2769b07a0e9c8344550c6a7a974c4e406c852 [7/7] riscv: Add numa support for riscv64 platform
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
git checkout 54c2769b07a0e9c8344550c6a7a974c4e406c852
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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/base/arch_numa.c:463:12: warning: no previous prototype for 'arch_acpi_numa_init' [-Wmissing-prototypes]
463 | int __init arch_acpi_numa_init(void)
| ^~~~~~~~~~~~~~~~~~~
# https://github.com/atishp04/linux/commit/54c2769b07a0e9c8344550c6a7a974c4...
git remote add atishp04 https://github.com/atishp04/linux
git fetch --no-tags atishp04 5.10_numa_unified_v2
git checkout 54c2769b07a0e9c8344550c6a7a974c4e406c852
vim +/arch_acpi_numa_init +463 drivers/base/arch_numa.c
1a2db300348b799 arch/arm64/mm/numa.c Ganapatrao Kulkarni 2016-04-08 448
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 449 #ifdef CONFIG_ACPI_NUMA
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 450 int __init arch_acpi_numa_init(void)
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 451 {
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 452 int ret;
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 453
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 454 ret = acpi_numa_init();
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 455 if (ret) {
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 456 pr_info("Failed to initialise from firmware\n");
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 457 return ret;
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 458 }
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 459
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 460 return srat_disabled() ? -EINVAL : 0;
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 461 }
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 462 #else
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 @463 int __init arch_acpi_numa_init(void)
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 464 {
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 465 return -EOPNOTSUPP;
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 466 }
e985c02f4d098fa drivers/base/arch_numa.c Atish Patra 2020-08-04 467
:::::: The code at line 463 was first introduced by commit
:::::: e985c02f4d098fa333910c800603f84d99db6136 arm64, numa: Change the numa init function name to be generic
:::::: TO: Atish Patra <atish.patra(a)wdc.com>
:::::: CC: Atish Patra <atish.patra(a)wdc.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linuxtv-media:master 319/322] include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
by kernel test robot
tree: git://linuxtv.org/media_tree.git master
head: c4176e12a755d0c761736c14bd2656ffc733eb95
commit: f90cf6079bf67988f8b1ad1ade70fc89d0080905 [319/322] media: vidtv: add a bridge driver
config: m68k-allmodconfig (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
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
# 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 error/warnings (new ones prefixed by >>):
In file included from include/linux/bits.h:22,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from drivers/media/test-drivers/vidtv/vidtv_psi.c:18:
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_sdt_serv_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:103:9: note: in expansion of macro 'GENMASK'
103 | mask = GENMASK(0, 11);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_stream_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:118:9: note: in expansion of macro 'GENMASK'
118 | mask = GENMASK(0, 9);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_get_desc_loop_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:133:9: note: in expansion of macro 'GENMASK'
133 | mask = GENMASK(0, 9);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_get_sec_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:148:9: note: in expansion of macro 'GENMASK'
148 | mask = GENMASK(0, 11);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_get_pat_program_pid':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:163:9: note: in expansion of macro 'GENMASK'
163 | mask = GENMASK(0, 12);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_pmt_stream_get_elem_pid':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:178:9: note: in expansion of macro 'GENMASK'
178 | mask = GENMASK(0, 12);
| ^~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c: In function 'vidtv_psi_set_sec_len':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_psi.c:209:9: note: in expansion of macro 'GENMASK'
209 | mask = GENMASK(13, 15);
| ^~~~~~~
--
In file included from include/linux/bits.h:22,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
drivers/media/test-drivers/vidtv/vidtv_pes.c: In function 'vidtv_pes_write_pts_dts':
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:94:10: note: in expansion of macro 'GENMASK'
94 | mask1 = GENMASK(30, 32);
| ^~~~~~~
In file included from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
include/linux/bits.h:35:22: warning: left shift count >= width of type [-Wshift-count-overflow]
35 | (((~UL(0)) - (UL(1) << (l)) + 1) & \
| ^~
include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:94:10: note: in expansion of macro 'GENMASK'
94 | mask1 = GENMASK(30, 32);
| ^~~~~~~
In file included from include/linux/bits.h:22,
from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:95:10: note: in expansion of macro 'GENMASK'
95 | mask2 = GENMASK(15, 29);
| ^~~~~~~
>> include/linux/build_bug.h:16:51: error: negative width in bit-field '<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:24:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
24 | (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~
include/linux/bits.h:38:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:96:10: note: in expansion of macro 'GENMASK'
96 | mask3 = GENMASK(0, 14);
| ^~~~~~~
--
In file included from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/media/test-drivers/vidtv/vidtv_s302m.c:21:
drivers/media/test-drivers/vidtv/vidtv_s302m.c: In function 'vidtv_s302m_write_frames':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro 'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:524:21: note: in expansion of macro 'KERN_WARNING'
524 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_s302m.c:425:4: note: in expansion of macro 'pr_warn_ratelimited'
425 | pr_warn_ratelimited("write size was %d, expected %lu\n",
| ^~~~~~~~~~~~~~~~~~~
At top level:
drivers/media/test-drivers/vidtv/vidtv_s302m.c:41:17: warning: 'reverse' defined but not used [-Wunused-const-variable=]
41 | static const u8 reverse[256] = {
| ^~~~~~~
git remote add linuxtv-media git://linuxtv.org/media_tree.git
git fetch --no-tags linuxtv-media master
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
vim +16 include/linux/build_bug.h
bc6245e5efd70c Ian Abbott 2017-07-10 6
bc6245e5efd70c Ian Abbott 2017-07-10 7 #ifdef __CHECKER__
bc6245e5efd70c Ian Abbott 2017-07-10 8 #define BUILD_BUG_ON_ZERO(e) (0)
bc6245e5efd70c Ian Abbott 2017-07-10 9 #else /* __CHECKER__ */
bc6245e5efd70c Ian Abbott 2017-07-10 10 /*
bc6245e5efd70c Ian Abbott 2017-07-10 11 * Force a compilation error if condition is true, but also produce a
8788994376d84d Rikard Falkeborn 2019-12-04 12 * result (of value 0 and type int), so the expression can be used
bc6245e5efd70c Ian Abbott 2017-07-10 13 * e.g. in a structure initializer (or where-ever else comma expressions
bc6245e5efd70c Ian Abbott 2017-07-10 14 * aren't permitted).
bc6245e5efd70c Ian Abbott 2017-07-10 15 */
8788994376d84d Rikard Falkeborn 2019-12-04 @16 #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
527edbc18a70e7 Masahiro Yamada 2019-01-03 17 #endif /* __CHECKER__ */
527edbc18a70e7 Masahiro Yamada 2019-01-03 18
:::::: The code at line 16 was first introduced by commit
:::::: 8788994376d84d627450fd0d67deb6a66ddf07d7 linux/build_bug.h: change type to int
:::::: TO: Rikard Falkeborn <rikard.falkeborn(a)gmail.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years