[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210241400.n3FMH5NJ-lkp@intel.com>
Date: Mon, 24 Oct 2022 14:25:36 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/arm/mach-tegra/pm.c:116:27: sparse: sparse: incorrect type in
initializer (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 247f34f7b80357943234f93f247a1ae6b6c3a740
commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 ARM: dove: multiplatform support
date: 7 months ago
config: arm-randconfig-s043-20221024
compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
# 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=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm/mach-tegra/pm.c:116:27: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int [usertype] *cpu_in_lp2 @@ got void [noderef] __iomem * @@
arch/arm/mach-tegra/pm.c:116:27: sparse: expected unsigned int [usertype] *cpu_in_lp2
arch/arm/mach-tegra/pm.c:116:27: sparse: got void [noderef] __iomem *
arch/arm/mach-tegra/pm.c:129:27: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int [usertype] *cpu_in_lp2 @@ got void [noderef] __iomem * @@
arch/arm/mach-tegra/pm.c:129:27: sparse: expected unsigned int [usertype] *cpu_in_lp2
arch/arm/mach-tegra/pm.c:129:27: sparse: got void [noderef] __iomem *
>> arch/arm/mach-tegra/pm.c:322:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *src @@ got void [noderef] __iomem * @@
arch/arm/mach-tegra/pm.c:322:9: sparse: expected void const *src
arch/arm/mach-tegra/pm.c:322:9: sparse: got void [noderef] __iomem *
>> arch/arm/mach-tegra/pm.c:324:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *dest @@ got void [noderef] __iomem * @@
arch/arm/mach-tegra/pm.c:324:9: sparse: expected void *dest
arch/arm/mach-tegra/pm.c:324:9: sparse: got void [noderef] __iomem *
>> arch/arm/mach-tegra/pm.c:327:12: sparse: sparse: cast removes address space '__iomem' of expression
arch/arm/mach-tegra/pm.c:333:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *dest @@ got void [noderef] __iomem * @@
arch/arm/mach-tegra/pm.c:333:9: sparse: expected void *dest
arch/arm/mach-tegra/pm.c:333:9: sparse: got void [noderef] __iomem *
arch/arm/mach-tegra/pm.c:336:11: sparse: sparse: cast removes address space '__iomem' of expression
--
>> arch/arm/mach-mvebu/pmsu.c:145:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *dest @@ got void [noderef] __iomem *[assigned] sram_virt_base @@
arch/arm/mach-mvebu/pmsu.c:145:9: sparse: expected void *dest
arch/arm/mach-mvebu/pmsu.c:145:9: sparse: got void [noderef] __iomem *[assigned] sram_virt_base
vim +116 arch/arm/mach-tegra/pm.c
d552920a02759c Joseph Lo 2012-10-31 112
1f3e18ec95f615 Dmitry Osipenko 2020-02-25 113 void tegra_pm_clear_cpu_in_lp2(void)
d457ef358f3c71 Joseph Lo 2012-10-31 114 {
8f6a0b6528820f Joseph Lo 2013-06-04 115 int phy_cpu_id = cpu_logical_map(smp_processor_id());
d457ef358f3c71 Joseph Lo 2012-10-31 @116 u32 *cpu_in_lp2 = tegra_cpu_lp2_mask;
d457ef358f3c71 Joseph Lo 2012-10-31 117
d457ef358f3c71 Joseph Lo 2012-10-31 118 spin_lock(&tegra_lp2_lock);
d457ef358f3c71 Joseph Lo 2012-10-31 119
d457ef358f3c71 Joseph Lo 2012-10-31 120 BUG_ON(!(*cpu_in_lp2 & BIT(phy_cpu_id)));
d457ef358f3c71 Joseph Lo 2012-10-31 121 *cpu_in_lp2 &= ~BIT(phy_cpu_id);
d457ef358f3c71 Joseph Lo 2012-10-31 122
d457ef358f3c71 Joseph Lo 2012-10-31 123 spin_unlock(&tegra_lp2_lock);
d457ef358f3c71 Joseph Lo 2012-10-31 124 }
d457ef358f3c71 Joseph Lo 2012-10-31 125
:::::: The code at line 116 was first introduced by commit
:::::: d457ef358f3c7179c428becda45b1dfd2b8cf98a ARM: tegra30: cpuidle: add powered-down state for secondary CPUs
:::::: TO: Joseph Lo <josephl@...dia.com>
:::::: CC: Stephen Warren <swarren@...dia.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (223263 bytes)
Powered by blists - more mailing lists