All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:bitmaps2 5/9] include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK'
@ 2021-04-08  6:56 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-08  6:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 15353 bytes --]

tree:   https://github.com/norov/linux bitmaps2
head:   352293284677497a59bea658f248c48d4952403e
commit: 942c587cda940e9da8b2677e88155aee139cac61 [5/9] add find_first_le
config: powerpc-randconfig-r036-20210407 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 56ea2e2fdd691136d5e6631fa0e447173694b82c)
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/norov/linux/commit/942c587cda940e9da8b2677e88155aee139cac61
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bitmaps2
        git checkout 942c587cda940e9da8b2677e88155aee139cac61
        # 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@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:59:
   In file included from include/linux/lockdep.h:14:
   In file included from include/linux/smp.h:13:
   In file included from include/linux/cpumask.h:12:
   In file included from include/linux/bitmap.h:9:
>> include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK' [-Werror,-Wimplicit-function-declaration]
                   val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
                                       ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:23:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
           return __do_##name al;                                  \
                  ^~~~~~~~~~~~~~
   <scratch space>:225:1: note: expanded from here
   __do_inb
   ^
   arch/powerpc/include/asm/io.h:538:53: note: expanded from macro '__do_inb'
   #define __do_inb(port)          readb((PCI_IO_ADDR)_IO_BASE + port);
                                         ~~~~~~~~~~~~~~~~~~~~~ ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:24:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
           return __do_##name al;                                  \
                  ^~~~~~~~~~~~~~
   <scratch space>:227:1: note: expanded from here
   __do_inw
   ^
   arch/powerpc/include/asm/io.h:539:53: note: expanded from macro '__do_inw'
   #define __do_inw(port)          readw((PCI_IO_ADDR)_IO_BASE + port);
                                         ~~~~~~~~~~~~~~~~~~~~~ ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:25:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
           return __do_##name al;                                  \
                  ^~~~~~~~~~~~~~
   <scratch space>:229:1: note: expanded from here
   __do_inl
   ^
   arch/powerpc/include/asm/io.h:540:53: note: expanded from macro '__do_inl'
   #define __do_inl(port)          readl((PCI_IO_ADDR)_IO_BASE + port);
                                         ~~~~~~~~~~~~~~~~~~~~~ ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:26:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:231:1: note: expanded from here
   __do_outb
   ^
   arch/powerpc/include/asm/io.h:535:62: note: expanded from macro '__do_outb'
   #define __do_outb(val, port)    writeb(val,(PCI_IO_ADDR)_IO_BASE+port);
                                              ~~~~~~~~~~~~~~~~~~~~~^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
--
   error: no override and no default toolchain set
   init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:59:
   In file included from include/linux/lockdep.h:14:
   In file included from include/linux/smp.h:13:
   In file included from include/linux/cpumask.h:12:
   In file included from include/linux/bitmap.h:9:
>> include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK' [-Werror,-Wimplicit-function-declaration]
                   val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
                                       ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:23:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
           return __do_##name al;                                  \
                  ^~~~~~~~~~~~~~
   <scratch space>:225:1: note: expanded from here
   __do_inb
   ^
   arch/powerpc/include/asm/io.h:538:53: note: expanded from macro '__do_inb'
   #define __do_inb(port)          readb((PCI_IO_ADDR)_IO_BASE + port);
                                         ~~~~~~~~~~~~~~~~~~~~~ ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:24:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
           return __do_##name al;                                  \
                  ^~~~~~~~~~~~~~
   <scratch space>:227:1: note: expanded from here
   __do_inw
   ^
   arch/powerpc/include/asm/io.h:539:53: note: expanded from macro '__do_inw'
   #define __do_inw(port)          readw((PCI_IO_ADDR)_IO_BASE + port);
                                         ~~~~~~~~~~~~~~~~~~~~~ ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:25:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
           return __do_##name al;                                  \
                  ^~~~~~~~~~~~~~
   <scratch space>:229:1: note: expanded from here
   __do_inl
   ^
   arch/powerpc/include/asm/io.h:540:53: note: expanded from macro '__do_inl'
   #define __do_inl(port)          readl((PCI_IO_ADDR)_IO_BASE + port);
                                         ~~~~~~~~~~~~~~~~~~~~~ ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/powerpc/include/asm/io.h:619:
   arch/powerpc/include/asm/io-defs.h:26:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   DEF_PCI_AC_NORET(outb, (u8 val, unsigned long port), (val, port), pio, port)
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
                   __do_##name al;                                 \
                   ^~~~~~~~~~~~~~
   <scratch space>:231:1: note: expanded from here
   __do_outb
   ^
   arch/powerpc/include/asm/io.h:535:62: note: expanded from macro '__do_outb'
   #define __do_outb(val, port)    writeb(val,(PCI_IO_ADDR)_IO_BASE+port);
                                              ~~~~~~~~~~~~~~~~~~~~~^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:


vim +/BITMAP_FIRST_BYTE_MASK +250 include/linux/find.h

   243	
   244	#ifndef find_first_bit_le
   245	static inline
   246	unsigned long find_first_bit_le(const unsigned long *addr, unsigned long size)
   247	{
   248		if (small_const_nbits(size)) {
   249			unsigned long val = swab(*addr) & GENMASK(size - 1, 0);
 > 250			val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
   251	
   252			return val ? __ffs(val) : size;
   253		}
   254	
   255		return _find_first_bit(addr, size, 1);
   256	}
   257	#endif
   258	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21482 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [norov:bitmaps2 5/9] include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK'
@ 2021-04-08  6:15 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-08  6:15 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5077 bytes --]

tree:   https://github.com/norov/linux bitmaps2
head:   352293284677497a59bea658f248c48d4952403e
commit: 942c587cda940e9da8b2677e88155aee139cac61 [5/9] add find_first_le
config: h8300-randconfig-r035-20210407 (attached as .config)
compiler: h8300-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/norov/linux/commit/942c587cda940e9da8b2677e88155aee139cac61
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bitmaps2
        git checkout 942c587cda940e9da8b2677e88155aee139cac61
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/h8300/kernel/asm-offsets.c:13:
   include/linux/find.h: In function 'find_first_bit_le':
>> include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK' [-Werror=implicit-function-declaration]
     250 |   val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
         |                       ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/h8300/kernel/asm-offsets.c:13:
   include/linux/find.h: In function 'find_first_bit_le':
>> include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK' [-Werror=implicit-function-declaration]
     250 |   val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
         |                       ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:118: arch/h8300/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1331: prepare0] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:222: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   error: no override and no default toolchain set
   init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
   In file included from include/linux/bitmap.h:9,
                    from include/linux/cpumask.h:12,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/h8300/kernel/asm-offsets.c:13:
   include/linux/find.h: In function 'find_first_bit_le':
>> include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK' [-Werror=implicit-function-declaration]
     250 |   val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
         |                       ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:118: arch/h8300/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1331: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:222: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/BITMAP_FIRST_BYTE_MASK +250 include/linux/find.h

   243	
   244	#ifndef find_first_bit_le
   245	static inline
   246	unsigned long find_first_bit_le(const unsigned long *addr, unsigned long size)
   247	{
   248		if (small_const_nbits(size)) {
   249			unsigned long val = swab(*addr) & GENMASK(size - 1, 0);
 > 250			val = swab(*addr) & BITMAP_FIRST_BYTE_MASK(size);
   251	
   252			return val ? __ffs(val) : size;
   253		}
   254	
   255		return _find_first_bit(addr, size, 1);
   256	}
   257	#endif
   258	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32347 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-08  6:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08  6:56 [norov:bitmaps2 5/9] include/linux/find.h:250:23: error: implicit declaration of function 'BITMAP_FIRST_BYTE_MASK' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-04-08  6:15 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.