Buildresult: kbuild/m68k-defconfig/m68k-gcc12 built on Oct 4 2023, 07:47
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
OK
Date/Time:
Oct 4 2023, 07:47
Duration:
0:01:51.873424
Builder:
ka7
Revision:
modpost: factor out the common boilerplate of section_rel(a) (
367df0e19c67af934839ab98d7003ef5f3f2b02f)
Target:
kbuild/m68k-defconfig/m68k-gcc12
Branch:
kbuild
Compiler:
m68k-gcc12
(m68k-linux-gcc (GCC) 12.2.0 / GNU ld (GNU Binutils) 2.39)
Config:
defconfig
(
download
)
Log:
Download original
Possible warnings (3)
scripts/mod/modpost.h:66:17: warning: passing argument 2 of ‘__endian’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] scripts/mod/modpost.h:66:17: warning: passing argument 2 of ‘__endian’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] scripts/mod/modpost.h:66:17: warning: passing argument 2 of ‘__endian’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
Full Log
# 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 <masahiroy@kernel.org> # 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 <masahiroy@kernel.org> # Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> # < /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
© Michael Ellerman 2006-2018.