From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH 3/4] bnx2x: fix build with clang Date: Tue, 28 Jul 2015 17:47:03 +0200 Message-ID: <1438098424-30515-4-git-send-email-thomas.monjalon@6wind.com> References: <1438098424-30515-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 53F32C32E for ; Tue, 28 Jul 2015 17:48:30 +0200 (CEST) Received: by wicmv11 with SMTP id mv11so185205716wic.0 for ; Tue, 28 Jul 2015 08:48:30 -0700 (PDT) In-Reply-To: <1438098424-30515-1-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Build log: error: unused function 'bnx2x_hilo' No need to keep an unused function. Signed-off-by: Thomas Monjalon --- drivers/net/bnx2x/bnx2x_stats.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c index f9819ef..80260f0 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) { -- 2.4.2