From: Johannes Berg Date: Fri, 12 Apr 2013 08:38:30 +0000 (+0200) Subject: backports: fix includes in backport code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16b78247d50ef72c80b568a31c189e5488cd4548;p=openwrt%2Fstaging%2Fblogic.git backports: fix includes in backport code A number of includes were missing in the backport(ed) code since the command line includes almost everything. As that's going to change, add missing includes to the code. Signed-off-by: Johannes Berg --- diff --git a/backport/compat/compat-2.6.26.c b/backport/compat/compat-2.6.26.c index f4715067511f..51938860fd9c 100644 --- a/backport/compat/compat-2.6.26.c +++ b/backport/compat/compat-2.6.26.c @@ -13,7 +13,8 @@ * Copyright (c) 2006-2007 Greg Kroah-Hartman * Copyright (c) 2006-2007 Novell Inc. */ - +#include +#include #include /* 2.6.24 does not have the struct kobject with a name */ diff --git a/backport/compat/compat-2.6.27.c b/backport/compat/compat-2.6.27.c index 084bdf6dfc4a..79bbed544d58 100644 --- a/backport/compat/compat-2.6.27.c +++ b/backport/compat/compat-2.6.27.c @@ -7,7 +7,7 @@ * * Compatibility file for Linux wireless for kernels 2.6.27 */ - +#include #include #include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)) diff --git a/backport/compat/compat-2.6.28.c b/backport/compat/compat-2.6.28.c index 0ae8f465dbb6..451e6147bbee 100644 --- a/backport/compat/compat-2.6.28.c +++ b/backport/compat/compat-2.6.28.c @@ -11,6 +11,7 @@ #include #include #include +#include #include /* 2.6.28 compat code goes here */ @@ -87,7 +88,8 @@ EXPORT_SYMBOL_GPL(usb_poison_urb); #endif /* CONFIG_USB */ #if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE) - +#include +#include #include struct pcmcia_cfg_mem { tuple_t tuple; diff --git a/backport/compat/compat-2.6.32.c b/backport/compat/compat-2.6.32.c index b5a66a869e88..68ab03e45560 100644 --- a/backport/compat/compat-2.6.32.c +++ b/backport/compat/compat-2.6.32.c @@ -10,6 +10,7 @@ #include #include +#include int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int glbl) diff --git a/backport/compat/compat-2.6.33.c b/backport/compat/compat-2.6.33.c index f584b859ff1e..565836cb8195 100644 --- a/backport/compat/compat-2.6.33.c +++ b/backport/compat/compat-2.6.33.c @@ -13,6 +13,9 @@ #include #include #include +#include +#include +#include #ifdef CONFIG_USB_SUSPEND /** diff --git a/backport/compat/compat-2.6.34.c b/backport/compat/compat-2.6.34.c index 4b23c81799e3..031d1694feca 100644 --- a/backport/compat/compat-2.6.34.c +++ b/backport/compat/compat-2.6.34.c @@ -9,8 +9,7 @@ */ #include - -#include "compat-2.6.34.h" +#include static mmc_pm_flag_t backport_mmc_pm_flags; diff --git a/backport/compat/compat-2.6.35.c b/backport/compat/compat-2.6.35.c index 20fee85337f6..cd556d35f581 100644 --- a/backport/compat/compat-2.6.35.c +++ b/backport/compat/compat-2.6.35.c @@ -11,6 +11,11 @@ #include #include +#include +#include +#include +#include +#include #ifdef CONFIG_RPS int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq) diff --git a/backport/compat/compat-2.6.37.c b/backport/compat/compat-2.6.37.c index 9f722a6269b3..dadc0acff95d 100644 --- a/backport/compat/compat-2.6.37.c +++ b/backport/compat/compat-2.6.37.c @@ -13,6 +13,8 @@ #include #include #include +#include +#include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) static const void *net_current_ns(void) diff --git a/backport/compat/compat-2.6.39.c b/backport/compat/compat-2.6.39.c index 5bb932218d15..0e36da86648e 100644 --- a/backport/compat/compat-2.6.39.c +++ b/backport/compat/compat-2.6.39.c @@ -11,6 +11,7 @@ #include #include #include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) /* diff --git a/backport/compat/compat-3.5.c b/backport/compat/compat-3.5.c index 9cc8456c5423..0355ed1be023 100644 --- a/backport/compat/compat-3.5.c +++ b/backport/compat/compat-3.5.c @@ -11,6 +11,7 @@ #include #include #include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) #include diff --git a/backport/compat/compat-3.7.c b/backport/compat/compat-3.7.c index 226d136a3dba..284e8dcb6878 100644 --- a/backport/compat/compat-3.7.c +++ b/backport/compat/compat-3.7.c @@ -10,6 +10,8 @@ #include #include +#include +#include bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay) diff --git a/backport/compat/compat-3.9.c b/backport/compat/compat-3.9.c index 56c40d37aabe..065601519aed 100644 --- a/backport/compat/compat-3.9.c +++ b/backport/compat/compat-3.9.c @@ -11,6 +11,7 @@ #include #include #include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) /** diff --git a/backport/compat/pm_qos_params.c b/backport/compat/pm_qos_params.c index 42785ce134be..1f000ab337f2 100644 --- a/backport/compat/pm_qos_params.c +++ b/backport/compat/pm_qos_params.c @@ -1,3 +1,4 @@ +#include #include /* This is the backport of pm-qos params for kernels <= 2.6.25 */ diff --git a/backport/compat/user_namespace.c b/backport/compat/user_namespace.c index 0dcc4bcfb9ab..288efc0a848b 100644 --- a/backport/compat/user_namespace.c +++ b/backport/compat/user_namespace.c @@ -11,6 +11,7 @@ #include #include +#include #include #ifdef CONFIG_USER_NS