From: "Bjorn Eriksson" <mdeans@algonet.se>
To: <mtd@infradead.org>
Subject: Update: pmc551.c doesn't compile w/ egcs-2.91.66
Date: Sat, 23 Sep 2000 15:09:12 +0200 [thread overview]
Message-ID: <003c01c0255f$77da7420$0800a8c0@win95.inteloop.se> (raw)
In-Reply-To: <000f01c00c73$bcdac480$0800a8c0@win95.inteloop.se>
> 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@infradead.org
prev parent reply other threads:[~2000-09-23 13:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-15 19:20 Patches to compile on redhat 6.2 with downloaded kernel src Mark Jackson
2000-08-15 19:19 ` David Woodhouse
2000-08-22 20:01 ` pmc551.c doesn't compile w/ egcs-2.91.66 Bjorn Eriksson
2000-08-23 2:19 ` major
2000-09-23 13:09 ` Bjorn Eriksson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003c01c0255f$77da7420$0800a8c0@win95.inteloop.se' \
--to=mdeans@algonet.se \
--cc=mtd@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.