bnad: code cleanup
authorstephen hemminger <stephen@networkplumber.org>
Wed, 15 Jan 2014 16:24:21 +0000 (08:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 00:22:53 +0000 (16:22 -0800)
Use 'make namespacecheck' to code that could be declared static.
After that remove code that is not being used.

Compile tested only.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bfa_ioc.c
drivers/net/ethernet/brocade/bna/bnad.c

index 537bba14f9139c2fa3a43fd3a8a2d9d799784a75..1803c39590442d497d1cc7f543ef8148ac7e56ec 100644 (file)
@@ -1147,25 +1147,6 @@ bfa_nw_ioc_sem_release(void __iomem *sem_reg)
        writel(1, sem_reg);
 }
 
-/* Invalidate fwver signature */
-enum bfa_status
-bfa_nw_ioc_fwsig_invalidate(struct bfa_ioc *ioc)
-{
-       u32     pgnum, pgoff;
-       u32     loff = 0;
-       enum bfi_ioc_state ioc_fwstate;
-
-       ioc_fwstate = bfa_ioc_get_cur_ioc_fwstate(ioc);
-       if (!bfa_ioc_state_disabled(ioc_fwstate))
-               return BFA_STATUS_ADAPTER_ENABLED;
-
-       pgnum = bfa_ioc_smem_pgnum(ioc, loff);
-       pgoff = PSS_SMEM_PGOFF(loff);
-       writel(pgnum, ioc->ioc_regs.host_page_num_fn);
-       writel(BFI_IOC_FW_INV_SIGN, ioc->ioc_regs.smem_page_start + loff);
-       return BFA_STATUS_OK;
-}
-
 /* Clear fwver hdr */
 static void
 bfa_ioc_fwver_clear(struct bfa_ioc *ioc)
@@ -1780,15 +1761,9 @@ bfa_flash_raw_read(void __iomem *pci_bar, u32 offset, char *buf,
        return BFA_STATUS_OK;
 }
 
-u32
-bfa_nw_ioc_flash_img_get_size(struct bfa_ioc *ioc)
-{
-       return BFI_FLASH_IMAGE_SZ/sizeof(u32);
-}
-
 #define BFA_FLASH_PART_FWIMG_ADDR      0x100000 /* fw image address */
 
-enum bfa_status
+static enum bfa_status
 bfa_nw_ioc_flash_img_get_chnk(struct bfa_ioc *ioc, u32 off,
                              u32 *fwimg)
 {
index 5f24a9ffcfaafeb319af6e9f1ad7864168203097..cf64f3d0b60d91a1de68836523c6304086dc9ece 100644 (file)
@@ -2108,7 +2108,7 @@ bnad_rx_ctrl_init(struct bnad *bnad, u32 rx_id)
 }
 
 /* Called with mutex_lock(&bnad->conf_mutex) held */
-u32
+static u32
 bnad_reinit_rx(struct bnad *bnad)
 {
        struct net_device *netdev = bnad->netdev;