Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92b336f6 authored by Cong Ding's avatar Cong Ding Committed by Greg Kroah-Hartman
Browse files

tty: vt/Makefile: set the variables to static



tty: vt/Makefile: set the variables to static

In the file drivers/tty/vt/defkeymap.c generated by command
loadkeys --mktable defkeymap.map > defkeymap.c
the 6 variables: shift_map, altgr_map, ctrl_map, shift_ctrl_map, alt_map,
and ctrl_alt_map should be static because they are used only in this file.
There is no reason to remove the static by sed command.

Signed-off-by: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6f538fe3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -27,8 +27,6 @@ $(obj)/defkeymap.o: $(obj)/defkeymap.c
ifdef GENERATE_KEYMAP

$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
	loadkeys --mktable $< > $@.tmp
	sed -e 's/^static *//' $@.tmp > $@
	rm $@.tmp
	loadkeys --mktable $< > $@

endif