All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix for redefinition of jedec_probe_init
@ 2001-11-08  7:09 Manik Raina
  2001-11-08 11:29 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Manik Raina @ 2001-11-08  7:09 UTC (permalink / raw)
  To: linux-kernel

On inclusion of both these files (modules disabled) the build breaks.
This is because jedec_probe_init () is defined in both these files.

I am sending a patch which makes them static. Of course, there
is another option, since both these functions are doing the same
thing, we could delete one of them. 


diff -u -r /home/manik/linux/orig/linux/drivers/mtd/chips/jedec.c ./drivers/mtd/chips/jedec.c
--- /home/manik/linux/orig/linux/drivers/mtd/chips/jedec.c	Fri Oct  5 03:44:59 2001
+++ ./drivers/mtd/chips/jedec.c	Thu Nov  8 11:12:28 2001
@@ -873,7 +873,7 @@
    }
 }
 
-int __init jedec_probe_init(void)
+static int __init jedec_probe_init(void)
 {
 	register_mtd_chip_driver(&jedec_chipdrv);
 	return 0;
diff -u -r /home/manik/linux/orig/linux/drivers/mtd/chips/jedec_probe.c ./drivers/mtd/chips/jedec_probe.c
--- /home/manik/linux/orig/linux/drivers/mtd/chips/jedec_probe.c	Fri Oct  5 03:44:59 2001
+++ ./drivers/mtd/chips/jedec_probe.c	Thu Nov  8 11:12:31 2001
@@ -422,7 +422,7 @@
 	module: THIS_MODULE
 };
 
-int __init jedec_probe_init(void)
+static int __init jedec_probe_init(void)
 {
 	register_mtd_chip_driver(&jedec_chipdrv);
 	return 0;


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

end of thread, other threads:[~2001-11-08 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-08  7:09 [PATCH] fix for redefinition of jedec_probe_init Manik Raina
2001-11-08 11:29 ` David Woodhouse

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.