public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [ammarfaizi2-block:google/android/kernel/common/android12-trusty-5.10 1051/5872] include/trace/events/rwmmio.h:13:1: sparse: sparse: cast removes address space '__iomem' of expression
Date: Fri, 16 Sep 2022 12:31:05 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-trusty-5.10
head:   07055bfd3d810d41a38354693dfaa55a6f8c0025
commit: e091aa59b956dc60ca88a83ce3510a4de2d8dd59 [1051/5872] ANDROID: tracing: Add register read and write tracing support
config: arm64-randconfig-s042-20220915 (https://download.01.org/0day-ci/archive/20220916/[email protected]/config)
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/e091aa59b956dc60ca88a83ce3510a4de2d8dd59
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-trusty-5.10
        git checkout e091aa59b956dc60ca88a83ce3510a4de2d8dd59
        # 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 kernel/trace/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

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:37:1: sparse: sparse: cast removes address space '__iomem' of expression
   include/trace/events/rwmmio.h:59: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:37:1: sparse: sparse: cast removes address space '__iomem' of expression
   include/trace/events/rwmmio.h:59:1: sparse: sparse: cast removes address space '__iomem' of expression

vim +/__iomem +13 include/trace/events/rwmmio.h

    12	
  > 13	TRACE_EVENT(rwmmio_write,
    14	
    15		TP_PROTO(unsigned long fn, u64 val, u8 width, volatile void __iomem *addr),
    16	
    17		TP_ARGS(fn, val, width, addr),
    18	
    19		TP_STRUCT__entry(
    20			__field(u64, fn)
    21			__field(u64, val)
    22			__field(u8, width)
    23			__field(u64, addr)
    24		),
    25	
    26		TP_fast_assign(
    27			__entry->fn = fn;
    28			__entry->val = val;
    29			__entry->width = width;
    30			__entry->addr = (u64)addr;
    31		),
    32	
    33		TP_printk("%pS write addr=%llx of width=%x val=0x%llx\n",
    34			__entry->fn, __entry->addr, __entry->width, __entry->val)
    35	);
    36	

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

             reply	other threads:[~2022-09-16  4:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-16  4:31 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-30 12:10 [ammarfaizi2-block:google/android/kernel/common/android12-trusty-5.10 1051/5872] include/trace/events/rwmmio.h:13:1: sparse: sparse: cast removes address space '__iomem' of expression kernel test robot
2022-11-12  8:23 kernel test robot
2022-12-15 22:41 kernel test robot

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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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