Skip to contentSkip to conversation

bna: 2:nd argument of function prototype should be an enum

PATCH In review Emil Goode 2 participants 2 messages Apr 16, 2012

Subsystems (3)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 bna: 2:nd argument of function prototype should be an enum

The second argument of the function bfa_ioc_boot is an enum and its function prototype should have arguments of the same type.

This patch fixes the following sparse error:
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1962:1: error:
symbol 'bfa_ioc_boot' redeclared with different type (originally declared at drivers/net/ethernet/brocade/bna/bfa_ioc.c:83)
- incompatible argument 2 (different signedness)

---
 drivers/net/ethernet/brocade/bna/bfa_ioc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/brocade/bna/bfa_ioc.c +1 -1
index 0b640fa..0da46c1 100644
@@ -80,7 +80,7 @@ static void bfa_ioc_pf_disabled(struct bfa_ioc *ioc);
 static void bfa_ioc_pf_failed(struct bfa_ioc *ioc);
 static void bfa_ioc_pf_hwfailed(struct bfa_ioc *ioc);
 static void bfa_ioc_pf_fwmismatch(struct bfa_ioc *ioc);
-static void bfa_ioc_boot(struct bfa_ioc *ioc, u32 boot_type,
+static void bfa_ioc_boot(struct bfa_ioc *ioc, enum bfi_fwboot_type,
 			 u32 boot_param);
 static u32 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr);
 static void bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc,
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines

From: Emil Goode [mailto:[email protected]]
Sent: Monday, April 16, 2012 3:04 PM

The second argument of the function bfa_ioc_boot is an enum and its function prototype should have arguments of the same type.

Quoted 8 lines

This patch fixes the following sparse error:
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1962:1: error:
symbol 'bfa_ioc_boot' redeclared with different type (originally declared at
drivers/net/ethernet/brocade/bna/bfa_ioc.c:83)
- incompatible argument 2 (different signedness)

Thanks Emil!