Skip to contentSkip to conversation

tty: vt/Makefile: set the variables to static

PATCH New Cong Ding 1 participant 1 message Dec 8, 2012 TTY layer and serial drivers

lore
Share & tools
lore

Cong Ding

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/tty/vt/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
drivers/tty/vt/Makefile +1 -3
index 14a51c9..17ae94c 100644
@@ -27,8 +27,6 @@ $(obj)/defkeymap.o:  $(obj)/defkeymap.c
 ifdef GENERATE_KEYMAP
 
 $(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
-	loadkeys --mktable $< > [email protected]
-	sed -e 's/^static *//' [email protected] > $@
-	rm [email protected]
+	loadkeys --mktable $< > $@
 
 endif
Signature · 1 line
1.7.4.5