bna: 2:nd argument of function prototype should be an enum
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
@@ -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
Quoted 6 lines
From: Emil Goode [mailto:[email protected]]
Sent: Monday, April 16, 2012 3:04 PMThe second argument of the function
bfa_ioc_bootis 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 atdrivers/net/ethernet/brocade/bna/bfa_ioc.c:83)
- incompatible argument 2 (different signedness)Signed-off-by Emil Goode <[email protected]>
Thanks Emil!