From: Hauke Mehrtens Date: Wed, 9 Jan 2013 16:34:19 +0000 (+0100) Subject: compat: fix warning of missing struct netdev_queue X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c420819a63605ffc975e9b1704c2ed7f2dcefbf9;p=openwrt%2Fstaging%2Fblogic.git compat: fix warning of missing struct netdev_queue Fix a warning on kernel version <= 2.6.26: include/linux/compat-3.3.h:44:49: warning: ‘struct netdev_queue’ declared inside parameter list [enabled by default] Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-3.3.h b/include/linux/compat-3.3.h index a8a1d7e84e41..5d07c1aeb2dd 100644 --- a/include/linux/compat-3.3.h +++ b/include/linux/compat-3.3.h @@ -22,28 +22,34 @@ * inlines if it was defined */ #ifndef CONFIG_BQL +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)) static inline void netdev_tx_sent_queue(struct netdev_queue *dev_queue, unsigned int bytes) { } +#endif static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) { } +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)) static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, unsigned pkts, unsigned bytes) { } +#endif static inline void netdev_completed_queue(struct net_device *dev, unsigned pkts, unsigned bytes) { } +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)) static inline void netdev_tx_reset_queue(struct netdev_queue *q) { } +#endif static inline void netdev_reset_queue(struct net_device *dev_queue) {