Commit e9f98feb authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Andrew Morton

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.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent ad6eb1ec
...@@ -193,9 +193,7 @@ struct uasm_label { ...@@ -193,9 +193,7 @@ struct uasm_label {
void uasm_build_label(struct uasm_label **lab, u32 *addr, void uasm_build_label(struct uasm_label **lab, u32 *addr,
int lid); int lid);
#ifdef CONFIG_64BIT
int uasm_in_compat_space_p(long addr); int uasm_in_compat_space_p(long addr);
#endif
int uasm_rel_hi(long val); int uasm_rel_hi(long val);
int uasm_rel_lo(long val); int uasm_rel_lo(long val);
void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr); void UASM_i_LA_mostly(u32 **buf, unsigned int rs, long addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment