[PATCH 1/5] compat: fix warning of missing struct netdev_queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 include/linux/compat-3.3.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/linux/compat-3.3.h b/include/linux/compat-3.3.h
index a8a1d7e..5d07c1a 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)
 {
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux