* [arm-integrator:b4/virt-to-pfn-v6-4-rc1 11/12] arch/arm64/kernel/vdso.c:291:38: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *'
@ 2023-05-09 22:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-09 22:45 UTC (permalink / raw)
To: Linus Walleij; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git b4/virt-to-pfn-v6-4-rc1
head: 2c9796d7393a139f2b658603859f3cb95f98fec6
commit: e9d83dd0dd653d3355fb5c7309ce964050c162ed [11/12] arm64: memory: Make virt_to_pfn() a static inline
config: arm64-randconfig-r011-20230509 (https://download.01.org/0day-ci/archive/20230510/202305100635.jHxJhhgc-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=e9d83dd0dd653d3355fb5c7309ce964050c162ed
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator b4/virt-to-pfn-v6-4-rc1
git checkout e9d83dd0dd653d3355fb5c7309ce964050c162ed
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/
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/202305100635.jHxJhhgc-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/arm64/kernel/vdso.c:291:38: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' [-Wint-conversion]
aarch32_vectors_page = virt_to_page(vdso_page);
^~~~~~~~~
arch/arm64/include/asm/memory.h:364:50: note: expanded from macro 'virt_to_page'
#define virt_to_page(x) pfn_to_page(virt_to_pfn(x))
^
include/asm-generic/memory_model.h:37:40: note: expanded from macro '__pfn_to_page'
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^~~
arch/arm64/include/asm/memory.h:337:53: note: passing argument to parameter 'kaddr' here
static inline unsigned long virt_to_pfn(const void *kaddr)
^
1 error generated.
vim +291 arch/arm64/kernel/vdso.c
9031fefde6f2ac Will Deacon 2012-03-05 275
1255a7341bee6c Vincenzo Frascino 2019-04-15 276 static int aarch32_alloc_kuser_vdso_page(void)
9031fefde6f2ac Will Deacon 2012-03-05 277 {
9031fefde6f2ac Will Deacon 2012-03-05 278 extern char __kuser_helper_start[], __kuser_helper_end[];
9031fefde6f2ac Will Deacon 2012-03-05 279 int kuser_sz = __kuser_helper_end - __kuser_helper_start;
1255a7341bee6c Vincenzo Frascino 2019-04-15 280 unsigned long vdso_page;
9031fefde6f2ac Will Deacon 2012-03-05 281
af1b3cf2c2a3f4 Vincenzo Frascino 2019-04-15 282 if (!IS_ENABLED(CONFIG_KUSER_HELPERS))
af1b3cf2c2a3f4 Vincenzo Frascino 2019-04-15 283 return 0;
af1b3cf2c2a3f4 Vincenzo Frascino 2019-04-15 284
7cd6ca1d790226 Will Deacon 2021-03-18 285 vdso_page = get_zeroed_page(GFP_KERNEL);
1255a7341bee6c Vincenzo Frascino 2019-04-15 286 if (!vdso_page)
0d747f6585954d Vincenzo Frascino 2019-04-15 287 return -ENOMEM;
9031fefde6f2ac Will Deacon 2012-03-05 288
1255a7341bee6c Vincenzo Frascino 2019-04-15 289 memcpy((void *)(vdso_page + 0x1000 - kuser_sz), __kuser_helper_start,
1255a7341bee6c Vincenzo Frascino 2019-04-15 290 kuser_sz);
74fc72e77dc5c8 Mark Rutland 2020-04-28 @291 aarch32_vectors_page = virt_to_page(vdso_page);
1255a7341bee6c Vincenzo Frascino 2019-04-15 292 return 0;
0d747f6585954d Vincenzo Frascino 2019-04-15 293 }
9031fefde6f2ac Will Deacon 2012-03-05 294
:::::: The code at line 291 was first introduced by commit
:::::: 74fc72e77dc5c8033d1b47d2c8a7229b4b83a746 arm64: vdso: remove aarch32_vdso_pages[]
:::::: TO: Mark Rutland <mark.rutland@arm.com>
:::::: CC: Will Deacon <will@kernel.org>
--
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-05-09 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09 22:45 [arm-integrator:b4/virt-to-pfn-v6-4-rc1 11/12] arch/arm64/kernel/vdso.c:291:38: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *' 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;
as well as URLs for NNTP newsgroup(s).