Content-Type: multipart/mixed; boundary="===============2042153650231530094==" MIME-Version: 1.0 From: Minchan Kim To: kbuild-all@lists.01.org Subject: Re: [PATCH v7 2/7] mm: introduce external memory hinting API Date: Tue, 03 Mar 2020 06:57:56 -0800 Message-ID: <20200303145756.GA219683@google.com> In-Reply-To: <202003031853.wHSB4BG2%lkp@intel.com> List-Id: --===============2042153650231530094== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Mar 03, 2020 at 06:33:03PM +0800, kbuild test robot wrote: > Hi Minchan, > = > I love your patch! Yet something to improve: > = > [auto build test ERROR on arm64/for-next/core] > [also build test ERROR on arm/for-next m68k/for-next powerpc/next s390/fe= atures linus/master v5.6-rc4 next-20200302] > [cannot apply to tip/x86/asm hp-parisc/for-next] > [if your patch is applied to the wrong git tree, please drop us a note to= help > improve the system. BTW, we also suggest to use '--base' option to specif= y the > base tree in git format-patch, please see https://stackoverflow.com/a/374= 06982] > = > url: https://github.com/0day-ci/linux/commits/Minchan-Kim/introduce-me= mory-hinting-API-for-external-process/20200303-044625 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git f= or-next/core > config: arm64-defconfig (attached as .config) > compiler: aarch64-linux-gcc (GCC) 7.5.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > GCC_VERSION=3D7.5.0 make.cross ARCH=3Darm64 = > = > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > = > All errors (new ones prefixed by >>): > = > aarch64-linux-ld: arch/arm64/kernel/head.o: relocation R_AARCH64_ABS32= against `_kernel_offset_le_lo32' can not be used when making a shared obje= ct > aarch64-linux-ld: arch/arm64/kernel/efi-entry.stub.o: relocation R_AAR= CH64_ABS32 against `__efistub_stext_offset' can not be used when making a s= hared object > arch/arm64/kernel/head.o: In function `kimage_vaddr': > (.idmap.text+0x0): dangerous relocation: unsupported relocation > arch/arm64/kernel/head.o: In function `__primary_switch': > (.idmap.text+0x378): dangerous relocation: unsupported relocation > (.idmap.text+0x380): dangerous relocation: unsupported relocation > >> arch/arm64/kernel/sys32.o:(.rodata+0xdb8): undefined reference to `__a= rm64_process_madvise' > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Thanks. I guess I had a mistake so I hope this patch should fix the issue. >From 3cd8bc4dda41d13bcce6fcf6d9252ff684a1929d Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Tue, 3 Mar 2020 06:53:13 -0800 Subject: [PATCH] mm: fix process_madvise build break for arm64 0-day reported build break from process_madvise on ARM64. aarch64-linux-ld: arch/arm64/kernel/head.o: relocation R_AARCH64_ABS32 a= gainst `_kernel_offset_le_lo32' can not be used when making a shared object aarch64-linux-ld: arch/arm64/kernel/efi-entry.stub.o: relocation R_AARCH= 64_ABS32 against `__efistub_stext_offset' can not be used when making a sha= red object arch/arm64/kernel/head.o: In function `kimage_vaddr': (.idmap.text+0x0): dangerous relocation: unsupported relocation arch/arm64/kernel/head.o: In function `__primary_switch': (.idmap.text+0x378): dangerous relocation: unsupported relocation (.idmap.text+0x380): dangerous relocation: unsupported relocation >> arch/arm64/kernel/sys32.o:(.rodata+0xdb8): undefined reference to `__arm= 64_process_madvise' This patch should fix it. Reported-by: kbuild test robot Signed-off-by: Minchan Kim --- arch/arm64/include/asm/unistd32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/uni= std32.h index 2a27be7a1f91..a1eec8d879d4 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -884,7 +884,7 @@ __SYSCALL(__NR_openat2, sys_openat2) #define __NR_pidfd_getfd 438 __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) #define __NR_process_madvise 439 -__SYSCALL(__NR_process_madvise, process_madvise) +__SYSCALL(__NR_process_madvise, sys_process_madvise) = /* * Please add new compat syscalls above this comment and update -- = 2.25.1.481.gfbce0eb801-goog --===============2042153650231530094==--