mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [norov:fns 24/24] lib/test_bitmap.c:226:30: error: use of undeclared identifier 'EXP1_IN_BITS'
Date: Sun, 26 Jun 2022 10:04:48 +0800	[thread overview]
Message-ID: <202206260952.cf6IJRdW-lkp@intel.com> (raw)

tree:   https://github.com/norov/linux fns
head:   c6f11d769095eb58ae2f05e3df1d8e71b7ccc5d7
commit: c6f11d769095eb58ae2f05e3df1d8e71b7ccc5d7 [24/24] fixes
config: arm64-randconfig-r015-20220626
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b0d6dd3905db145853c7c744ac92d49b00b1fa20)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/norov/linux/commit/c6f11d769095eb58ae2f05e3df1d8e71b7ccc5d7
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov fns
        git checkout c6f11d769095eb58ae2f05e3df1d8e71b7ccc5d7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash lib/

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

All errors (new ones prefixed by >>):

>> lib/test_bitmap.c:226:30: error: use of undeclared identifier 'EXP1_IN_BITS'
           for_each_set_bit(bit, exp1, EXP1_IN_BITS) {
                                       ^
>> lib/test_bitmap.c:226:30: error: use of undeclared identifier 'EXP1_IN_BITS'
>> lib/test_bitmap.c:226:30: error: use of undeclared identifier 'EXP1_IN_BITS'
   lib/test_bitmap.c:227:26: error: use of undeclared identifier 'EXP1_IN_BITS'
                   b = find_nth_bit(exp1, EXP1_IN_BITS, ++cnt);
                                          ^
   lib/test_bitmap.c:234:46: error: use of undeclared identifier 'EXP1_IN_BITS'
           const unsigned long w = bitmap_weight(exp1, EXP1_IN_BITS);
                                                       ^
   lib/test_bitmap.c:237:26: error: use of undeclared identifier 'EXP1_IN_BITS'
           for (start = 0; start < EXP1_IN_BITS; start++) {
                                   ^
   lib/test_bitmap.c:240:36: error: use of undeclared identifier 'EXP1_IN_BITS'
                   for_each_set_bit_wrap(bit, exp1, EXP1_IN_BITS, start)
                                                    ^
   lib/test_bitmap.c:240:36: error: use of undeclared identifier 'EXP1_IN_BITS'
   lib/test_bitmap.c:240:36: error: use of undeclared identifier 'EXP1_IN_BITS'
   9 errors generated.


vim +/EXP1_IN_BITS +226 lib/test_bitmap.c

   221	
   222	static void __init test_find_nth_bit(void)
   223	{
   224		unsigned long b, bit, cnt = 0;
   225	
 > 226		for_each_set_bit(bit, exp1, EXP1_IN_BITS) {
   227			b = find_nth_bit(exp1, EXP1_IN_BITS, ++cnt);
   228			expect_eq_uint(b, bit);
   229		}
   230	}
   231	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-06-26  2:05 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=202206260952.cf6IJRdW-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --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

Powered by JetHome