linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: [linux-next:master 9083/9190] include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean '__ffs'?
Date: Tue, 6 Apr 2021 07:54:05 +0800	[thread overview]
Message-ID: <202104060759.aocGJUwA-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   454c576c3f5e51d60f00a4ac0dde07f4f9d70e9d
commit: bd083065154285baeb8af54147adac634a4e0b38 [9083/9190] lib: add fast path for find_first_*_bit() and find_last_bit()
config: h8300-randconfig-r021-20210406 (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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=bd083065154285baeb8af54147adac634a4e0b38
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout bd083065154285baeb8af54147adac634a4e0b38
        # 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 arch/h8300/include/asm/bitops.h:167,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/find.h: In function 'find_last_bit':
>> include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean '__ffs'? [-Werror=implicit-function-declaration]
     164 |   return val ? __fls(val) : size;
         |                ^~~~~
         |                __ffs
   In file included from arch/h8300/include/asm/bitops.h:177,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/__fls.h: At top level:
>> include/asm-generic/bitops/__fls.h:13:38: error: conflicting types for '__fls'
      13 | static __always_inline unsigned long __fls(unsigned long word)
         |                                      ^~~~~
   In file included from arch/h8300/include/asm/bitops.h:167,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/find.h:164:16: note: previous implicit declaration of '__fls' was here
     164 |   return val ? __fls(val) : size;
         |                ^~~~~
   cc1: some warnings being treated as errors
--
   In file included from arch/h8300/include/asm/bitops.h:167,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/find.h: In function 'find_last_bit':
>> include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean '__ffs'? [-Werror=implicit-function-declaration]
     164 |   return val ? __fls(val) : size;
         |                ^~~~~
         |                __ffs
   In file included from arch/h8300/include/asm/bitops.h:177,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/__fls.h: At top level:
>> include/asm-generic/bitops/__fls.h:13:38: error: conflicting types for '__fls'
      13 | static __always_inline unsigned long __fls(unsigned long word)
         |                                      ^~~~~
   In file included from arch/h8300/include/asm/bitops.h:167,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/find.h:164:16: note: previous implicit declaration of '__fls' was here
     164 |   return val ? __fls(val) : size;
         |                ^~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:116: scripts/mod/devicetable-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1234: prepare0] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   In file included from arch/h8300/include/asm/bitops.h:167,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/find.h: In function 'find_last_bit':
>> include/asm-generic/bitops/find.h:164:16: error: implicit declaration of function '__fls'; did you mean '__ffs'? [-Werror=implicit-function-declaration]
     164 |   return val ? __fls(val) : size;
         |                ^~~~~
         |                __ffs
   In file included from arch/h8300/include/asm/bitops.h:177,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/__fls.h: At top level:
>> include/asm-generic/bitops/__fls.h:13:38: error: conflicting types for '__fls'
      13 | static __always_inline unsigned long __fls(unsigned long word)
         |                                      ^~~~~
   In file included from arch/h8300/include/asm/bitops.h:167,
                    from include/linux/bitops.h:32,
                    from include/linux/log2.h:12,
                    from include/asm-generic/getorder.h:8,
                    from include/asm-generic/page.h:95,
                    from arch/h8300/include/asm/page.h:5,
                    from arch/h8300/include/asm/string.h:8,
                    from include/linux/string.h:21,
                    from include/linux/uuid.h:12,
                    from include/linux/mod_devicetable.h:13,
                    from scripts/mod/devicetable-offsets.c:3:
   include/asm-generic/bitops/find.h:164:16: note: previous implicit declaration of '__fls' was here
     164 |   return val ? __fls(val) : size;
         |                ^~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:116: scripts/mod/devicetable-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1234: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +164 include/asm-generic/bitops/find.h

   149	
   150	#ifndef find_last_bit
   151	/**
   152	 * find_last_bit - find the last set bit in a memory region
   153	 * @addr: The address to start the search at
   154	 * @size: The number of bits to search
   155	 *
   156	 * Returns the bit number of the last set bit, or size.
   157	 */
   158	static inline
   159	unsigned long find_last_bit(const unsigned long *addr, unsigned long size)
   160	{
   161		if (small_const_nbits(size)) {
   162			unsigned long val = *addr & GENMASK(size - 1, 0);
   163	
 > 164			return val ? __fls(val) : size;
   165		}
   166	
   167		return _find_last_bit(addr, size);
   168	}
   169	#endif
   170	

---
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: 31288 bytes --]

                 reply	other threads:[~2021-04-05 23:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104060759.aocGJUwA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=yury.norov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox