Skip to contentSkip to conversation

kernel/trace/trace_selftest.c:761: warning: "BYTE_NUMBER" redefined

PATCH kernel test robot 1 participant 1 message Jun 6, 2024 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ee78a17615ad0cfdbbc27182b1047cd36c9d4d5f
commit: 47c3c70aa36971c90e32e91f9254110195d67a02 [3357/4264] function_graph: Add selftest for passing local variables
config: sh-randconfig-c004-20211223 (https://download.01.org/0day-ci/archive/20240606/[email protected]/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240606/[email protected]/reproduce)

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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

In file included from kernel/trace/trace.c:8677:

>> kernel/trace/trace_selftest.c:761: warning: "BYTE_NUMBER" redefined
     761 | #define BYTE_NUMBER 123
         | 

In file included from arch/sh/include/asm/bitops.h:17,
from include/linux/bitops.h:63,
from include/linux/thread_info.h:27,
from include/asm-generic/preempt.h:5,
from ./arch/sh/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from include/linux/ring_buffer.h:5,
from kernel/trace/trace.c:15:
arch/sh/include/asm/bitops-op32.h:14: note: this is the location of the previous definition
14 | #define BYTE_NUMBER(nr) ((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE)
|

vim +/BYTE_NUMBER +761 kernel/trace/trace_selftest.c

760

 > 761	#define BYTE_NUMBER 123

762 #define SHORT_NUMBER 12345
763 #define WORD_NUMBER 1234567890
764 #define LONG_NUMBER 1234567890123456789LL
765

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki