* [linux-next:master 13813/14297] arch/loongarch/kernel/relocate.c:166:38: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2023-03-01 7:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-01 7:06 UTC (permalink / raw)
To: Youling Tang
Cc: oe-kbuild-all, Linux Memory Management List, Huacai Chen, Xi Ruoyao
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 1716a175592aff9549a0c07aac8f9cadd03003f5
commit: e5f02b51fa0cb785e352e77271a65e96051b789b [13813/14297] LoongArch: Add support for kernel address space layout randomization (KASLR)
config: loongarch-randconfig-s053-20230226 (https://download.01.org/0day-ci/archive/20230301/202303011456.WEPeM0ZN-lkp@intel.com/config)
compiler: loongarch64-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/next/linux-next.git/commit/?id=e5f02b51fa0cb785e352e77271a65e96051b789b
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e5f02b51fa0cb785e352e77271a65e96051b789b
# 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=loongarch olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303011456.WEPeM0ZN-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/loongarch/kernel/relocate.c:166:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char *cmdline @@ got void [noderef] __iomem * @@
arch/loongarch/kernel/relocate.c:166:38: sparse: expected char *cmdline
arch/loongarch/kernel/relocate.c:166:38: sparse: got void [noderef] __iomem *
vim +166 arch/loongarch/kernel/relocate.c
159
160 void * __init relocate_kernel(void)
161 {
162 unsigned long kernel_length;
163 unsigned long random_offset = 0;
164 void *location_new = _text; /* Default to original kernel start */
165 void *kernel_entry = start_kernel; /* Default to original kernel entry point */
> 166 char *cmdline = early_ioremap(fw_arg1, COMMAND_LINE_SIZE); /* Boot command line is passed in fw_arg1 */
167
168 strscpy(boot_command_line, cmdline, COMMAND_LINE_SIZE);
169
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-01 7:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01 7:06 [linux-next:master 13813/14297] arch/loongarch/kernel/relocate.c:166:38: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox