# git rev-parse -q --verify 367df0e19c67af934839ab98d7003ef5f3f2b02f^{commit} 367df0e19c67af934839ab98d7003ef5f3f2b02f already have revision, skipping fetch # git checkout -q -f -B kisskb 367df0e19c67af934839ab98d7003ef5f3f2b02f # git clean -qxdf # < git log -1 # commit 367df0e19c67af934839ab98d7003ef5f3f2b02f # Author: Masahiro Yamada # Date: Sun Oct 1 14:47:36 2023 +0900 # # modpost: factor out the common boilerplate of section_rel(a) # # The first few lines of section_rel() and section_rela() are the same. # They both retrieve the index of the section to which the relocaton # applies, and skip known-good sections. This common code should be moved # to check_sec_ref(). # # Avoid ugly casts when computing 'start' and 'stop', and also make the # Elf_Rel and Elf_Rela pointers const. # # Signed-off-by: Masahiro Yamada # Reviewed-by: Nick Desaulniers # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 367df0e19c67af934839ab98d7003ef5f3f2b02f # make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- defconfig # < make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 40 ARCH=sparc64 O=/kisskb/build/kbuild_defconfig_sparc64-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/sparc64-linux/bin/sparc64-linux- In file included from /kisskb/src/scripts/mod/modpost.c:23: /kisskb/src/scripts/mod/modpost.c: In function ‘section_rela’: /kisskb/src/scripts/mod/modpost.h:66:17: warning: passing argument 2 of ‘__endian’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 66 | __endian(&(x), &(__x), sizeof(__x)); \ | ^~~~~~ /kisskb/src/scripts/mod/modpost.c:1437:14: note: in expansion of macro ‘TO_NATIVE’ 1437 | r_offset = TO_NATIVE(rela->r_offset); | ^~~~~~~~~ /kisskb/src/scripts/mod/modpost.h:56:52: note: expected ‘void *’ but argument is of type ‘const Elf64_Addr *’ {aka ‘const long unsigned int *’} 56 | static inline void __endian(const void *src, void *dest, unsigned int size) | ~~~~~~^~~~ /kisskb/src/scripts/mod/modpost.h:66:17: warning: passing argument 2 of ‘__endian’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 66 | __endian(&(x), &(__x), sizeof(__x)); \ | ^~~~~~ /kisskb/src/scripts/mod/modpost.c:1440:11: note: in expansion of macro ‘TO_NATIVE’ 1440 | taddr = TO_NATIVE(rela->r_addend); | ^~~~~~~~~ /kisskb/src/scripts/mod/modpost.h:56:52: note: expected ‘void *’ but argument is of type ‘const Elf64_Sxword *’ {aka ‘const long int *’} 56 | static inline void __endian(const void *src, void *dest, unsigned int size) | ~~~~~~^~~~ /kisskb/src/scripts/mod/modpost.c: In function ‘section_rel’: /kisskb/src/scripts/mod/modpost.h:66:17: warning: passing argument 2 of ‘__endian’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 66 | __endian(&(x), &(__x), sizeof(__x)); \ | ^~~~~~ /kisskb/src/scripts/mod/modpost.c:1472:14: note: in expansion of macro ‘TO_NATIVE’ 1472 | r_offset = TO_NATIVE(rel->r_offset); | ^~~~~~~~~ /kisskb/src/scripts/mod/modpost.h:56:52: note: expected ‘void *’ but argument is of type ‘const Elf64_Addr *’ {aka ‘const long unsigned int *’} 56 | static inline void __endian(const void *src, void *dest, unsigned int size) | ~~~~~~^~~~ :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] cc1: warning: unrecognized command line option '-Wno-shift-negative-value' WARNING: modpost: EXPORT symbol "_mcount" [vmlinux] version generation failed, symbol will not be versioned. Is "_mcount" prototyped in ? kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/kbuild_defconfig_sparc64-gcc5 # Build took: 0:00:46.837309