Patchwork =?windows-1252?Q?=5BPATCH=5Dnetxen=3Afix_compile_waring_=22?= =?windows-1252?Q?label_=91set=5F32=5Fbit=5Fmask=92_defined_but_n?= =?windows-1252?Q?ot_used=22_on_IA64_platform?=

login
register
mail settings
Submitter Yang Hongyang
Date Feb. 12, 2009, 8:03 a.m.
Message ID <4993D7E7.5060300@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/23005/
State Accepted
Delegated to: David Miller
Headers show

Comments

Yang Hongyang - Feb. 12, 2009, 8:03 a.m.
When compile the latest kernel on IA64 platform,I got a warning:
drivers/net/netxen/netxen_nic_main.c:203: warning: label ‘set_32_bit_mask’ 
defined but not used

We do not need label ‘set_32_bit_mask’  on IA64 platform,So move it to #else.

Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>

---
 drivers/net/netxen/netxen_nic_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 3b17a79..b0ac5d6 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -201,9 +201,9 @@  static int nx_set_dma_mask(struct netxen_adapter *adapter, uint8_t revision_id)
 		adapter->pci_using_dac = 1;
 		return 0;
 	}
+set_32_bit_mask:
 #endif /* CONFIG_IA64 */
 
-set_32_bit_mask:
 	err = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
 	if (!err)
 		err = pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK);