[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20231004101356.4f3a0a9c@canb.auug.org.au>
Date: Wed, 4 Oct 2023 10:13:56 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>
Subject: linux-next: build warning after merge of the kbuild tree
Hi all,
After merging the kbuild tree, today's linux-next build (powerpc
ppc64_defconfig) produced this warning:
In file included from scripts/mod/modpost.c:23:
scripts/mod/modpost.c: In function 'section_rela':
scripts/mod/modpost.h:66:24: warning: passing argument 2 of '__endian' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
66 | __endian(&(x), &(__x), sizeof(__x)); \
| ^~~~~~
scripts/mod/modpost.c:1437:28: note: in expansion of macro 'TO_NATIVE'
1437 | r_offset = TO_NATIVE(rela->r_offset);
| ^~~~~~~~~
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)
| ~~~~~~^~~~
scripts/mod/modpost.h:66:24: warning: passing argument 2 of '__endian' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
66 | __endian(&(x), &(__x), sizeof(__x)); \
| ^~~~~~
scripts/mod/modpost.c:1440:25: note: in expansion of macro 'TO_NATIVE'
1440 | taddr = TO_NATIVE(rela->r_addend);
| ^~~~~~~~~
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)
| ~~~~~~^~~~
scripts/mod/modpost.c: In function 'section_rel':
scripts/mod/modpost.h:66:24: warning: passing argument 2 of '__endian' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
66 | __endian(&(x), &(__x), sizeof(__x)); \
| ^~~~~~
scripts/mod/modpost.c:1472:28: note: in expansion of macro 'TO_NATIVE'
1472 | r_offset = TO_NATIVE(rel->r_offset);
| ^~~~~~~~~
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)
| ~~~~~~^~~~
Introduced by commit
367df0e19c67 ("modpost: factor out the common boilerplate of section_rel(a)")
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists