Update: pmc551.c doesn't compile w/ egcs-2.91.66
Bjorn Eriksson
mdeans at algonet.se
Sat Sep 23 09:09:12 EDT 2000
> FYI: I can't get my egcs-2.91.66 to compile pmc551.c w/o adding
> either -O1 (or -O0) or -g. I have no idea why, it just stops right
> before the last 'defined but unreferenced static'-warning.
The egcs-2.91.66 optimiser gets confused in pmc551.c:init_pmc551() if PCI
support is disabled in the kernel config. Patch:
--- mtd/kernel/pmc551.c 2000/07/14 07:53:31 1.8
+++ mtd/kernel/pmc551.c 2000/09/23 13:08:24
@@ -73,6 +73,10 @@
#include <stdarg.h>
#include <linux/pci.h>
+#ifndef CONFIG_PCI
+#error Enable PCI in your kernel config
+#endif
+
#include <linux/mtd/mtd.h>
#include <linux/mtd/pmc551.h>
#include <linux/mtd/compatmac.h>
//Björnen.
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list