]> git.droids-corp.org - dpdk.git/commitdiff
bnx2x: fix build with clang
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 28 Jul 2015 15:47:03 +0000 (17:47 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Aug 2015 15:26:29 +0000 (17:26 +0200)
Build log:
error: unused function 'bnx2x_hilo'

No need to keep an unused function.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
drivers/net/bnx2x/bnx2x_stats.c

index f9819ef678f57d91f1629d30ac0230cf5598c83a..80260f09825b24081aea206b58e53a622519f37b 100644 (file)
 #define BITS_PER_LONG 64
 #endif
 
-static inline long
-bnx2x_hilo(uint32_t *hiref)
-{
-    uint32_t lo = *(hiref + 1);
-#if (BITS_PER_LONG == 64)
-    uint32_t hi = *hiref;
-    return HILO_U64(hi, lo);
-#else
-    return lo;
-#endif
-}
-
 static inline uint16_t
 bnx2x_get_port_stats_dma_len(struct bnx2x_softc *sc)
 {