compat: fix warning of missing struct netdev_queue
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 9 Jan 2013 16:34:19 +0000 (17:34 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 10 Jan 2013 21:11:25 +0000 (13:11 -0800)
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 <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
include/linux/compat-3.3.h

index a8a1d7e84e415a962aff7a599cb216190a6c90b3..5d07c1aeb2dd3a8baa1c6ea52b859fa860f72074 100644 (file)
  * 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)
 {