Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
* 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
Revert "tracing: Include module.h in define_trace.h"
irq: don't put module.h into irq.h for tracking irqgen modules.
bluetooth: macroize two small inlines to avoid module.h
ip_vs.h: fix implicit use of module_get/module_put from module.h
nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
include: replace linux/module.h with "struct module" wherever possible
include: convert various register fcns to macros to avoid include chaining
crypto.h: remove unused crypto_tfm_alg_modname() inline
uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
pm_runtime.h: explicitly requires notifier.h
linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
miscdevice.h: fix up implicit use of lists and types
stop_machine.h: fix implicit use of smp.h for smp_processor_id
of: fix implicit use of errno.h in include/linux/of.h
of_platform.h: delete needless include <linux/module.h>
acpi: remove module.h include from platform/aclinux.h
miscdevice.h: delete unnecessary inclusion of module.h
device_cgroup.h: delete needless include <linux/module.h>
net: sch_generic remove redundant use of <linux/module.h>
net: inet_timewait_sock doesnt need <linux/module.h>
...
Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
- drivers/media/dvb/frontends/dibx000_common.c
- drivers/media/video/{mt9m111.c,ov6650.c}
- drivers/mfd/ab3550-core.c
- include/linux/dmaengine.h
This commit is contained in:
@@ -513,11 +513,15 @@ static inline void __hci_dev_put(struct hci_dev *d)
|
||||
d->destruct(d);
|
||||
}
|
||||
|
||||
static inline void hci_dev_put(struct hci_dev *d)
|
||||
{
|
||||
__hci_dev_put(d);
|
||||
module_put(d->owner);
|
||||
}
|
||||
/*
|
||||
* hci_dev_put and hci_dev_hold are macros to avoid dragging all the
|
||||
* overhead of all the modular infrastructure into this header.
|
||||
*/
|
||||
#define hci_dev_put(d) \
|
||||
do { \
|
||||
__hci_dev_put(d); \
|
||||
module_put(d->owner); \
|
||||
} while (0)
|
||||
|
||||
static inline struct hci_dev *__hci_dev_hold(struct hci_dev *d)
|
||||
{
|
||||
@@ -525,12 +529,10 @@ static inline struct hci_dev *__hci_dev_hold(struct hci_dev *d)
|
||||
return d;
|
||||
}
|
||||
|
||||
static inline struct hci_dev *hci_dev_hold(struct hci_dev *d)
|
||||
{
|
||||
if (try_module_get(d->owner))
|
||||
return __hci_dev_hold(d);
|
||||
return NULL;
|
||||
}
|
||||
#define hci_dev_hold(d) \
|
||||
({ \
|
||||
try_module_get(d->owner) ? __hci_dev_hold(d) : NULL; \
|
||||
})
|
||||
|
||||
#define hci_dev_lock(d) spin_lock(&d->lock)
|
||||
#define hci_dev_unlock(d) spin_unlock(&d->lock)
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
#include <linux/kmemcheck.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
@@ -1126,17 +1126,16 @@ int unregister_ip_vs_pe(struct ip_vs_pe *pe);
|
||||
struct ip_vs_pe *ip_vs_pe_getbyname(const char *name);
|
||||
struct ip_vs_pe *__ip_vs_pe_getbyname(const char *pe_name);
|
||||
|
||||
static inline void ip_vs_pe_get(const struct ip_vs_pe *pe)
|
||||
{
|
||||
if (pe && pe->module)
|
||||
/*
|
||||
* Use a #define to avoid all of module.h just for these trivial ops
|
||||
*/
|
||||
#define ip_vs_pe_get(pe) \
|
||||
if (pe && pe->module) \
|
||||
__module_get(pe->module);
|
||||
}
|
||||
|
||||
static inline void ip_vs_pe_put(const struct ip_vs_pe *pe)
|
||||
{
|
||||
if (pe && pe->module)
|
||||
#define ip_vs_pe_put(pe) \
|
||||
if (pe && pe->module) \
|
||||
module_put(pe->module);
|
||||
}
|
||||
|
||||
/*
|
||||
* IPVS protocol functions (from ip_vs_proto.c)
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/skbuff.h>
|
||||
@@ -42,6 +41,8 @@ enum {
|
||||
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1 << 0),
|
||||
};
|
||||
|
||||
struct module;
|
||||
|
||||
struct lib80211_crypto_ops {
|
||||
const char *name;
|
||||
struct list_head list;
|
||||
|
||||
@@ -313,6 +313,8 @@ static inline bool nf_is_loopback_packet(const struct sk_buff *skb)
|
||||
return skb->dev && skb->skb_iif && skb->dev->flags & IFF_LOOPBACK;
|
||||
}
|
||||
|
||||
struct kernel_param;
|
||||
|
||||
extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp);
|
||||
extern unsigned int nf_conntrack_htable_size;
|
||||
extern unsigned int nf_conntrack_max;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/rcupdate.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/pkt_sched.h>
|
||||
#include <linux/pkt_cls.h>
|
||||
#include <net/gen_stats.h>
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include <linux/list_nulls.h>
|
||||
#include <linux/timer.h>
|
||||
#include <linux/cache.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/lockdep.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/skbuff.h> /* struct sk_buff */
|
||||
@@ -729,6 +728,7 @@ struct request_sock_ops;
|
||||
struct timewait_sock_ops;
|
||||
struct inet_hashinfo;
|
||||
struct raw_hashinfo;
|
||||
struct module;
|
||||
|
||||
/* Networking protocol blocks we attach to sockets.
|
||||
* socket layer -> transport layer interface
|
||||
|
||||
Reference in New Issue
Block a user