From: Thomas Monjalon Date: Tue, 28 Jul 2015 15:47:03 +0000 (+0200) Subject: bnx2x: fix build with clang X-Git-Tag: spdx-start~8567 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a9b863582731f118669ed27e65485e901bcc9289;p=dpdk.git bnx2x: fix build with clang Build log: error: unused function 'bnx2x_hilo' No need to keep an unused function. Signed-off-by: Thomas Monjalon --- diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c index f9819ef678..80260f0982 100644 --- a/drivers/net/bnx2x/bnx2x_stats.c +++ b/drivers/net/bnx2x/bnx2x_stats.c @@ -43,18 +43,6 @@ #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) {