All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [PATCH] Fix warning in drivers/ide/pci/triflex.c
@ 2004-01-23 16:09 Luiz Fernando Capitulino
  2004-01-26 16:06 ` Felipe W Damasio
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Luiz Fernando Capitulino @ 2004-01-23 16:09 UTC (permalink / raw)
  To: kernel-janitors

hi all,

this patch fixes this warning:

drivers/ide/pci/triflex.c:49: warning: `triflex_get_info' defined but not used

here is:

diff -X dontdiff -Nru linux-2.6.2-rc2/drivers/ide/pci/triflex.c linux-2.6.2-rc2~/drivers/ide/pci/triflex.c
--- linux-2.6.2-rc2/drivers/ide/pci/triflex.c	2003-10-08 16:24:04.000000000 -0300
+++ linux-2.6.2-rc2~/drivers/ide/pci/triflex.c	2004-01-26 11:02:33.000000000 -0200
@@ -45,6 +45,7 @@
 
 static struct pci_dev *triflex_dev;
 
+#ifdef CONFIG_PROC_FS
 static int triflex_get_info(char *buf, char **addr, off_t offset, int count)
 {
 	char *p = buf;
@@ -91,6 +92,7 @@
 	
 	return len > count ? count : len;
 }
+#endif
 
 static int triflex_tune_chipset(ide_drive_t *drive, u8 xferspeed)
 {
diff -X dontdiff -Nru linux-2.6.2-rc2/drivers/ide/pci/triflex.h linux-2.6.2-rc2~/drivers/ide/pci/triflex.h
--- linux-2.6.2-rc2/drivers/ide/pci/triflex.h	2003-10-08 16:24:26.000000000 -0300
+++ linux-2.6.2-rc2~/drivers/ide/pci/triflex.h	2004-01-26 11:02:33.000000000 -0200
@@ -14,8 +14,16 @@
 
 static unsigned int __devinit init_chipset_triflex(struct pci_dev *, const char *);
 static void init_hwif_triflex(ide_hwif_t *);
+#ifdef CONFIG_PROC_FS
 static int triflex_get_info(char *, char **, off_t, int);
 
+static ide_pci_host_proc_t triflex_proc __initdata = {
+	.name		= "triflex",
+	.set		= 1,
+	.get_info 	= triflex_get_info,
+};
+#endif
+
 static ide_pci_device_t triflex_devices[] __devinitdata = {
 	{
 		.vendor 	= PCI_VENDOR_ID_COMPAQ,
@@ -33,14 +41,6 @@
 	}
 };
 
-#ifdef CONFIG_PROC_FS
-static ide_pci_host_proc_t triflex_proc __initdata = {
-	.name		= "triflex",
-	.set		= 1,
-	.get_info 	= triflex_get_info,
-};
-#endif
-
 static struct pci_device_id triflex_pci_tbl[] = {
 	{ PCI_VENDOR_ID_COMPAQ, PCI_DEVICE_ID_COMPAQ_TRIFLEX_IDE, PCI_ANY_ID, 
 		PCI_ANY_ID, 0, 0, 0 },

-- 
Luiz Fernando N. Capitulino
<lcapitulino@prefeitura.sp.gov.br>
<http://www.telecentros.sp.gov.br>

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-06 13:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-23 16:09 [Kernel-janitors] [PATCH] Fix warning in drivers/ide/pci/triflex.c Luiz Fernando Capitulino
2004-01-26 16:06 ` Felipe W Damasio
2004-01-29 19:05 ` [Kernel-janitors] [PATCH] Fix warning in drivers/net/pppoe.c when Luiz Fernando Capitulino
2004-01-30 11:04 ` [Kernel-janitors] [PATCH] Fix warning in drivers/net/pppoe.c Luiz Fernando Capitulino
2004-02-02 22:03 ` [Kernel-janitors] [PATCH] Fix warning indrivers/ide/pci/triflex.c Adrian Bunk
2004-02-06 13:10 ` [Kernel-janitors] [PATCH] Fix warning in drivers/net/pppoe.c when Luiz Fernando Capitulino

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.