[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210200136.pOtiQraL-lkp@intel.com>
Date: Thu, 20 Oct 2022 09:14:26 +0800
From: kernel test robot <lkp@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v6.1-rc1 26/26]
arch/arm/mm/idmap.c:153:41: warning: passing argument 2 of
'identity_mapping_add' makes pointer from integer without a cast
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v6.1-rc1
head: dd354395fff14a411a8b85bd2a9d70e3a43e393b
commit: dd354395fff14a411a8b85bd2a9d70e3a43e393b [26/26] HACK: map in the first section of the kernel in the identity map
config: arm-randconfig-r012-20221019
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=dd354395fff14a411a8b85bd2a9d70e3a43e393b
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v6.1-rc1
git checkout dd354395fff14a411a8b85bd2a9d70e3a43e393b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
arch/arm/mm/idmap.c: In function 'init_static_idmap':
>> arch/arm/mm/idmap.c:153:41: warning: passing argument 2 of 'identity_mapping_add' makes pointer from integer without a cast [-Wint-conversion]
153 | identity_mapping_add(idmap_pgd, 0x80000000,
| ^~~~~~~~~~
| |
| unsigned int
arch/arm/mm/idmap.c:86:58: note: expected 'const char *' but argument is of type 'unsigned int'
86 | static void identity_mapping_add(pgd_t *pgd, const char *text_start,
| ~~~~~~~~~~~~^~~~~~~~~~
arch/arm/mm/idmap.c:154:30: warning: passing argument 3 of 'identity_mapping_add' makes pointer from integer without a cast [-Wint-conversion]
154 | 0x801fffff, 0);
| ^~~~~~~~~~
| |
| unsigned int
arch/arm/mm/idmap.c:87:46: note: expected 'const char *' but argument is of type 'unsigned int'
87 | const char *text_end, unsigned long prot)
| ~~~~~~~~~~~~^~~~~~~~
vim +/identity_mapping_add +153 arch/arm/mm/idmap.c
143
144 static int __init init_static_idmap(void)
145 {
146 idmap_pgd = pgd_alloc(&init_mm);
147 if (!idmap_pgd)
148 return -ENOMEM;
149
150 pr_info("Created LPAE PGD pgd = %08x, *pgd = %08x\n",
151 (u32)idmap_pgd, (u32)*idmap_pgd);
152
> 153 identity_mapping_add(idmap_pgd, 0x80000000,
154 0x801fffff, 0);
155 identity_mapping_add(idmap_pgd, __idmap_text_start,
156 __idmap_text_end, 0);
157
158 //dump_pagetable(idmap_pgd);
159
160 /* Flush L1 for the hardware to see this page table content */
161 if (!(elf_hwcap & HWCAP_LPAE))
162 flush_cache_louis();
163
164 return 0;
165 }
166 early_initcall(init_static_idmap);
167
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (196433 bytes)
Powered by blists - more mailing lists