From: Marko Kohtala Date: Fri, 6 Jan 2006 08:19:49 +0000 (-0800) Subject: [PATCH] parport: DEBUG_PARPORT build fix X-Git-Tag: v2.6.16-rc1~936^2~75 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=110bee75d2e03d3b4bcc74743dee5a21fe7b43bd;p=~emulex%2Finfiniband.git [PATCH] parport: DEBUG_PARPORT build fix Add missing "struct" keyword preventing compilation with DEBUG_PARPORT defined. Also add some "const". Signed-off-by: Marko Kohtala Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/parport_pc.h b/include/linux/parport_pc.h index c6f76247087..7e62b3429cd 100644 --- 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 char *ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"}; + static const char *const ecr_modes[] = {"SPP", "PS2", "PPFIFO", "ECP", "xXx", "yYy", "TST", "CFG"}; const struct parport_pc_private *priv = p->physport->private_data; int i;