History

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

Linus Torvalds committed 15 years ago

Commit 32aaeff2 parents 208bca0 67b84992057 files · +2248 −606Browse files

Showing the changes to include/net (7 of 2057 files). Show all

Unified · Split

7 files
  1. include/net/bluetooth/hci_core.h +13 −11
  2. include/net/inet_timewait_sock.h +0 −1
  3. include/net/ip_vs.h +7 −8
  4. include/net/lib80211.h +2 −1
  5. include/net/netfilter/nf_conntrack.h +2 −0
  6. include/net/sch_generic.h +0 −1
  7. include/net/sock.h +1 −1
include/net/bluetooth/hci_core.h+13−11
@@ -513,11 +513,15 @@ static inline void __hci_dev_put(struct hci_dev *d) · 512 unmodified lines
513513 d->destruct(d);
514514 }
515515
516−static inline void hci_dev_put(struct hci_dev *d)
517−{
518− __hci_dev_put(d);
519− module_put(d->owner);
520−}
516+/*
517+ * hci_dev_put and hci_dev_hold are macros to avoid dragging all the
518+ * overhead of all the modular infrastructure into this header.
519+ */
520+#define hci_dev_put(d) \
521+do { \
522+ __hci_dev_put(d); \
523+ module_put(d->owner); \
524+} while (0)
521525
522526 static inline struct hci_dev *__hci_dev_hold(struct hci_dev *d)
523527 {
@@ -525,12 +529,10 @@ static inline struct hci_dev *__hci_dev_hold(struct hci_dev *d) · 1 unmodified line
525529 return d;
526530 }
527531
528−static inline struct hci_dev *hci_dev_hold(struct hci_dev *d)
529−{
530− if (try_module_get(d->owner))
531− return __hci_dev_hold(d);
532− return NULL;
533−}
532+#define hci_dev_hold(d) \
533+({ \
534+ try_module_get(d->owner) ? __hci_dev_hold(d) : NULL; \
535+})
534536
535537 #define hci_dev_lock(d) spin_lock(&d->lock)
536538 #define hci_dev_unlock(d) spin_unlock(&d->lock)
include/net/inet_timewait_sock.h+0−1
@@ -18,7 +18,6 @@ · 17 unmodified lines
1818
1919 #include <linux/kmemcheck.h>
2020 #include <linux/list.h>
21−#include <linux/module.h>
2221 #include <linux/timer.h>
2322 #include <linux/types.h>
2423 #include <linux/workqueue.h>
include/net/ip_vs.h+7−8
@@ -1126,17 +1126,16 @@ int unregister_ip_vs_pe(struct ip_vs_pe *pe); · 1125 unmodified lines
11261126 struct ip_vs_pe *ip_vs_pe_getbyname(const char *name);
11271127 struct ip_vs_pe *__ip_vs_pe_getbyname(const char *pe_name);
11281128
1129−static inline void ip_vs_pe_get(const struct ip_vs_pe *pe)
1130−{
1131− if (pe && pe->module)
1129+/*
1130+ * Use a #define to avoid all of module.h just for these trivial ops
1131+ */
1132+#define ip_vs_pe_get(pe) \
1133+ if (pe && pe->module) \
11321134 __module_get(pe->module);
1133−}
11341135
1135−static inline void ip_vs_pe_put(const struct ip_vs_pe *pe)
1136−{
1137− if (pe && pe->module)
1136+#define ip_vs_pe_put(pe) \
1137+ if (pe && pe->module) \
11381138 module_put(pe->module);
1139−}
11401139
11411140 /*
11421141 * IPVS protocol functions (from ip_vs_proto.c)
include/net/lib80211.h+2−1
@@ -25,7 +25,6 @@ · 24 unmodified lines
2525
2626 #include <linux/types.h>
2727 #include <linux/list.h>
28−#include <linux/module.h>
2928 #include <linux/atomic.h>
3029 #include <linux/if.h>
3130 #include <linux/skbuff.h>
@@ -42,6 +41,8 @@ enum { · 10 unmodified lines
4241 IEEE80211_CRYPTO_TKIP_COUNTERMEASURES = (1 << 0),
4342 };
4443
44+struct module;
45+
4546 struct lib80211_crypto_ops {
4647 const char *name;
4748 struct list_head list;
include/net/netfilter/nf_conntrack.h+2−0
@@ -313,6 +313,8 @@ static inline bool nf_is_loopback_packet(const struct sk_buff *skb) · 312 unmodified lines
313313 return skb->dev && skb->skb_iif && skb->dev->flags & IFF_LOOPBACK;
314314 }
315315
316+struct kernel_param;
317+
316318 extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp);
317319 extern unsigned int nf_conntrack_htable_size;
318320 extern unsigned int nf_conntrack_max;
include/net/sch_generic.h+0−1
@@ -4,7 +4,6 @@ · 3 unmodified lines
44 #include <linux/netdevice.h>
55 #include <linux/types.h>
66 #include <linux/rcupdate.h>
7−#include <linux/module.h>
87 #include <linux/pkt_sched.h>
98 #include <linux/pkt_cls.h>
109 #include <net/gen_stats.h>
include/net/sock.h+1−1
@@ -46,7 +46,6 @@ · 45 unmodified lines
4646 #include <linux/list_nulls.h>
4747 #include <linux/timer.h>
4848 #include <linux/cache.h>
49−#include <linux/module.h>
5049 #include <linux/lockdep.h>
5150 #include <linux/netdevice.h>
5251 #include <linux/skbuff.h> /* struct sk_buff */
@@ -729,6 +728,7 @@ struct request_sock_ops; · 676 unmodified lines
729728 struct timewait_sock_ops;
730729 struct inet_hashinfo;
731730 struct raw_hashinfo;
731+struct module;
732732
733733 /* Networking protocol blocks we attach to sockets.
734734 * socket layer -> transport layer interface

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t