From: David Daney <ddaney.cavm@gmail.com>
To: Imre Kaloz <kaloz@openwrt.org>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: Re: [PATCH] STAGING: octeon-ethernet: fix build errors by including interrupt.h
Date: Mon, 09 Apr 2012 14:33:47 -0700 [thread overview]
Message-ID: <4F8355BB.5020308@gmail.com> (raw)
In-Reply-To: <1333996155-30523-1-git-send-email-kaloz@openwrt.org>
On 04/09/2012 11:29 AM, Imre Kaloz wrote:
> This patch fixes the following build failures:
>
> drivers/staging/octeon/ethernet.c: In function 'cvm_oct_cleanup_module':
> drivers/staging/octeon/ethernet.c:799:2: error: implicit declaration of function 'free_irq'
> drivers/staging/octeon/ethernet-rx.c: In function 'cvm_oct_no_more_work':
> drivers/staging/octeon/ethernet-rx.c:119:3: error: implicit declaration of function 'enable_irq'
> drivers/staging/octeon/ethernet-rx.c: In function 'cvm_oct_do_interrupt':
> drivers/staging/octeon/ethernet-rx.c:136:2: error: implicit declaration of function 'disable_irq_nosync'
> drivers/staging/octeon/ethernet-rx.c: In function 'cvm_oct_rx_initialize':
> drivers/staging/octeon/ethernet-rx.c:532:2: error: implicit declaration of function 'request_irq'
> drivers/staging/octeon/ethernet-tx.c: In function 'cvm_oct_tx_initialize':
> drivers/staging/octeon/ethernet-tx.c:712:2: error: implicit declaration of function 'request_irq'
> drivers/staging/octeon/ethernet-tx.c: In function 'cvm_oct_tx_shutdown':
> drivers/staging/octeon/ethernet-tx.c:723:2: error: implicit declaration of function 'free_irq'
>
If you select some of the IPSec options, linux/interrupt.h will be
included indirectly via net/xfrm.h. Without CONFIG_XFRM, you indeed get
these errors, so...
Acked-by: David Daney <david.daney@cavium.com>
I am not sure when Ralf would merge it, but since it is in
drivers/staging, it may be best to route it to Greg K-H. with the
corresponding stable annotations.
> Signed-off-by: Imre Kaloz<kaloz@openwrt.org>
> ---
> drivers/staging/octeon/ethernet-rx.c | 1 +
> drivers/staging/octeon/ethernet-tx.c | 1 +
> drivers/staging/octeon/ethernet.c | 1 +
> 3 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c
> index 400df8c..d91751f 100644
> --- a/drivers/staging/octeon/ethernet-rx.c
> +++ b/drivers/staging/octeon/ethernet-rx.c
> @@ -36,6 +36,7 @@
> #include<linux/prefetch.h>
> #include<linux/ratelimit.h>
> #include<linux/smp.h>
> +#include<linux/interrupt.h>
> #include<net/dst.h>
> #ifdef CONFIG_XFRM
> #include<linux/xfrm.h>
> diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c
> index 56d74dc..91a97b3 100644
> --- a/drivers/staging/octeon/ethernet-tx.c
> +++ b/drivers/staging/octeon/ethernet-tx.c
> @@ -32,6 +32,7 @@
> #include<linux/ip.h>
> #include<linux/ratelimit.h>
> #include<linux/string.h>
> +#include<linux/interrupt.h>
> #include<net/dst.h>
> #ifdef CONFIG_XFRM
> #include<linux/xfrm.h>
> diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c
> index 9112cd8..60cba81 100644
> --- a/drivers/staging/octeon/ethernet.c
> +++ b/drivers/staging/octeon/ethernet.c
> @@ -31,6 +31,7 @@
> #include<linux/etherdevice.h>
> #include<linux/phy.h>
> #include<linux/slab.h>
> +#include<linux/interrupt.h>
>
> #include<net/dst.h>
>
next prev parent reply other threads:[~2012-04-09 21:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 18:29 [PATCH] STAGING: octeon-ethernet: fix build errors by including interrupt.h Imre Kaloz
2012-04-09 21:33 ` David Daney [this message]
2012-04-18 23:46 ` Greg KH
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=4F8355BB.5020308@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=kaloz@openwrt.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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