# 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-12.2.0-nolibc/m68k-linux/bin/m68k-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-linux-ld --version # < git log --format=%s --max-count=1 367df0e19c67af934839ab98d7003ef5f3f2b02f # make -s -j 32 ARCH=m68k O=/kisskb/build/kbuild_defconfig_m68k-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-linux- defconfig # < make -s -j 32 ARCH=m68k O=/kisskb/build/kbuild_defconfig_m68k-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-linux- help # make -s -j 32 ARCH=m68k O=/kisskb/build/kbuild_defconfig_m68k-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-linux- olddefconfig # make -s -j 32 ARCH=m68k O=/kisskb/build/kbuild_defconfig_m68k-gcc12 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-12.2.0-nolibc/m68k-linux/bin/m68k-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 Elf32_Addr *’ {aka ‘const 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 Elf32_Sword *’ {aka ‘const 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 Elf32_Addr *’ {aka ‘const unsigned int *’} 56 | static inline void __endian(const void *src, void *dest, unsigned int size) | ~~~~~~^~~~ Completed OK # rm -rf /kisskb/build/kbuild_defconfig_m68k-gcc12 # Build took: 0:01:51.873424