oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [arm-integrator:kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split-pointless-c13 7/31] arch/arm64/kernel/vdso.c:293:38: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'const void *'
@ 2023-03-14 12:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-14 12:29 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 kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split-pointless-c13
head:   961fd7e75191ae82383f80c1dfd97559f14965b8
commit: 6e863d123cc67f8fb660aa54f971a01ddc56b5b2 [7/31] arm64: memory: Make virt_to_pfn() a static inline
config: arm64-randconfig-r004-20230312 (https://download.01.org/0day-ci/archive/20230314/202303142024.21QG0FVl-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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=6e863d123cc67f8fb660aa54f971a01ddc56b5b2
        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.2-rc3-just-ttbr0-split-pointless-c13
        git checkout 6e863d123cc67f8fb660aa54f971a01ddc56b5b2
        # 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/202303142024.21QG0FVl-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/arm64/kernel/vdso.c:293: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:351: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:25:40: note: expanded from macro '__pfn_to_page'
   #define __pfn_to_page(pfn)      (vmemmap + (pfn))
                                               ^~~
   arch/arm64/include/asm/memory.h:324:53: note: passing argument to parameter 'kaddr' here
   static inline unsigned long virt_to_pfn(const void *kaddr)
                                                       ^
   arch/arm64/kernel/vdso.c:321:2: warning: array index 1 is past the end of the array (that has type 'struct vdso_abi_info[1]') [-Warray-bounds]
           vdso_info[VDSO_ABI_AA32].dm = &aarch32_vdso_maps[AA32_MAP_VVAR];
           ^         ~~~~~~~~~~~~~
   arch/arm64/kernel/vdso.c:54:1: note: array 'vdso_info' declared here
   static struct vdso_abi_info vdso_info[] __ro_after_init = {
   ^
   arch/arm64/kernel/vdso.c:322:2: warning: array index 1 is past the end of the array (that has type 'struct vdso_abi_info[1]') [-Warray-bounds]
           vdso_info[VDSO_ABI_AA32].cm = &aarch32_vdso_maps[AA32_MAP_VDSO];
           ^         ~~~~~~~~~~~~~
   arch/arm64/kernel/vdso.c:54:1: note: array 'vdso_info' declared here
   static struct vdso_abi_info vdso_info[] __ro_after_init = {
   ^
   2 warnings and 1 error generated.


vim +293 arch/arm64/kernel/vdso.c

9031fefde6f2ac Will Deacon       2012-03-05  277  
1255a7341bee6c Vincenzo Frascino 2019-04-15  278  static int aarch32_alloc_kuser_vdso_page(void)
9031fefde6f2ac Will Deacon       2012-03-05  279  {
9031fefde6f2ac Will Deacon       2012-03-05  280  	extern char __kuser_helper_start[], __kuser_helper_end[];
9031fefde6f2ac Will Deacon       2012-03-05  281  	int kuser_sz = __kuser_helper_end - __kuser_helper_start;
1255a7341bee6c Vincenzo Frascino 2019-04-15  282  	unsigned long vdso_page;
9031fefde6f2ac Will Deacon       2012-03-05  283  
af1b3cf2c2a3f4 Vincenzo Frascino 2019-04-15  284  	if (!IS_ENABLED(CONFIG_KUSER_HELPERS))
af1b3cf2c2a3f4 Vincenzo Frascino 2019-04-15  285  		return 0;
af1b3cf2c2a3f4 Vincenzo Frascino 2019-04-15  286  
7cd6ca1d790226 Will Deacon       2021-03-18  287  	vdso_page = get_zeroed_page(GFP_KERNEL);
1255a7341bee6c Vincenzo Frascino 2019-04-15  288  	if (!vdso_page)
0d747f6585954d Vincenzo Frascino 2019-04-15  289  		return -ENOMEM;
9031fefde6f2ac Will Deacon       2012-03-05  290  
1255a7341bee6c Vincenzo Frascino 2019-04-15  291  	memcpy((void *)(vdso_page + 0x1000 - kuser_sz), __kuser_helper_start,
1255a7341bee6c Vincenzo Frascino 2019-04-15  292  	       kuser_sz);
74fc72e77dc5c8 Mark Rutland      2020-04-28 @293  	aarch32_vectors_page = virt_to_page(vdso_page);
1255a7341bee6c Vincenzo Frascino 2019-04-15  294  	return 0;
0d747f6585954d Vincenzo Frascino 2019-04-15  295  }
9031fefde6f2ac Will Deacon       2012-03-05  296  

:::::: The code at line 293 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-03-14 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 12:29 [arm-integrator:kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split-pointless-c13 7/31] arch/arm64/kernel/vdso.c:293: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).