Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mips: unhide uasm_in_compat_space_p() declaration

uasm_in_compat_space_p() has a conditional declaration but is defined
unconditionally because of another local user, which causes a warning:

arch/mips/mm/uasm.c:421:5: error: no previous prototype for 'uasm_in_compat_space_p' [-Werror=missing-prototypes]

Make the declaration unconditional to avoid this.

Link: https://lkml.kernel.org/r/20231204115710.2247097-10-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Arnd Bergmann and committed by
Andrew Morton
e9f98feb ad6eb1ec

-2
-2
arch/mips/include/asm/uasm.h
··· 193 193 194 194 void uasm_build_label(struct uasm_label **lab, u32 *addr, 195 195 int lid); 196 - #ifdef CONFIG_64BIT 197 196 int uasm_in_compat_space_p(long addr); 198 - #endif 199 197 int uasm_rel_hi(long val); 200 198 int uasm_rel_lo(long val); 201 199 void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr);