From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tUvrJ7mhT6T9ngI0D+EWaUYilkxIAhSO3w2jUvsDT80=; b=KbsCtfuxrk0KFuk12yLgT5kk1zekDZUJH/1IL4ITCj0Hv3Z4XfLA+mIUlAsEkVn/hA e8JFhAgl03k9MLHEaYzIXm9a924+noxgA/xP2BrZG8dhr+TxD3yVlHh+U81WhX8RMNEd iR1IN1uJNo/oYdBYsxH+AErh25JGY65GCLueH5jU7twFmxmLcquAZG+IAZ42uM1N21Ec B6vONLux8RR4G7gckxptvV2LYPwU7kSNiRJGaGFXrDfFeLkLkxfVNgTo+A9RtLiSk1fO sZlFFuHPPHrP1Nbztb3SMLMUyHPfTvkQOBKjv/CKy1pAfhbWIG4a5UymvYTBhEe4V+Fy OFxg== X-Gm-Message-State: ALoCoQl7kThbW6hPDWeZTkP9N1c4FFdtYSC5b7GS/RsKXX18reyowVhD2aVt1X/0CatqffTziRDb X-Received: by 10.180.36.3 with SMTP id m3mr36588809wij.60.1438098510020; Tue, 28 Jul 2015 08:48:30 -0700 (PDT) Received: from XPS13.dev.6wind.com (6wind.net2.nerim.net. [213.41.151.210]) by smtp.gmail.com with ESMTPSA id hn2sm33861596wjc.45.2015.07.28.08.48.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jul 2015 08:48:29 -0700 (PDT) From: Thomas Monjalon To: Stephen Hemminger Date: Tue, 28 Jul 2015 17:47:03 +0200 Message-Id: <1438098424-30515-4-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.4.2 In-Reply-To: <1438098424-30515-1-git-send-email-thomas.monjalon@6wind.com> References: <1438098424-30515-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 3/4] bnx2x: fix build with clang X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2015 15:48:30 -0000 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