From: Vitaly Wool <vwool@ru.mvista.com>
To: jgarzik@pobox.com
Cc: dustin@sensoria.com, netdev@vger.kernel.org
Subject: [PATCH] fix smc911x compilation breakage
Date: Fri, 27 Apr 2007 14:35:52 +0400 [thread overview]
Message-ID: <20070427143552.0000757a.vwool@ru.mvista.com> (raw)
Hi Jeff,
currently (with 2.6.21) compilation of smc911x driver fails in the following way:
CC drivers/net/smc911x.o
/sandbox/vital/opensource/linux-2.6/drivers/net/smc911x.c: In function `smc911x_probe':
/sandbox/vital/opensource/linux-2.6/drivers/net/smc911x.c:2125: warning: implicit declaration of function `set_irq_type'
/sandbox/vital/opensource/linux-2.6/drivers/net/smc911x.c:2125: error: `IRQ_TYPE_EDGE_FALLING' undeclared (first use in this function)
/sandbox/vital/opensource/linux-2.6/drivers/net/smc911x.c:2125: error: (Each undeclared identifier is reported only once
/sandbox/vital/opensource/linux-2.6/drivers/net/smc911x.c:2125: error: for each function it appears in.)
make[3]: *** [drivers/net/smc911x.o] Error 1
make[2]: *** [drivers/net] Error 2
make[1]: *** [drivers] Error 2
make: *** [zImage] Error 2
The patch inlined below fixes the problem.
smc911x.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
Index: linux-2.6/drivers/net/smc911x.c
===================================================================
--- linux-2.6.orig/drivers/net/smc911x.c
+++ linux-2.6/drivers/net/smc911x.c
@@ -75,9 +75,9 @@ static const char version[] =
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
+#include <linux/irq.h>
#include <asm/io.h>
-#include <asm/irq.h>
#include "smc911x.h"
next reply other threads:[~2007-04-27 10:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 10:35 Vitaly Wool [this message]
2007-04-28 15:33 ` [PATCH] fix smc911x compilation breakage Jeff Garzik
2007-04-28 18:10 ` Vitaly Wool
2007-04-29 8:05 ` Russell King
-- strict thread matches above, loose matches on Subject: below --
2007-04-30 16:57 [patch] " Vitaly Wool
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=20070427143552.0000757a.vwool@ru.mvista.com \
--to=vwool@ru.mvista.com \
--cc=dustin@sensoria.com \
--cc=jgarzik@pobox.com \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).