[openeuler:openEuler-1.0-LTS 1944/1944] lib/prime_numbers.c:8: warning: "bitmap_size" redefined
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 49bc452fdcb1e9ec3f9bb20cd3e15b865a2933fd commit: 9e8111c56a2515c7634662d19c29fde636758a02 [1944/1944] bitmap: introduce generic optimized bitmap_size() config: arm64-randconfig-r052-20251217 (https://download.01.org/0day-ci/archive/20251217/202512170947.gjTMu0Jt-lkp@i...) compiler: aarch64-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251217/202512170947.gjTMu0Jt-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512170947.gjTMu0Jt-lkp@intel.com/ All warnings (new ones prefixed by >>):
lib/prime_numbers.c:8: warning: "bitmap_size" redefined 8 | #define bitmap_size(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long)) | In file included from include/linux/cpumask.h:12, from include/linux/rcupdate.h:44, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from arch/arm64/include/asm/compat.h:25, from arch/arm64/include/asm/stat.h:24, from include/linux/stat.h:6, from include/linux/module.h:11, from lib/prime_numbers.c:3: include/linux/bitmap.h:215: note: this is the location of the previous definition 215 | #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) |
vim +/bitmap_size +8 lib/prime_numbers.c cf4a7207b1cb4a Chris Wilson 2016-12-22 7 cf4a7207b1cb4a Chris Wilson 2016-12-22 @8 #define bitmap_size(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long)) cf4a7207b1cb4a Chris Wilson 2016-12-22 9 :::::: The code at line 8 was first introduced by commit :::::: cf4a7207b1cb4a3c3fe3aa11a83c9d673722a7f5 lib: Add a simple prime number generator :::::: TO: Chris Wilson <chris@chris-wilson.co.uk> :::::: CC: Daniel Vetter <daniel.vetter@ffwll.ch> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot