From e7cbb3e7160d752fdea3782c3c54c3d08d068e3f Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 9 Jan 2013 17:34:20 +0100 Subject: [PATCH] compat: add missing return value to netif_set_real_num_tx_queues MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes the following warning: compat/compat-2.6.35.o compat/compat-2.6.35.c: In function ‘netif_set_real_num_tx_queues’: compat/compat-2.6.35.c:45:1: warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- compat/compat-2.6.35.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/compat-2.6.35.c b/compat/compat-2.6.35.c index d33db4648e4d..0fc0db2a5443 100644 --- a/compat/compat-2.6.35.c +++ b/compat/compat-2.6.35.c @@ -42,12 +42,14 @@ int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq) dev->real_num_tx_queues = txq; qdisc_reset_all_tx_gt(dev, txq); } + return 0; } #else int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq) { dev->egress_subqueue_count = txq; /* XXX: consider qdisc reset for older kernels */ + return 0; } #endif EXPORT_SYMBOL_GPL(netif_set_real_num_tx_queues); -- 2.30.2