diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 15:02:38 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 15:02:38 -0400 |
| commit | 1508124d8a4e0995362d93d82e5555a74bfc998f (patch) | |
| tree | 62b36e0fa03b40e68be6941c5139e8ff7653d0b2 /include/linux | |
| parent | 976f8bef9cfb5246bc0e8dc781562daa79cb7aaf (diff) | |
| parent | 7d132055814ef17a6c7b69f342244c410a5e000f (diff) | |
Merge 3.10-rc6 into usb-next
We want the fixes in this branch as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpu.h | 4 | ||||
| -rw-r--r-- | include/linux/filter.h | 1 | ||||
| -rw-r--r-- | include/linux/if_team.h | 4 | ||||
| -rw-r--r-- | include/linux/math64.h | 6 | ||||
| -rw-r--r-- | include/linux/scatterlist.h | 3 | ||||
| -rw-r--r-- | include/linux/smp.h | 19 | ||||
| -rw-r--r-- | include/linux/swapops.h | 3 | ||||
| -rw-r--r-- | include/linux/syslog.h | 4 | ||||
| -rw-r--r-- | include/linux/tracepoint.h | 4 |
9 files changed, 33 insertions, 15 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index c6f6e0839b61..9f3c7e81270a 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h | |||
| @@ -175,6 +175,8 @@ extern struct bus_type cpu_subsys; | |||
| 175 | 175 | ||
| 176 | extern void get_online_cpus(void); | 176 | extern void get_online_cpus(void); |
| 177 | extern void put_online_cpus(void); | 177 | extern void put_online_cpus(void); |
| 178 | extern void cpu_hotplug_disable(void); | ||
| 179 | extern void cpu_hotplug_enable(void); | ||
| 178 | #define hotcpu_notifier(fn, pri) cpu_notifier(fn, pri) | 180 | #define hotcpu_notifier(fn, pri) cpu_notifier(fn, pri) |
| 179 | #define register_hotcpu_notifier(nb) register_cpu_notifier(nb) | 181 | #define register_hotcpu_notifier(nb) register_cpu_notifier(nb) |
| 180 | #define unregister_hotcpu_notifier(nb) unregister_cpu_notifier(nb) | 182 | #define unregister_hotcpu_notifier(nb) unregister_cpu_notifier(nb) |
| @@ -198,6 +200,8 @@ static inline void cpu_hotplug_driver_unlock(void) | |||
| 198 | 200 | ||
| 199 | #define get_online_cpus() do { } while (0) | 201 | #define get_online_cpus() do { } while (0) |
| 200 | #define put_online_cpus() do { } while (0) | 202 | #define put_online_cpus() do { } while (0) |
| 203 | #define cpu_hotplug_disable() do { } while (0) | ||
| 204 | #define cpu_hotplug_enable() do { } while (0) | ||
| 201 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) | 205 | #define hotcpu_notifier(fn, pri) do { (void)(fn); } while (0) |
| 202 | /* These aren't inline functions due to a GCC bug. */ | 206 | /* These aren't inline functions due to a GCC bug. */ |
| 203 | #define register_hotcpu_notifier(nb) ({ (void)(nb); 0; }) | 207 | #define register_hotcpu_notifier(nb) ({ (void)(nb); 0; }) |
diff --git a/include/linux/filter.h b/include/linux/filter.h index c050dcc322a4..f65f5a69db8f 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
| @@ -46,6 +46,7 @@ extern int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); | |||
| 46 | extern int sk_detach_filter(struct sock *sk); | 46 | extern int sk_detach_filter(struct sock *sk); |
| 47 | extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen); | 47 | extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen); |
| 48 | extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len); | 48 | extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len); |
| 49 | extern void sk_decode_filter(struct sock_filter *filt, struct sock_filter *to); | ||
| 49 | 50 | ||
| 50 | #ifdef CONFIG_BPF_JIT | 51 | #ifdef CONFIG_BPF_JIT |
| 51 | #include <stdarg.h> | 52 | #include <stdarg.h> |
diff --git a/include/linux/if_team.h b/include/linux/if_team.h index 4474557904f6..16fae6436d0e 100644 --- a/include/linux/if_team.h +++ b/include/linux/if_team.h | |||
| @@ -249,12 +249,12 @@ team_get_first_port_txable_rcu(struct team *team, struct team_port *port) | |||
| 249 | return port; | 249 | return port; |
| 250 | cur = port; | 250 | cur = port; |
| 251 | list_for_each_entry_continue_rcu(cur, &team->port_list, list) | 251 | list_for_each_entry_continue_rcu(cur, &team->port_list, list) |
| 252 | if (team_port_txable(port)) | 252 | if (team_port_txable(cur)) |
| 253 | return cur; | 253 | return cur; |
| 254 | list_for_each_entry_rcu(cur, &team->port_list, list) { | 254 | list_for_each_entry_rcu(cur, &team->port_list, list) { |
| 255 | if (cur == port) | 255 | if (cur == port) |
| 256 | break; | 256 | break; |
| 257 | if (team_port_txable(port)) | 257 | if (team_port_txable(cur)) |
| 258 | return cur; | 258 | return cur; |
| 259 | } | 259 | } |
| 260 | return NULL; | 260 | return NULL; |
diff --git a/include/linux/math64.h b/include/linux/math64.h index b8ba85544721..2913b86eb12a 100644 --- a/include/linux/math64.h +++ b/include/linux/math64.h | |||
| @@ -6,7 +6,8 @@ | |||
| 6 | 6 | ||
| 7 | #if BITS_PER_LONG == 64 | 7 | #if BITS_PER_LONG == 64 |
| 8 | 8 | ||
| 9 | #define div64_long(x,y) div64_s64((x),(y)) | 9 | #define div64_long(x, y) div64_s64((x), (y)) |
| 10 | #define div64_ul(x, y) div64_u64((x), (y)) | ||
| 10 | 11 | ||
| 11 | /** | 12 | /** |
| 12 | * div_u64_rem - unsigned 64bit divide with 32bit divisor with remainder | 13 | * div_u64_rem - unsigned 64bit divide with 32bit divisor with remainder |
| @@ -47,7 +48,8 @@ static inline s64 div64_s64(s64 dividend, s64 divisor) | |||
| 47 | 48 | ||
| 48 | #elif BITS_PER_LONG == 32 | 49 | #elif BITS_PER_LONG == 32 |
| 49 | 50 | ||
| 50 | #define div64_long(x,y) div_s64((x),(y)) | 51 | #define div64_long(x, y) div_s64((x), (y)) |
| 52 | #define div64_ul(x, y) div_u64((x), (y)) | ||
| 51 | 53 | ||
| 52 | #ifndef div_u64_rem | 54 | #ifndef div_u64_rem |
| 53 | static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) | 55 | static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) |
diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index 5951e3f38878..26806775b11b 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h | |||
| @@ -111,6 +111,9 @@ static inline struct page *sg_page(struct scatterlist *sg) | |||
| 111 | static inline void sg_set_buf(struct scatterlist *sg, const void *buf, | 111 | static inline void sg_set_buf(struct scatterlist *sg, const void *buf, |
| 112 | unsigned int buflen) | 112 | unsigned int buflen) |
| 113 | { | 113 | { |
| 114 | #ifdef CONFIG_DEBUG_SG | ||
| 115 | BUG_ON(!virt_addr_valid(buf)); | ||
| 116 | #endif | ||
| 114 | sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); | 117 | sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf)); |
| 115 | } | 118 | } |
| 116 | 119 | ||
diff --git a/include/linux/smp.h b/include/linux/smp.h index e6564c1dc552..c8488763277f 100644 --- a/include/linux/smp.h +++ b/include/linux/smp.h | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include <linux/list.h> | 11 | #include <linux/list.h> |
| 12 | #include <linux/cpumask.h> | 12 | #include <linux/cpumask.h> |
| 13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
| 14 | #include <linux/irqflags.h> | ||
| 14 | 15 | ||
| 15 | extern void cpu_idle(void); | 16 | extern void cpu_idle(void); |
| 16 | 17 | ||
| @@ -139,13 +140,17 @@ static inline int up_smp_call_function(smp_call_func_t func, void *info) | |||
| 139 | } | 140 | } |
| 140 | #define smp_call_function(func, info, wait) \ | 141 | #define smp_call_function(func, info, wait) \ |
| 141 | (up_smp_call_function(func, info)) | 142 | (up_smp_call_function(func, info)) |
| 142 | #define on_each_cpu(func,info,wait) \ | 143 | |
| 143 | ({ \ | 144 | static inline int on_each_cpu(smp_call_func_t func, void *info, int wait) |
| 144 | local_irq_disable(); \ | 145 | { |
| 145 | func(info); \ | 146 | unsigned long flags; |
| 146 | local_irq_enable(); \ | 147 | |
| 147 | 0; \ | 148 | local_irq_save(flags); |
| 148 | }) | 149 | func(info); |
| 150 | local_irq_restore(flags); | ||
| 151 | return 0; | ||
| 152 | } | ||
| 153 | |||
| 149 | /* | 154 | /* |
| 150 | * Note we still need to test the mask even for UP | 155 | * Note we still need to test the mask even for UP |
| 151 | * because we actually can get an empty mask from | 156 | * because we actually can get an empty mask from |
diff --git a/include/linux/swapops.h b/include/linux/swapops.h index 47ead515c811..c5fd30d2a415 100644 --- a/include/linux/swapops.h +++ b/include/linux/swapops.h | |||
| @@ -137,6 +137,7 @@ static inline void make_migration_entry_read(swp_entry_t *entry) | |||
| 137 | 137 | ||
| 138 | extern void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, | 138 | extern void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, |
| 139 | unsigned long address); | 139 | unsigned long address); |
| 140 | extern void migration_entry_wait_huge(struct mm_struct *mm, pte_t *pte); | ||
| 140 | #else | 141 | #else |
| 141 | 142 | ||
| 142 | #define make_migration_entry(page, write) swp_entry(0, 0) | 143 | #define make_migration_entry(page, write) swp_entry(0, 0) |
| @@ -148,6 +149,8 @@ static inline int is_migration_entry(swp_entry_t swp) | |||
| 148 | static inline void make_migration_entry_read(swp_entry_t *entryp) { } | 149 | static inline void make_migration_entry_read(swp_entry_t *entryp) { } |
| 149 | static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, | 150 | static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, |
| 150 | unsigned long address) { } | 151 | unsigned long address) { } |
| 152 | static inline void migration_entry_wait_huge(struct mm_struct *mm, | ||
| 153 | pte_t *pte) { } | ||
| 151 | static inline int is_write_migration_entry(swp_entry_t entry) | 154 | static inline int is_write_migration_entry(swp_entry_t entry) |
| 152 | { | 155 | { |
| 153 | return 0; | 156 | return 0; |
diff --git a/include/linux/syslog.h b/include/linux/syslog.h index 38911391a139..98a3153c0f96 100644 --- a/include/linux/syslog.h +++ b/include/linux/syslog.h | |||
| @@ -44,8 +44,8 @@ | |||
| 44 | /* Return size of the log buffer */ | 44 | /* Return size of the log buffer */ |
| 45 | #define SYSLOG_ACTION_SIZE_BUFFER 10 | 45 | #define SYSLOG_ACTION_SIZE_BUFFER 10 |
| 46 | 46 | ||
| 47 | #define SYSLOG_FROM_CALL 0 | 47 | #define SYSLOG_FROM_READER 0 |
| 48 | #define SYSLOG_FROM_FILE 1 | 48 | #define SYSLOG_FROM_PROC 1 |
| 49 | 49 | ||
| 50 | int do_syslog(int type, char __user *buf, int count, bool from_file); | 50 | int do_syslog(int type, char __user *buf, int count, bool from_file); |
| 51 | 51 | ||
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 2f322c38bd4d..f8e084d0fc77 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h | |||
| @@ -145,8 +145,8 @@ static inline void tracepoint_synchronize_unregister(void) | |||
| 145 | TP_PROTO(data_proto), \ | 145 | TP_PROTO(data_proto), \ |
| 146 | TP_ARGS(data_args), \ | 146 | TP_ARGS(data_args), \ |
| 147 | TP_CONDITION(cond), \ | 147 | TP_CONDITION(cond), \ |
| 148 | rcu_idle_exit(), \ | 148 | rcu_irq_enter(), \ |
| 149 | rcu_idle_enter()); \ | 149 | rcu_irq_exit()); \ |
| 150 | } | 150 | } |
| 151 | #else | 151 | #else |
| 152 | #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) | 152 | #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) |
