# git rev-parse -q --verify 552263456215ada7ee8700ce022d12b0cffe4802^{commit} 552263456215ada7ee8700ce022d12b0cffe4802 already have revision, skipping fetch # git checkout -q -f -B kisskb 552263456215ada7ee8700ce022d12b0cffe4802 # git clean -qxdf # < git log -1 # commit 552263456215ada7ee8700ce022d12b0cffe4802 # Author: Vincenzo Frascino # Date: Mon Dec 2 07:57:29 2019 +0000 # # powerpc: Fix vDSO clock_getres() # # clock_getres in the vDSO library has to preserve the same behaviour # of posix_get_hrtimer_res(). # # In particular, posix_get_hrtimer_res() does: # sec = 0; # ns = hrtimer_resolution; # and hrtimer_resolution depends on the enablement of the high # resolution timers that can happen either at compile or at run time. # # Fix the powerpc vdso implementation of clock_getres keeping a copy of # hrtimer_resolution in vdso data and using that directly. # # Fixes: a7f290dad32e ("[PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel") # Cc: stable@vger.kernel.org # Signed-off-by: Vincenzo Frascino # Reviewed-by: Christophe Leroy # Acked-by: Shuah Khan # [chleroy: changed CLOCK_REALTIME_RES to CLOCK_HRTIMER_RES] # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/a55eca3a5e85233838c2349783bcb5164dae1d09.1575273217.git.christophe.leroy@c-s.fr # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 552263456215ada7ee8700ce022d12b0cffe4802 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64le_defconfig # Added to kconfig CONFIG_KVM_BOOK3S_64=n # Added to kconfig CONFIG_KVM=n # yes \n | make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: vmlinux.o(.text+0x31d4): Section mismatch in reference from the variable __boot_from_prom to the function .init.text:prom_init() The function __boot_from_prom() references the function __init prom_init(). This is often because __boot_from_prom lacks a __init annotation or the annotation of prom_init is wrong. WARNING: vmlinux.o(.text+0x33c8): Section mismatch in reference from the variable start_here_common to the function .init.text:start_kernel() The function start_here_common() references the function __init start_kernel(). This is often because start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. WARNING: 2 bad relocations c0000000015e3950 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_start c0000000015e3958 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_end Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc64le_defconfig+NO_KVM_ppc64le-gcc5 # Build took: 0:04:19.179237