Commit 372e43eb2fc34001250e27d63f99c20e46ea58a7
Committed by
David S. Miller
1 parent
099978b434
Exists in
master
and in
39 other branches
bnx2x: Fixed a compilation warning
bnx2x_src_init_t2() is used only when BCM_CNIC is defined. So, to avoid a compilation warning, we won't define it unless BCM_CNIC is defined. Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/net/bnx2x/bnx2x_init_ops.h
... | ... | @@ -838,7 +838,7 @@ |
838 | 838 | /**************************************************************************** |
839 | 839 | * SRC initializations |
840 | 840 | ****************************************************************************/ |
841 | - | |
841 | +#ifdef BCM_CNIC | |
842 | 842 | /* called during init func stage */ |
843 | 843 | static void bnx2x_src_init_t2(struct bnx2x *bp, struct src_ent *t2, |
844 | 844 | dma_addr_t t2_mapping, int src_cid_count) |
... | ... | @@ -862,6 +862,6 @@ |
862 | 862 | U64_HI((u64)t2_mapping + |
863 | 863 | (src_cid_count-1) * sizeof(struct src_ent))); |
864 | 864 | } |
865 | - | |
865 | +#endif | |
866 | 866 | #endif /* BNX2X_INIT_OPS_H */ |