From ab19a9757695b6a90d73bb3782584e5995195b24 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 27 Apr 2016 09:45:21 +0200 Subject: ring: Remove unused parameter sock from setup_ring_layout_generic() setup_ring_layout_generic() takes an "int sock" parameter but never uses it. Remove it to prevent -Wunused-parameter warnings. Signed-off-by: Tobias Klauser --- ring.c | 2 +- ring.h | 2 +- ring_rx.c | 2 +- ring_tx.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ring.c b/ring.c index 4ef0f78..b0feea0 100644 --- a/ring.c +++ b/ring.c @@ -20,7 +20,7 @@ #include "ring.h" #include "built_in.h" -void setup_ring_layout_generic(int sock, struct ring *ring, size_t size, +void setup_ring_layout_generic(struct ring *ring, size_t size, bool jumbo_support) { fmemset(&ring->layout, 0, sizeof(ring->layout)); diff --git a/ring.h b/ring.h index 4153b9c..971e8de 100644 --- a/ring.h +++ b/ring.h @@ -205,7 +205,7 @@ static inline int get_sockopt_tpacket(int sock) return val; } -extern void setup_ring_layout_generic(int sock, struct ring *ring, size_t size, +extern void setup_ring_layout_generic(struct ring *ring, size_t size, bool jumbo_support); extern void mmap_ring_generic(int sock, struct ring *ring); extern void alloc_ring_frames_generic(struct ring *ring, size_t num, size_t size); diff --git a/ring_rx.c b/ring_rx.c index f40ad2f..8bfb658 100644 --- a/ring_rx.c +++ b/ring_rx.c @@ -142,7 +142,7 @@ void destroy_rx_ring(int sock, struct ring *ring) static void setup_rx_ring_layout(int sock, struct ring *ring, size_t size, bool jumbo_support, bool v3) { - setup_ring_layout_generic(sock, ring, size, jumbo_support); + setup_ring_layout_generic(ring, size, jumbo_support); if (v3) { setup_rx_ring_layout_v3(ring); diff --git a/ring_tx.c b/ring_tx.c index b8ce446..4041bc4 100644 --- a/ring_tx.c +++ b/ring_tx.c @@ -49,7 +49,7 @@ void destroy_tx_ring(int sock, struct ring *ring) static void setup_tx_ring_layout(int sock, struct ring *ring, size_t size, bool jumbo_support) { - setup_ring_layout_generic(sock, ring, size, jumbo_support); + setup_ring_layout_generic(ring, size, jumbo_support); set_sockopt_tpacket_v2(sock); -- cgit v1.2.3-54-g00ecf