mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Joel Stanley <joel@jms.id.au>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Andrew Jeffery <andrew@aj.id.au>
Subject: drivers/soc/aspeed/aspeed-socinfo.c:80:17: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sun, 27 Dec 2020 11:43:49 +0800	[thread overview]
Message-ID: <202012271145.Ck0WX86i-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2802 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f838f8d2b694cf9d524dc4423e9dd2db13892f3f
commit: e0218dca5787c851b403fcbc33cdfec795446fca soc: aspeed: Add soc info driver
date:   3 months ago
config: openrisc-randconfig-s032-20201221 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.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.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e0218dca5787c851b403fcbc33cdfec795446fca
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e0218dca5787c851b403fcbc33cdfec795446fca
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=openrisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


"sparse warnings: (new ones prefixed by >>)"
>> drivers/soc/aspeed/aspeed-socinfo.c:80:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *addr @@     got void [noderef] __iomem *[assigned] reg @@
   drivers/soc/aspeed/aspeed-socinfo.c:80:17: sparse:     expected void *addr
   drivers/soc/aspeed/aspeed-socinfo.c:80:17: sparse:     got void [noderef] __iomem *[assigned] reg
   drivers/soc/aspeed/aspeed-socinfo.c:88:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *addr @@     got void [noderef] __iomem *[assigned] reg @@
   drivers/soc/aspeed/aspeed-socinfo.c:88:25: sparse:     expected void *addr
   drivers/soc/aspeed/aspeed-socinfo.c:88:25: sparse:     got void [noderef] __iomem *[assigned] reg

vim +80 drivers/soc/aspeed/aspeed-socinfo.c

    58	
    59	static int __init aspeed_socinfo_init(void)
    60	{
    61		struct soc_device_attribute *attrs;
    62		struct soc_device *soc_dev;
    63		struct device_node *np;
    64		void __iomem *reg;
    65		bool has_chipid = false;
    66		u32 siliconid;
    67		u32 chipid[2];
    68		const char *machine = NULL;
    69	
    70		np = of_find_compatible_node(NULL, NULL, "aspeed,silicon-id");
    71		if (!of_device_is_available(np)) {
    72			of_node_put(np);
    73			return -ENODEV;
    74		}
    75	
    76		reg = of_iomap(np, 0);
    77		if (!reg)
    78			return -ENODEV;
    79		siliconid = readl(reg);
  > 80		iounmap(reg);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28328 bytes --]

                 reply	other threads:[~2020-12-27  4:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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 \
    --in-reply-to=202012271145.Ck0WX86i-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew@aj.id.au \
    --cc=joel@jms.id.au \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome