Skip to contentSkip to conversation

keyboard: save a char pointer in k_cur

PATCH Applied Brandon Philips 2 participants 2 messages Nov 4, 2006 – Nov 5, 2006 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 keyboard: save a char pointer in k_cur

To save a char pointer in the final assembly change to alternate string form.

---
 drivers/char/keyboard.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/char/keyboard.c =================================--- linux-2.6.orig/drivers/char/keyboard.c +++ linux-2.6/drivers/char/keyboard.c
@@ -710,7 +710,7 @@ static void k_fn(struct vc_data *vc, uns

static void k_cur(struct vc_data *vc, unsigned char value, char up_flag) {
- static const char *cur_chars = "BDCA";
+ static const char cur_chars[] = "BDCA";

if (up_flag)
return;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 4 lines · Brandon Philips

To save a char pointer in the final assembly change to alternate string form.

Applied, thank you.

Signature · 5 lines
Dmitry
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors