aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-11-10 02:06:47 -0500
committerIngo Molnar <mingo@kernel.org>2017-11-10 02:06:47 -0500
commit91a6a6cfee8ad34ea4cc10a54c0765edfe437cdb (patch)
treedbea28420ff33aca40be8d3cd901305064b4ea24 /include
parentd04fdafc066fed10cc9610b2f36f1d0ff0327864 (diff)
parent1c9dbd4615fd751e5e0b99807a3c7c8612e28e20 (diff)
Merge branch 'linus' into x86/asm, to resolve conflict
Conflicts: arch/x86/mm/mem_encrypt.c Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h7
-rw-r--r--include/linux/sysctl.h5
-rw-r--r--include/net/act_api.h4
-rw-r--r--include/net/pkt_cls.h24
-rw-r--r--include/sound/seq_kernel.h3
-rw-r--r--include/sound/timer.h2
6 files changed, 41 insertions, 4 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 72299ef00061..d448a4804aea 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -3770,6 +3770,13 @@ static inline void nf_reset_trace(struct sk_buff *skb)
3770#endif 3770#endif
3771} 3771}
3772 3772
3773static inline void ipvs_reset(struct sk_buff *skb)
3774{
3775#if IS_ENABLED(CONFIG_IP_VS)
3776 skb->ipvs_property = 0;
3777#endif
3778}
3779
3773/* Note: This doesn't put any conntrack and bridge info in dst. */ 3780/* Note: This doesn't put any conntrack and bridge info in dst. */
3774static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src, 3781static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src,
3775 bool copy) 3782 bool copy)
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 74f91eefeccf..b769ecfcc3bd 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -213,6 +213,11 @@ static inline struct ctl_table_header *register_sysctl_paths(
213 return NULL; 213 return NULL;
214} 214}
215 215
216static inline struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table)
217{
218 return NULL;
219}
220
216static inline void unregister_sysctl_table(struct ctl_table_header * table) 221static inline void unregister_sysctl_table(struct ctl_table_header * table)
217{ 222{
218} 223}
diff --git a/include/net/act_api.h b/include/net/act_api.h
index 1e6df0eb058f..a10a3b1813f3 100644
--- a/include/net/act_api.h
+++ b/include/net/act_api.h
@@ -14,7 +14,6 @@
14struct tcf_idrinfo { 14struct tcf_idrinfo {
15 spinlock_t lock; 15 spinlock_t lock;
16 struct idr action_idr; 16 struct idr action_idr;
17 struct net *net;
18}; 17};
19 18
20struct tc_action_ops; 19struct tc_action_ops;
@@ -106,7 +105,7 @@ struct tc_action_net {
106 105
107static inline 106static inline
108int tc_action_net_init(struct tc_action_net *tn, 107int tc_action_net_init(struct tc_action_net *tn,
109 const struct tc_action_ops *ops, struct net *net) 108 const struct tc_action_ops *ops)
110{ 109{
111 int err = 0; 110 int err = 0;
112 111
@@ -114,7 +113,6 @@ int tc_action_net_init(struct tc_action_net *tn,
114 if (!tn->idrinfo) 113 if (!tn->idrinfo)
115 return -ENOMEM; 114 return -ENOMEM;
116 tn->ops = ops; 115 tn->ops = ops;
117 tn->idrinfo->net = net;
118 spin_lock_init(&tn->idrinfo->lock); 116 spin_lock_init(&tn->idrinfo->lock);
119 idr_init(&tn->idrinfo->action_idr); 117 idr_init(&tn->idrinfo->action_idr);
120 return err; 118 return err;
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 70ca2437740e..8826747ef83e 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -94,6 +94,7 @@ struct tcf_exts {
94 __u32 type; /* for backward compat(TCA_OLD_COMPAT) */ 94 __u32 type; /* for backward compat(TCA_OLD_COMPAT) */
95 int nr_actions; 95 int nr_actions;
96 struct tc_action **actions; 96 struct tc_action **actions;
97 struct net *net;
97#endif 98#endif
98 /* Map to export classifier specific extension TLV types to the 99 /* Map to export classifier specific extension TLV types to the
99 * generic extensions API. Unsupported extensions must be set to 0. 100 * generic extensions API. Unsupported extensions must be set to 0.
@@ -107,6 +108,7 @@ static inline int tcf_exts_init(struct tcf_exts *exts, int action, int police)
107#ifdef CONFIG_NET_CLS_ACT 108#ifdef CONFIG_NET_CLS_ACT
108 exts->type = 0; 109 exts->type = 0;
109 exts->nr_actions = 0; 110 exts->nr_actions = 0;
111 exts->net = NULL;
110 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), 112 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *),
111 GFP_KERNEL); 113 GFP_KERNEL);
112 if (!exts->actions) 114 if (!exts->actions)
@@ -117,6 +119,28 @@ static inline int tcf_exts_init(struct tcf_exts *exts, int action, int police)
117 return 0; 119 return 0;
118} 120}
119 121
122/* Return false if the netns is being destroyed in cleanup_net(). Callers
123 * need to do cleanup synchronously in this case, otherwise may race with
124 * tc_action_net_exit(). Return true for other cases.
125 */
126static inline bool tcf_exts_get_net(struct tcf_exts *exts)
127{
128#ifdef CONFIG_NET_CLS_ACT
129 exts->net = maybe_get_net(exts->net);
130 return exts->net != NULL;
131#else
132 return true;
133#endif
134}
135
136static inline void tcf_exts_put_net(struct tcf_exts *exts)
137{
138#ifdef CONFIG_NET_CLS_ACT
139 if (exts->net)
140 put_net(exts->net);
141#endif
142}
143
120static inline void tcf_exts_to_list(const struct tcf_exts *exts, 144static inline void tcf_exts_to_list(const struct tcf_exts *exts,
121 struct list_head *actions) 145 struct list_head *actions)
122{ 146{
diff --git a/include/sound/seq_kernel.h b/include/sound/seq_kernel.h
index feb58d455560..4b9ee3009aa0 100644
--- a/include/sound/seq_kernel.h
+++ b/include/sound/seq_kernel.h
@@ -49,7 +49,8 @@ typedef union snd_seq_timestamp snd_seq_timestamp_t;
49#define SNDRV_SEQ_DEFAULT_CLIENT_EVENTS 200 49#define SNDRV_SEQ_DEFAULT_CLIENT_EVENTS 200
50 50
51/* max delivery path length */ 51/* max delivery path length */
52#define SNDRV_SEQ_MAX_HOPS 10 52/* NOTE: this shouldn't be greater than MAX_LOCKDEP_SUBCLASSES */
53#define SNDRV_SEQ_MAX_HOPS 8
53 54
54/* max size of event size */ 55/* max size of event size */
55#define SNDRV_SEQ_MAX_EVENT_LEN 0x3fffffff 56#define SNDRV_SEQ_MAX_EVENT_LEN 0x3fffffff
diff --git a/include/sound/timer.h b/include/sound/timer.h
index c4d76ff056c6..7ae226ab6990 100644
--- a/include/sound/timer.h
+++ b/include/sound/timer.h
@@ -90,6 +90,8 @@ struct snd_timer {
90 struct list_head ack_list_head; 90 struct list_head ack_list_head;
91 struct list_head sack_list_head; /* slow ack list head */ 91 struct list_head sack_list_head; /* slow ack list head */
92 struct tasklet_struct task_queue; 92 struct tasklet_struct task_queue;
93 int max_instances; /* upper limit of timer instances */
94 int num_instances; /* current number of timer instances */
93}; 95};
94 96
95struct snd_timer_instance { 97struct snd_timer_instance {