tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15 head: 754bb029c85fb4b18d198216540f75e635dde8d4 commit: c7b6c40553f8ae90617595cc851e19520fbd945b [2837/5636] FROMLIST: tracing: Add register read/write tracing support config: arm64-randconfig-s053-20221026 compiler: aarch64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/c7b6c40553f8ae90617595cc851e19520fbd945b git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.15 git checkout c7b6c40553f8ae90617595cc851e19520fbd945b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/hyp/nvhe/ kernel/trace/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) kernel/trace/trace_readwrite.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, include/trace/events/rwmmio.h): >> include/trace/events/rwmmio.h:13:1: sparse: sparse: cast removes address space '__iomem' of expression include/trace/events/rwmmio.h:38:1: sparse: sparse: cast removes address space '__iomem' of expression include/trace/events/rwmmio.h:63:1: sparse: sparse: cast removes address space '__iomem' of expression include/trace/events/rwmmio.h:85:1: sparse: sparse: cast removes address space '__iomem' of expression kernel/trace/trace_readwrite.c: note: in included file (through include/trace/perf.h, include/trace/define_trace.h, include/trace/events/rwmmio.h): >> include/trace/events/rwmmio.h:13:1: sparse: sparse: cast removes address space '__iomem' of expression include/trace/events/rwmmio.h:38:1: sparse: sparse: cast removes address space '__iomem' of expression include/trace/events/rwmmio.h:63:1: sparse: sparse: cast removes address space '__iomem' of expression include/trace/events/rwmmio.h:85:1: sparse: sparse: cast removes address space '__iomem' of expression kernel/trace/trace_readwrite.c:16:6: sparse: sparse: symbol 'log_write_mmio' was not declared. Should it be static? kernel/trace/trace_readwrite.c:24:6: sparse: sparse: symbol 'log_post_write_mmio' was not declared. Should it be static? kernel/trace/trace_readwrite.c:32:6: sparse: sparse: symbol 'log_read_mmio' was not declared. Should it be static? kernel/trace/trace_readwrite.c:40:6: sparse: sparse: symbol 'log_post_read_mmio' was not declared. Should it be static? vim +/__iomem +13 include/trace/events/rwmmio.h 12 > 13 TRACE_EVENT(rwmmio_write, 14 15 TP_PROTO(unsigned long caller, u64 val, u8 width, volatile void __iomem *addr), 16 17 TP_ARGS(caller, val, width, addr), 18 19 TP_STRUCT__entry( 20 __field(u64, caller) 21 __field(u64, val) 22 __field(u64, addr) 23 __field(u8, width) 24 ), 25 26 TP_fast_assign( 27 __entry->caller = caller; 28 __entry->val = val; 29 __entry->addr = (unsigned long)(void *)addr; 30 __entry->width = width; 31 ), 32 33 TP_printk("%pS width=%d val=%#llx addr=%#llx", 34 (void *)(unsigned long)__entry->caller, __entry->width, 35 __entry->val, __entry->addr) 36 ); 37 -- 0-DAY CI Kernel Test Service https://01.org/lkp