[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210171517.FDz0bsEg-lkp@intel.com>
Date: Mon, 17 Oct 2022 15:04:34 +0800
From: kernel test robot <lkp@...el.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Dinh Nguyen <dinguyen@...nel.org>
Subject: drivers/edac/altera_edac.c:886:28: sparse: sparse: incorrect type in
argument 1 (different base types)
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9abf2313adc1ca1b6180c508c25f22f9395cc780
commit: 4a9a1a5602d82c079325bf37466af0b67d6c0b9e arm64: socfpga: merge Agilex and N5X into ARCH_INTEL_SOCFPGA
date: 1 year, 7 months ago
config: arm64-randconfig-s052-20221017
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a9a1a5602d82c079325bf37466af0b67d6c0b9e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4a9a1a5602d82c079325bf37466af0b67d6c0b9e
# 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 drivers/edac/ drivers/gpu/drm/tegra/
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 >>)
>> drivers/edac/altera_edac.c:886:28: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __be32 const [usertype] *p @@ got unsigned int const [usertype] *handle @@
drivers/edac/altera_edac.c:886:28: sparse: expected restricted __be32 const [usertype] *p
drivers/edac/altera_edac.c:886:28: sparse: got unsigned int const [usertype] *handle
vim +886 drivers/edac/altera_edac.c
1166fde93d5b1d7 Thor Thayer 2016-06-22 878
1166fde93d5b1d7 Thor Thayer 2016-06-22 879 static inline int a10_get_irq_mask(struct device_node *np)
1166fde93d5b1d7 Thor Thayer 2016-06-22 880 {
1166fde93d5b1d7 Thor Thayer 2016-06-22 881 int irq;
1166fde93d5b1d7 Thor Thayer 2016-06-22 882 const u32 *handle = of_get_property(np, "interrupts", NULL);
1166fde93d5b1d7 Thor Thayer 2016-06-22 883
1166fde93d5b1d7 Thor Thayer 2016-06-22 884 if (!handle)
1166fde93d5b1d7 Thor Thayer 2016-06-22 885 return -ENODEV;
1166fde93d5b1d7 Thor Thayer 2016-06-22 @886 irq = be32_to_cpup(handle);
1166fde93d5b1d7 Thor Thayer 2016-06-22 887 return irq;
1166fde93d5b1d7 Thor Thayer 2016-06-22 888 }
1166fde93d5b1d7 Thor Thayer 2016-06-22 889
:::::: The code at line 886 was first introduced by commit
:::::: 1166fde93d5b1d7267992edc7e2c8ee129d6667e EDAC, altera: Add Arria10 ECC memory init functions
:::::: TO: Thor Thayer <tthayer@...nsource.altera.com>
:::::: CC: Borislav Petkov <bp@...e.de>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (133173 bytes)
Powered by blists - more mailing lists