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

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: Cong Ding <dinggnu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cong Ding and committed by
Greg Kroah-Hartman
92b336f6 6f538fe3

+1 -3
+1 -3
drivers/tty/vt/Makefile
··· 27 27 ifdef GENERATE_KEYMAP 28 28 29 29 $(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map 30 - loadkeys --mktable $< > $@.tmp 31 - sed -e 's/^static *//' $@.tmp > $@ 32 - rm $@.tmp 30 + loadkeys --mktable $< > $@ 33 31 34 32 endif