Skip to contentSkip to conversation

Patch for LSI Logic Fusion MPT

PATCH Alexander Stohr 1 participant 1 message Mar 9, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

the below attached patch does fix a warning when the LSI MPT driver is compiled into the kernel. The patch is made against Kernel 2.6.4-rc2. Please apply. Thanks.

-Alex.

Signature · 2 lines
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
drivers/message/fusion/mptscsih.c +6 -0
@@ -194,7 +194,9 @@
 static void	mptscsih_dv_parms(MPT_SCSI_HOST *hd, DVPARAMETERS *dv,void *pPage);
 static void	mptscsih_fillbuf(char *buffer, int size, int index, int width);
 #endif
+#ifdef MODULE
 static int	mptscsih_setup(char *str);
+#endif
 
 /* module entry point */
 static int  __init   mptscsih_init  (void);
@@ -7083,17 +7085,20 @@
 #define	ARG_SEP	','
 #endif
 
+#ifdef MODULE
 static char setup_token[] __initdata =
 	"dv:"
 	"width:"
 	"factor:"
        ;	/* DONNOT REMOVE THIS ';' */
+#endif
 
 #define OPT_DV			1
 #define OPT_MAX_WIDTH		2
 #define OPT_MIN_SYNC_FACTOR	3
 
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
+#ifdef MODULE
 static int
 get_setup_token(char *p)
 {
@@ -7158,6 +7163,7 @@
 	}
 	return 1;
 }
+#endif
 
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/