[peterz-queue:call-depth-tracking 59/60] ./include/generated/asm-offsets.h:81: warning: "TASK_SIZE" redefined

From: kernel test robot
Date: Fri Sep 23 2022 - 15:05:15 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git call-depth-tracking
head: 856304fc062b9ad34742a604b98cc775846c0cb3
commit: 46f9bf3269a589dc0258ae68c32e064e25a0a149 [59/60] x86/ftrace: Make it call depth tracking aware
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220924/202209240243.vRVXCjW9-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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/peterz/queue.git/commit/?id=46f9bf3269a589dc0258ae68c32e064e25a0a149
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue call-depth-tracking
git checkout 46f9bf3269a589dc0258ae68c32e064e25a0a149
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash kernel/trace/

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

All warnings (new ones prefixed by >>):

kernel/trace/trace.c: In function 'trace_check_vprintf':
kernel/trace/trace.c:3846:17: warning: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
3846 | trace_seq_vprintf(&iter->seq, iter->fmt, ap);
| ^~~~~~~~~~~~~~~~~
kernel/trace/trace.c:3913:17: warning: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
3913 | trace_seq_vprintf(&iter->seq, p, ap);
| ^~~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/asm-offsets.h:1,
from kernel/trace/trace_selftest.c:10,
from kernel/trace/trace.c:8672:
./include/generated/asm-offsets.h: At top level:
>> ./include/generated/asm-offsets.h:81: warning: "TASK_SIZE" redefined
81 | #define TASK_SIZE -1342177280 /* TASK_SIZE */
|
In file included from arch/powerpc/include/asm/processor.h:73,
from arch/powerpc/include/asm/thread_info.h:46,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:55,
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/powerpc/include/asm/task_size_32.h:9: note: this is the location of the previous definition
9 | #define TASK_SIZE (CONFIG_TASK_SIZE)
|
--
In file included from arch/powerpc/include/asm/asm-offsets.h:1,
from kernel/trace/trace_selftest.c:10,
from kernel/trace/trace.c:8672:
>> ./include/generated/asm-offsets.h:81: warning: "TASK_SIZE" redefined
81 | #define TASK_SIZE -1342177280 /* TASK_SIZE */
|
In file included from arch/powerpc/include/asm/processor.h:73,
from arch/powerpc/include/asm/thread_info.h:46,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/powerpc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:55,
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/powerpc/include/asm/task_size_32.h:9: note: this is the location of the previous definition
9 | #define TASK_SIZE (CONFIG_TASK_SIZE)
|

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