netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net:bna: fix compile warning of ‘bfa_ioc_smem_pgoff’ defined but not used
@ 2011-04-20  1:38 Shan Wei
  2011-04-20  1:42 ` Shan Wei
  2011-04-20  3:12 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Shan Wei @ 2011-04-20  1:38 UTC (permalink / raw)
  To: David Miller, netdev

Fix the below compile warning:

drivers/net/bna/bfa_ioc.c:1922: warning: ‘bfa_ioc_smem_pgoff’ defined but not used


Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
 drivers/net/bna/bfa_ioc.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/net/bna/bfa_ioc.c b/drivers/net/bna/bfa_ioc.c
index ba2a4e1..fcb9bb3 100644
--- a/drivers/net/bna/bfa_ioc.c
+++ b/drivers/net/bna/bfa_ioc.c
@@ -82,7 +82,6 @@ static void bfa_ioc_pf_fwmismatch(struct bfa_ioc *ioc);
 static void bfa_ioc_boot(struct bfa_ioc *ioc, u32 boot_type,
 			 u32 boot_param);
 static u32 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr);
-static u32 bfa_ioc_smem_pgoff(struct bfa_ioc *ioc, u32 fmaddr);
 static void bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc,
 						char *serial_num);
 static void bfa_ioc_get_adapter_fw_ver(struct bfa_ioc *ioc,
@@ -1923,12 +1922,6 @@ bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr)
 	return PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, fmaddr);
 }
 
-static u32
-bfa_ioc_smem_pgoff(struct bfa_ioc *ioc, u32 fmaddr)
-{
-	return PSS_SMEM_PGOFF(fmaddr);
-}
-
 /**
  * Register mailbox message handler function, to be called by common modules
  */
-- 
1.6.3.3

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

* Re: [PATCH] net:bna: fix compile warning of ‘bfa_ioc_smem_pgoff’ defined but not used
  2011-04-20  1:38 [PATCH] net:bna: fix compile warning of ‘bfa_ioc_smem_pgoff’ defined but not used Shan Wei
@ 2011-04-20  1:42 ` Shan Wei
  2011-04-20  3:12 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Shan Wei @ 2011-04-20  1:42 UTC (permalink / raw)
  To: David Miller, netdev

This patch is also against net-next.

Shan Wei wrote, at 04/20/2011 09:38 AM:
> Fix the below compile warning:
> 
> drivers/net/bna/bfa_ioc.c:1922: warning: ‘bfa_ioc_smem_pgoff’ defined but not used
> 
> 
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
> ---
>  drivers/net/bna/bfa_ioc.c |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/net/bna/bfa_ioc.c b/drivers/net/bna/bfa_ioc.c
> index ba2a4e1..fcb9bb3 100644
> --- a/drivers/net/bna/bfa_ioc.c
> +++ b/drivers/net/bna/bfa_ioc.c
> @@ -82,7 +82,6 @@ static void bfa_ioc_pf_fwmismatch(struct bfa_ioc *ioc);
>  static void bfa_ioc_boot(struct bfa_ioc *ioc, u32 boot_type,
>  			 u32 boot_param);
>  static u32 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr);
> -static u32 bfa_ioc_smem_pgoff(struct bfa_ioc *ioc, u32 fmaddr);
>  static void bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc,
>  						char *serial_num);
>  static void bfa_ioc_get_adapter_fw_ver(struct bfa_ioc *ioc,
> @@ -1923,12 +1922,6 @@ bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr)
>  	return PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, fmaddr);
>  }
>  
> -static u32
> -bfa_ioc_smem_pgoff(struct bfa_ioc *ioc, u32 fmaddr)
> -{
> -	return PSS_SMEM_PGOFF(fmaddr);
> -}
> -
>  /**
>   * Register mailbox message handler function, to be called by common modules
>   */


-- 

Best Regards
-----
Shan Wei

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

* Re: [PATCH] net:bna: fix compile warning of ‘bfa_ioc_smem_pgoff’ defined but not used
  2011-04-20  1:38 [PATCH] net:bna: fix compile warning of ‘bfa_ioc_smem_pgoff’ defined but not used Shan Wei
  2011-04-20  1:42 ` Shan Wei
@ 2011-04-20  3:12 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2011-04-20  3:12 UTC (permalink / raw)
  To: shanwei; +Cc: netdev

From: Shan Wei <shanwei@cn.fujitsu.com>
Date: Wed, 20 Apr 2011 09:38:06 +0800

> Fix the below compile warning:
> 
> drivers/net/bna/bfa_ioc.c:1922: warning: ‘bfa_ioc_smem_pgoff’ defined but not used
> 
> 
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>

Applied.

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

end of thread, other threads:[~2011-04-20  3:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20  1:38 [PATCH] net:bna: fix compile warning of ‘bfa_ioc_smem_pgoff’ defined but not used Shan Wei
2011-04-20  1:42 ` Shan Wei
2011-04-20  3:12 ` David Miller

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).