From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/4] bnx2x: fix build with clang
Date: Tue, 28 Jul 2015 17:47:03 +0200 [thread overview]
Message-ID: <1438098424-30515-4-git-send-email-thomas.monjalon@6wind.com> (raw)
In-Reply-To: <1438098424-30515-1-git-send-email-thomas.monjalon@6wind.com>
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 | 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
next prev parent reply other threads:[~2015-07-28 15:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-28 15:47 [dpdk-dev] [PATCH 0/4] some fixes for bnx2x Thomas Monjalon
2015-07-28 15:47 ` [dpdk-dev] [PATCH 1/4] bnx2x: fix build as shared library Thomas Monjalon
2015-07-28 15:47 ` [dpdk-dev] [PATCH 2/4] bnx2x: fix build with debug enabled Thomas Monjalon
2015-07-28 15:47 ` Thomas Monjalon [this message]
2015-07-28 15:47 ` [dpdk-dev] [PATCH 4/4] bnx2x: fix part of 32-bit build Thomas Monjalon
2015-08-03 15:42 ` Thomas Monjalon
2015-08-03 15:42 ` [dpdk-dev] [PATCH 0/4] some fixes for bnx2x Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438098424-30515-4-git-send-email-thomas.monjalon@6wind.com \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).