projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6767b7
)
[PATCH] parport: DEBUG_PARPORT build fix
author
Marko Kohtala
<marko.kohtala@gmail.com>
Fri, 6 Jan 2006 08:19:49 +0000
(
00:19
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:57 +0000
(08:33 -0800)
Add missing "struct" keyword preventing compilation with DEBUG_PARPORT
defined. Also add some "const".
Signed-off-by: Marko Kohtala <marko.kohtala@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/parport_pc.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/parport_pc.h
b/include/linux/parport_pc.h
index c6f7624708796434d74b0480cdb0c67646a86418..7e62b3429cdd0c7791806c1fcaa32273eefd70cf 100644
(file)
--- a/
include/linux/parport_pc.h
+++ b/
include/linux/parport_pc.h
@@
-85,7
+85,7
@@
extern __inline__ void dump_parport_state (char *str, struct parport *p)
unsigned char ecr = inb (ECONTROL (p));
unsigned char dcr = inb (CONTROL (p));
unsigned char dsr = inb (STATUS (p));
- static c
har *
ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"};
+ static c
onst char *const
ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"};
const struct parport_pc_private *priv = p->physport->private_data;
int i;