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: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [norov:bitmap_tmp 12/12] include/linux/bitmap.h:417:41: error: expected identifier or '(' before '!' token
Date: Tue, 30 Nov 2021 05:23:35 +0800	[thread overview]
Message-ID: <202111300512.lNfKWylS-lkp@intel.com> (raw)

tree:   https://github.com/norov/linux bitmap_tmp
head:   985b0047eb9f4a5916eeb4f85e9e173d220d8fc7
commit: 985b0047eb9f4a5916eeb4f85e9e173d220d8fc7 [12/12] aaa
config: arc-randconfig-r043-20211129 (https://download.01.org/0day-ci/archive/20211130/202111300512.lNfKWylS-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 11.2.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/985b0047eb9f4a5916eeb4f85e9e173d220d8fc7
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bitmap_tmp
        git checkout 985b0047eb9f4a5916eeb4f85e9e173d220d8fc7
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc prepare

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/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/arc/kernel/asm-offsets.c:6:
>> include/linux/bitmap.h:417:41: error: expected identifier or '(' before '!' token
     417 | #define bitmap_weight_le(src, nbits, n) !bitmap_weight_gt((src), (nbits), (n))
         |                                         ^
   include/linux/bitmap.h:419:29: note: in expansion of macro 'bitmap_weight_le'
     419 | static __always_inline bool bitmap_weight_le(const unsigned long *src,
         |                             ^~~~~~~~~~~~~~~~
   make[2]: *** [scripts/Makefile.build:122: arch/arc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1284: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:226: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +417 include/linux/bitmap.h

   414	
   415	#define bitmap_weight_gt(src, nbits, n)	 bitmap_weight_ge((src), (nbits), (n) + 1)
   416	#define bitmap_weight_lt(src, nbits, n)	!bitmap_weight_ge((src), (nbits), (n))
 > 417	#define bitmap_weight_le(src, nbits, n)	!bitmap_weight_gt((src), (nbits), (n))
   418	

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

                 reply	other threads:[~2021-11-29 21:26 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=202111300512.lNfKWylS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®