Skip to content

Commit 47a7e5e

Browse files
rddunlapgregkh
authored andcommitted
tty: n_hdlc: fix build on SPARC
Fix tty driver build on SPARC by not using __exitdata. It appears that SPARC does not support section .exit.data. Fixes these build errors: `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o Reported-by: kbuild test robot <[email protected]> Fixes: 0632466 ("format-security: move static strings to const") Signed-off-by: Randy Dunlap <[email protected]> Cc: Kees Cook <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Andrew Morton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5e9bd2d commit 47a7e5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/tty/n_hdlc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,11 @@ static int __init n_hdlc_init(void)
968968

969969
} /* end of init_module() */
970970

971+
#ifdef CONFIG_SPARC
972+
#undef __exitdata
973+
#define __exitdata
974+
#endif
975+
971976
static const char hdlc_unregister_ok[] __exitdata =
972977
KERN_INFO "N_HDLC: line discipline unregistered\n";
973978
static const char hdlc_unregister_fail[] __exitdata =

0 commit comments

Comments
 (0)