diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-12-01 12:02:17 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-01 12:02:17 -0500 |
commit | 3af4182cc5be7d5505f9801ee3297373f1872446 (patch) | |
tree | 214348d40ed547a72f9612a7e5c94a01afded812 /include/net | |
parent | f5d4c67e41a262f0cdfaec1bb0fa8e5952187ef9 (diff) | |
parent | c07f62e5f18123103459ff74e86af1518a5b8af5 (diff) |
Merge branch 'upstream' into topic/asoc
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/af_unix.h | 1 | ||||
-rw-r--r-- | include/net/mac80211.h | 31 | ||||
-rw-r--r-- | include/net/net_namespace.h | 2 | ||||
-rw-r--r-- | include/net/phonet/phonet.h | 2 | ||||
-rw-r--r-- | include/net/scm.h | 5 | ||||
-rw-r--r-- | include/net/sock.h | 3 |
6 files changed, 13 insertions, 31 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h index 7dd29b7e461d..c29ff1da8a18 100644 --- a/include/net/af_unix.h +++ b/include/net/af_unix.h | |||
@@ -54,6 +54,7 @@ struct unix_sock { | |||
54 | atomic_long_t inflight; | 54 | atomic_long_t inflight; |
55 | spinlock_t lock; | 55 | spinlock_t lock; |
56 | unsigned int gc_candidate : 1; | 56 | unsigned int gc_candidate : 1; |
57 | unsigned int gc_maybe_cycle : 1; | ||
57 | wait_queue_head_t peer_wait; | 58 | wait_queue_head_t peer_wait; |
58 | }; | 59 | }; |
59 | #define unix_sk(__sk) ((struct unix_sock *)__sk) | 60 | #define unix_sk(__sk) ((struct unix_sock *)__sk) |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index d861197f83c7..73d81bc6aa75 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -74,14 +74,6 @@ | |||
74 | */ | 74 | */ |
75 | 75 | ||
76 | /** | 76 | /** |
77 | * enum ieee80211_notification_type - Low level driver notification | ||
78 | * @IEEE80211_NOTIFY_RE_ASSOC: start the re-association sequence | ||
79 | */ | ||
80 | enum ieee80211_notification_types { | ||
81 | IEEE80211_NOTIFY_RE_ASSOC, | ||
82 | }; | ||
83 | |||
84 | /** | ||
85 | * struct ieee80211_ht_bss_info - describing BSS's HT characteristics | 77 | * struct ieee80211_ht_bss_info - describing BSS's HT characteristics |
86 | * | 78 | * |
87 | * This structure describes most essential parameters needed | 79 | * This structure describes most essential parameters needed |
@@ -1474,7 +1466,6 @@ void ieee80211_tx_status_irqsafe(struct ieee80211_hw *hw, | |||
1474 | * ieee80211_beacon_get - beacon generation function | 1466 | * ieee80211_beacon_get - beacon generation function |
1475 | * @hw: pointer obtained from ieee80211_alloc_hw(). | 1467 | * @hw: pointer obtained from ieee80211_alloc_hw(). |
1476 | * @vif: &struct ieee80211_vif pointer from &struct ieee80211_if_init_conf. | 1468 | * @vif: &struct ieee80211_vif pointer from &struct ieee80211_if_init_conf. |
1477 | * @control: will be filled with information needed to send this beacon. | ||
1478 | * | 1469 | * |
1479 | * If the beacon frames are generated by the host system (i.e., not in | 1470 | * If the beacon frames are generated by the host system (i.e., not in |
1480 | * hardware/firmware), the low-level driver uses this function to receive | 1471 | * hardware/firmware), the low-level driver uses this function to receive |
@@ -1575,7 +1566,6 @@ __le16 ieee80211_generic_frame_duration(struct ieee80211_hw *hw, | |||
1575 | * ieee80211_get_buffered_bc - accessing buffered broadcast and multicast frames | 1566 | * ieee80211_get_buffered_bc - accessing buffered broadcast and multicast frames |
1576 | * @hw: pointer as obtained from ieee80211_alloc_hw(). | 1567 | * @hw: pointer as obtained from ieee80211_alloc_hw(). |
1577 | * @vif: &struct ieee80211_vif pointer from &struct ieee80211_if_init_conf. | 1568 | * @vif: &struct ieee80211_vif pointer from &struct ieee80211_if_init_conf. |
1578 | * @control: will be filled with information needed to send returned frame. | ||
1579 | * | 1569 | * |
1580 | * Function for accessing buffered broadcast and multicast frames. If | 1570 | * Function for accessing buffered broadcast and multicast frames. If |
1581 | * hardware/firmware does not implement buffering of broadcast/multicast | 1571 | * hardware/firmware does not implement buffering of broadcast/multicast |
@@ -1623,9 +1613,8 @@ unsigned int ieee80211_hdrlen(__le16 fc); | |||
1623 | * | 1613 | * |
1624 | * @keyconf: the parameter passed with the set key | 1614 | * @keyconf: the parameter passed with the set key |
1625 | * @skb: the skb for which the key is needed | 1615 | * @skb: the skb for which the key is needed |
1626 | * @rc4key: a buffer to which the key will be written | ||
1627 | * @type: TBD | 1616 | * @type: TBD |
1628 | * @key: TBD | 1617 | * @key: a buffer to which the key will be written |
1629 | */ | 1618 | */ |
1630 | void ieee80211_get_tkip_key(struct ieee80211_key_conf *keyconf, | 1619 | void ieee80211_get_tkip_key(struct ieee80211_key_conf *keyconf, |
1631 | struct sk_buff *skb, | 1620 | struct sk_buff *skb, |
@@ -1726,7 +1715,8 @@ void ieee80211_iterate_active_interfaces_atomic(struct ieee80211_hw *hw, | |||
1726 | * @hw: pointer as obtained from ieee80211_alloc_hw(). | 1715 | * @hw: pointer as obtained from ieee80211_alloc_hw(). |
1727 | * @ra: receiver address of the BA session recipient | 1716 | * @ra: receiver address of the BA session recipient |
1728 | * @tid: the TID to BA on. | 1717 | * @tid: the TID to BA on. |
1729 | * @return: success if addBA request was sent, failure otherwise | 1718 | * |
1719 | * Return: success if addBA request was sent, failure otherwise | ||
1730 | * | 1720 | * |
1731 | * Although mac80211/low level driver/user space application can estimate | 1721 | * Although mac80211/low level driver/user space application can estimate |
1732 | * the need to start aggregation on a certain RA/TID, the session level | 1722 | * the need to start aggregation on a certain RA/TID, the session level |
@@ -1764,7 +1754,8 @@ void ieee80211_start_tx_ba_cb_irqsafe(struct ieee80211_hw *hw, const u8 *ra, | |||
1764 | * @ra: receiver address of the BA session recipient | 1754 | * @ra: receiver address of the BA session recipient |
1765 | * @tid: the TID to stop BA. | 1755 | * @tid: the TID to stop BA. |
1766 | * @initiator: if indicates initiator DELBA frame will be sent. | 1756 | * @initiator: if indicates initiator DELBA frame will be sent. |
1767 | * @return: error if no sta with matching da found, success otherwise | 1757 | * |
1758 | * Return: error if no sta with matching da found, success otherwise | ||
1768 | * | 1759 | * |
1769 | * Although mac80211/low level driver/user space application can estimate | 1760 | * Although mac80211/low level driver/user space application can estimate |
1770 | * the need to stop aggregation on a certain RA/TID, the session level | 1761 | * the need to stop aggregation on a certain RA/TID, the session level |
@@ -1799,18 +1790,6 @@ void ieee80211_stop_tx_ba_cb_irqsafe(struct ieee80211_hw *hw, const u8 *ra, | |||
1799 | u16 tid); | 1790 | u16 tid); |
1800 | 1791 | ||
1801 | /** | 1792 | /** |
1802 | * ieee80211_notify_mac - low level driver notification | ||
1803 | * @hw: pointer as obtained from ieee80211_alloc_hw(). | ||
1804 | * @notif_type: enum ieee80211_notification_types | ||
1805 | * | ||
1806 | * This function must be called by low level driver to inform mac80211 of | ||
1807 | * low level driver status change or force mac80211 to re-assoc for low | ||
1808 | * level driver internal error that require re-assoc. | ||
1809 | */ | ||
1810 | void ieee80211_notify_mac(struct ieee80211_hw *hw, | ||
1811 | enum ieee80211_notification_types notif_type); | ||
1812 | |||
1813 | /** | ||
1814 | * ieee80211_find_sta - find a station | 1793 | * ieee80211_find_sta - find a station |
1815 | * | 1794 | * |
1816 | * @hw: pointer as obtained from ieee80211_alloc_hw() | 1795 | * @hw: pointer as obtained from ieee80211_alloc_hw() |
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 708009be88b6..700c53a3c6fa 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -214,6 +214,8 @@ struct pernet_operations { | |||
214 | 214 | ||
215 | extern int register_pernet_subsys(struct pernet_operations *); | 215 | extern int register_pernet_subsys(struct pernet_operations *); |
216 | extern void unregister_pernet_subsys(struct pernet_operations *); | 216 | extern void unregister_pernet_subsys(struct pernet_operations *); |
217 | extern int register_pernet_gen_subsys(int *id, struct pernet_operations *); | ||
218 | extern void unregister_pernet_gen_subsys(int id, struct pernet_operations *); | ||
217 | extern int register_pernet_device(struct pernet_operations *); | 219 | extern int register_pernet_device(struct pernet_operations *); |
218 | extern void unregister_pernet_device(struct pernet_operations *); | 220 | extern void unregister_pernet_device(struct pernet_operations *); |
219 | extern int register_pernet_gen_device(int *id, struct pernet_operations *); | 221 | extern int register_pernet_gen_device(int *id, struct pernet_operations *); |
diff --git a/include/net/phonet/phonet.h b/include/net/phonet/phonet.h index d4e72508e145..c6a245184460 100644 --- a/include/net/phonet/phonet.h +++ b/include/net/phonet/phonet.h | |||
@@ -27,7 +27,7 @@ | |||
27 | * The lower layers may not require more space, ever. Make sure it's | 27 | * The lower layers may not require more space, ever. Make sure it's |
28 | * enough. | 28 | * enough. |
29 | */ | 29 | */ |
30 | #define MAX_PHONET_HEADER 8 | 30 | #define MAX_PHONET_HEADER (8 + MAX_HEADER) |
31 | 31 | ||
32 | /* | 32 | /* |
33 | * Every Phonet* socket has this structure first in its | 33 | * Every Phonet* socket has this structure first in its |
diff --git a/include/net/scm.h b/include/net/scm.h index 06df126103ca..33e9986beb86 100644 --- a/include/net/scm.h +++ b/include/net/scm.h | |||
@@ -14,8 +14,9 @@ | |||
14 | 14 | ||
15 | struct scm_fp_list | 15 | struct scm_fp_list |
16 | { | 16 | { |
17 | int count; | 17 | struct list_head list; |
18 | struct file *fp[SCM_MAX_FD]; | 18 | int count; |
19 | struct file *fp[SCM_MAX_FD]; | ||
19 | }; | 20 | }; |
20 | 21 | ||
21 | struct scm_cookie | 22 | struct scm_cookie |
diff --git a/include/net/sock.h b/include/net/sock.h index ada50c04d09f..2f47107f6d0f 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -815,7 +815,7 @@ static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) | |||
815 | */ | 815 | */ |
816 | #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ | 816 | #define sock_lock_init_class_and_name(sk, sname, skey, name, key) \ |
817 | do { \ | 817 | do { \ |
818 | sk->sk_lock.owned = 0; \ | 818 | sk->sk_lock.owned = 0; \ |
819 | init_waitqueue_head(&sk->sk_lock.wq); \ | 819 | init_waitqueue_head(&sk->sk_lock.wq); \ |
820 | spin_lock_init(&(sk)->sk_lock.slock); \ | 820 | spin_lock_init(&(sk)->sk_lock.slock); \ |
821 | debug_check_no_locks_freed((void *)&(sk)->sk_lock, \ | 821 | debug_check_no_locks_freed((void *)&(sk)->sk_lock, \ |
@@ -936,7 +936,6 @@ extern void sock_init_data(struct socket *sock, struct sock *sk); | |||
936 | 936 | ||
937 | /** | 937 | /** |
938 | * sk_filter_release: Release a socket filter | 938 | * sk_filter_release: Release a socket filter |
939 | * @sk: socket | ||
940 | * @fp: filter to remove | 939 | * @fp: filter to remove |
941 | * | 940 | * |
942 | * Remove a filter from a socket and release its resources. | 941 | * Remove a filter from a socket and release its resources. |