All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:find_bit_static 8/8] include/asm-generic/bitops/le.h:49:13: error: implicit declaration of function 'swap'; did you mean
@ 2021-01-20  5:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-20  5:37 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/norov/linux find_bit_static
head:   9647d9f4cd1b259c620e06337010396d5a324f79
commit: 9647d9f4cd1b259c620e06337010396d5a324f79 [8/8] fix next
config: powerpc-iss476-smp_defconfig (attached as .config)
compiler: powerpc-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/9647d9f4cd1b259c620e06337010396d5a324f79
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov find_bit_static
        git checkout 9647d9f4cd1b259c620e06337010396d5a324f79
        # 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@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/bitops.h:265,
                    from include/linux/bitops.h:50,
                    from include/linux/kernel.h:11,
                    from include/asm-generic/bug.h:20,
                    from arch/powerpc/include/asm/bug.h:109,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
   include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
   include/asm-generic/bitops/le.h:45:9: warning: dereferencing 'void *' pointer
      45 |   val = *addr | ~BITMAP_FIRST_WORD_MASK(offset);
         |         ^~~~~
   include/asm-generic/bitops/le.h:45:9: error: void value not ignored as it ought to be
   In file included from arch/powerpc/include/asm/bitops.h:207,
                    from include/linux/bitops.h:50,
                    from include/linux/kernel.h:11,
                    from include/asm-generic/bug.h:20,
                    from arch/powerpc/include/asm/bug.h:109,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
>> include/asm-generic/bitops/le.h:49:13: error: implicit declaration of function 'swap'; did you mean 'swab'? [-Werror=implicit-function-declaration]
      49 |   idx = ffz(swap(val));
         |             ^~~~
   include/asm-generic/bitops/ffz.h:11:25: note: in definition of macro 'ffz'
      11 | #define ffz(x)  __ffs(~(x))
         |                         ^
   In file included from arch/powerpc/include/asm/bitops.h:265,
                    from include/linux/bitops.h:50,
                    from include/linux/kernel.h:11,
                    from include/asm-generic/bug.h:20,
                    from arch/powerpc/include/asm/bug.h:109,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
   include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
   include/asm-generic/bitops/le.h:69:9: warning: dereferencing 'void *' pointer
      69 |   val = *addr & BITMAP_FIRST_WORD_MASK(offset)
         |         ^~~~~
   include/asm-generic/bitops/le.h:69:9: error: void value not ignored as it ought to be
   cc1: some warnings being treated as errors
--
   In file included from arch/powerpc/include/asm/bitops.h:265,
                    from include/linux/bitops.h:50,
                    from include/linux/kernel.h:11,
                    from include/asm-generic/bug.h:20,
                    from arch/powerpc/include/asm/bug.h:109,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
   include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
   include/asm-generic/bitops/le.h:45:9: warning: dereferencing 'void *' pointer
      45 |   val = *addr | ~BITMAP_FIRST_WORD_MASK(offset);
         |         ^~~~~
   include/asm-generic/bitops/le.h:45:9: error: void value not ignored as it ought to be
   In file included from arch/powerpc/include/asm/bitops.h:207,
                    from include/linux/bitops.h:50,
                    from include/linux/kernel.h:11,
                    from include/asm-generic/bug.h:20,
                    from arch/powerpc/include/asm/bug.h:109,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
>> include/asm-generic/bitops/le.h:49:13: error: implicit declaration of function 'swap'; did you mean 'swab'? [-Werror=implicit-function-declaration]
      49 |   idx = ffz(swap(val));
         |             ^~~~
   include/asm-generic/bitops/ffz.h:11:25: note: in definition of macro 'ffz'
      11 | #define ffz(x)  __ffs(~(x))
         |                         ^
   In file included from arch/powerpc/include/asm/bitops.h:265,
                    from include/linux/bitops.h:50,
                    from include/linux/kernel.h:11,
                    from include/asm-generic/bug.h:20,
                    from arch/powerpc/include/asm/bug.h:109,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
   include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
   include/asm-generic/bitops/le.h:69:9: warning: dereferencing 'void *' pointer
      69 |   val = *addr & BITMAP_FIRST_WORD_MASK(offset)
         |         ^~~~~
   include/asm-generic/bitops/le.h:69:9: error: void value not ignored as it ought to be
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1220: prepare0] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   WARNING: unmet direct dependencies detected for HOTPLUG_CPU
   Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
   Selected by
   - PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
   In file included from arch/powerpc/include/asm/bitops.h:265,
   from include/linux/bitops.h:50,
   from include/linux/kernel.h:11,
   from include/asm-generic/bug.h:20,
   from arch/powerpc/include/asm/bug.h:109,
   from include/linux/bug.h:5,
   from include/linux/page-flags.h:10,
   from kernel/bounds.c:10:
   include/asm-generic/bitops/le.h: In function 'find_next_zero_bit_le':
   include/asm-generic/bitops/le.h:45:9: warning: dereferencing 'void pointer
   45 | val = | ~BITMAP_FIRST_WORD_MASK(offset);
   | ^~~~~
   include/asm-generic/bitops/le.h:45:9: error: void value not ignored as it ought to be
   In file included from arch/powerpc/include/asm/bitops.h:207,
   from include/linux/bitops.h:50,
   from include/linux/kernel.h:11,
   from include/asm-generic/bug.h:20,
   from arch/powerpc/include/asm/bug.h:109,
   from include/linux/bug.h:5,
   from include/linux/page-flags.h:10,
   from kernel/bounds.c:10:
>> include/asm-generic/bitops/le.h:49:13: error: implicit declaration of function 'swap'; did you mean
   49 | idx = ffz(swap(val));
   | ^~~~
   include/asm-generic/bitops/ffz.h:11:25: note: in definition of macro 'ffz'
   11 | #define ffz(x) __ffs(~(x))
   | ^
   In file included from arch/powerpc/include/asm/bitops.h:265,
   from include/linux/bitops.h:50,
   from include/linux/kernel.h:11,
   from include/asm-generic/bug.h:20,
   from arch/powerpc/include/asm/bug.h:109,
   from include/linux/bug.h:5,
   from include/linux/page-flags.h:10,
   from kernel/bounds.c:10:
   include/asm-generic/bitops/le.h: In function 'find_next_bit_le':
   include/asm-generic/bitops/le.h:69:9: warning: dereferencing 'void pointer
   69 | val = & BITMAP_FIRST_WORD_MASK(offset)
   | ^~~~~
   include/asm-generic/bitops/le.h:69:9: error: void value not ignored as it ought to be
   cc1: some warnings being treated as errors
   Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [scripts/Makefile.build:117: kernel/bounds.s] Error 1
   Target '__build' not remade because of errors.
   Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:1220: prepare0] Error 2
   Target 'prepare' not remade because of errors.
   make: Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt [Makefile:185: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for HOTPLUG_CPU
   Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
   Selected by
   - PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP


vim +/swap +49 include/asm-generic/bitops/le.h

    33	
    34	#ifndef find_next_zero_bit_le
    35	static __always_inline
    36	unsigned long find_next_zero_bit_le(const void *addr, unsigned
    37			long size, unsigned long offset)
    38	{
    39		if (small_const_nbits(size)) {
    40			unsigned long val, idx;
    41	
    42			if (unlikely(offset >= size))
    43				return size;
    44	
    45			val = *addr | ~BITMAP_FIRST_WORD_MASK(offset);
    46			if (val == ~0UL)
    47				return size;
    48	
  > 49			idx = ffz(swap(val));
    50	
    51			return idx < size ? idx : size;
    52		}
    53	
    54		return _find_next_bit(addr, NULL, size, offset, ~0UL, 1);
    55	}
    56	#endif
    57	

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-20  5:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20  5:37 [norov:find_bit_static 8/8] include/asm-generic/bitops/le.h:49:13: error: implicit declaration of function 'swap'; did you mean 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.