diff options
| author | David S. Miller <davem@davemloft.net> | 2017-01-28 10:33:06 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-01-28 10:33:06 -0500 |
| commit | 4e8f2fc1a55d543717efb70e170b09e773d0542b (patch) | |
| tree | 30df1d7fc9dfa24fe2916711a17656682c3f7ec9 /include | |
| parent | 158f323b9868b59967ad96957c4ca388161be321 (diff) | |
| parent | 1b1bc42c1692e9b62756323c675a44cb1a1f9dbd (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Two trivial overlapping changes conflicts in MPLS and mlx5.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
27 files changed, 133 insertions, 46 deletions
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index d6d241f63b9f..56814e8ae7ea 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h | |||
| @@ -144,7 +144,7 @@ struct __drm_crtcs_state { | |||
| 144 | struct drm_crtc *ptr; | 144 | struct drm_crtc *ptr; |
| 145 | struct drm_crtc_state *state; | 145 | struct drm_crtc_state *state; |
| 146 | struct drm_crtc_commit *commit; | 146 | struct drm_crtc_commit *commit; |
| 147 | s64 __user *out_fence_ptr; | 147 | s32 __user *out_fence_ptr; |
| 148 | }; | 148 | }; |
| 149 | 149 | ||
| 150 | struct __drm_connnectors_state { | 150 | struct __drm_connnectors_state { |
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h index bf9991b20611..137432386310 100644 --- a/include/drm/drm_mode_config.h +++ b/include/drm/drm_mode_config.h | |||
| @@ -488,7 +488,7 @@ struct drm_mode_config { | |||
| 488 | /** | 488 | /** |
| 489 | * @prop_out_fence_ptr: Sync File fd pointer representing the | 489 | * @prop_out_fence_ptr: Sync File fd pointer representing the |
| 490 | * outgoing fences for a CRTC. Userspace should provide a pointer to a | 490 | * outgoing fences for a CRTC. Userspace should provide a pointer to a |
| 491 | * value of type s64, and then cast that pointer to u64. | 491 | * value of type s32, and then cast that pointer to u64. |
| 492 | */ | 492 | */ |
| 493 | struct drm_property *prop_out_fence_ptr; | 493 | struct drm_property *prop_out_fence_ptr; |
| 494 | /** | 494 | /** |
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index b717ed9d2b75..5c970ce67949 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h | |||
| @@ -76,4 +76,5 @@ void kvm_timer_unschedule(struct kvm_vcpu *vcpu); | |||
| 76 | 76 | ||
| 77 | void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu); | 77 | void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu); |
| 78 | 78 | ||
| 79 | void kvm_timer_init_vhe(void); | ||
| 79 | #endif | 80 | #endif |
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 5d417eacc519..57d60dc5b600 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h | |||
| @@ -248,6 +248,8 @@ struct bpf_map * __must_check bpf_map_inc(struct bpf_map *map, bool uref); | |||
| 248 | void bpf_map_put_with_uref(struct bpf_map *map); | 248 | void bpf_map_put_with_uref(struct bpf_map *map); |
| 249 | void bpf_map_put(struct bpf_map *map); | 249 | void bpf_map_put(struct bpf_map *map); |
| 250 | int bpf_map_precharge_memlock(u32 pages); | 250 | int bpf_map_precharge_memlock(u32 pages); |
| 251 | void *bpf_map_area_alloc(size_t size); | ||
| 252 | void bpf_map_area_free(void *base); | ||
| 251 | 253 | ||
| 252 | extern int sysctl_unprivileged_bpf_disabled; | 254 | extern int sysctl_unprivileged_bpf_disabled; |
| 253 | 255 | ||
diff --git a/include/linux/cpuhotplug.h b/include/linux/cpuhotplug.h index 20bfefbe7594..d936a0021839 100644 --- a/include/linux/cpuhotplug.h +++ b/include/linux/cpuhotplug.h | |||
| @@ -74,6 +74,8 @@ enum cpuhp_state { | |||
| 74 | CPUHP_ZCOMP_PREPARE, | 74 | CPUHP_ZCOMP_PREPARE, |
| 75 | CPUHP_TIMERS_DEAD, | 75 | CPUHP_TIMERS_DEAD, |
| 76 | CPUHP_MIPS_SOC_PREPARE, | 76 | CPUHP_MIPS_SOC_PREPARE, |
| 77 | CPUHP_BP_PREPARE_DYN, | ||
| 78 | CPUHP_BP_PREPARE_DYN_END = CPUHP_BP_PREPARE_DYN + 20, | ||
| 77 | CPUHP_BRINGUP_CPU, | 79 | CPUHP_BRINGUP_CPU, |
| 78 | CPUHP_AP_IDLE_DEAD, | 80 | CPUHP_AP_IDLE_DEAD, |
| 79 | CPUHP_AP_OFFLINE, | 81 | CPUHP_AP_OFFLINE, |
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index c2748accea71..e973faba69dc 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h | |||
| @@ -274,37 +274,67 @@ void gpiochip_set_nested_irqchip(struct gpio_chip *gpiochip, | |||
| 274 | struct irq_chip *irqchip, | 274 | struct irq_chip *irqchip, |
| 275 | int parent_irq); | 275 | int parent_irq); |
| 276 | 276 | ||
| 277 | int _gpiochip_irqchip_add(struct gpio_chip *gpiochip, | 277 | int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip, |
| 278 | struct irq_chip *irqchip, | ||
| 279 | unsigned int first_irq, | ||
| 280 | irq_flow_handler_t handler, | ||
| 281 | unsigned int type, | ||
| 282 | bool nested, | ||
| 283 | struct lock_class_key *lock_key); | ||
| 284 | |||
| 285 | #ifdef CONFIG_LOCKDEP | ||
| 286 | |||
| 287 | /* | ||
| 288 | * Lockdep requires that each irqchip instance be created with a | ||
| 289 | * unique key so as to avoid unnecessary warnings. This upfront | ||
| 290 | * boilerplate static inlines provides such a key for each | ||
| 291 | * unique instance. | ||
| 292 | */ | ||
| 293 | static inline int gpiochip_irqchip_add(struct gpio_chip *gpiochip, | ||
| 294 | struct irq_chip *irqchip, | ||
| 295 | unsigned int first_irq, | ||
| 296 | irq_flow_handler_t handler, | ||
| 297 | unsigned int type) | ||
| 298 | { | ||
| 299 | static struct lock_class_key key; | ||
| 300 | |||
| 301 | return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, | ||
| 302 | handler, type, false, &key); | ||
| 303 | } | ||
| 304 | |||
| 305 | static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gpiochip, | ||
| 278 | struct irq_chip *irqchip, | 306 | struct irq_chip *irqchip, |
| 279 | unsigned int first_irq, | 307 | unsigned int first_irq, |
| 280 | irq_flow_handler_t handler, | 308 | irq_flow_handler_t handler, |
| 281 | unsigned int type, | 309 | unsigned int type) |
| 282 | bool nested, | 310 | { |
| 283 | struct lock_class_key *lock_key); | 311 | |
| 312 | static struct lock_class_key key; | ||
| 313 | |||
| 314 | return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, | ||
| 315 | handler, type, true, &key); | ||
| 316 | } | ||
| 317 | #else | ||
| 318 | static inline int gpiochip_irqchip_add(struct gpio_chip *gpiochip, | ||
| 319 | struct irq_chip *irqchip, | ||
| 320 | unsigned int first_irq, | ||
| 321 | irq_flow_handler_t handler, | ||
| 322 | unsigned int type) | ||
| 323 | { | ||
| 324 | return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, | ||
| 325 | handler, type, false, NULL); | ||
| 326 | } | ||
| 284 | 327 | ||
| 285 | /* FIXME: I assume threaded IRQchips do not have the lockdep problem */ | ||
| 286 | static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gpiochip, | 328 | static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gpiochip, |
| 287 | struct irq_chip *irqchip, | 329 | struct irq_chip *irqchip, |
| 288 | unsigned int first_irq, | 330 | unsigned int first_irq, |
| 289 | irq_flow_handler_t handler, | 331 | irq_flow_handler_t handler, |
| 290 | unsigned int type) | 332 | unsigned int type) |
| 291 | { | 333 | { |
| 292 | return _gpiochip_irqchip_add(gpiochip, irqchip, first_irq, | 334 | return gpiochip_irqchip_add_key(gpiochip, irqchip, first_irq, |
| 293 | handler, type, true, NULL); | 335 | handler, type, true, NULL); |
| 294 | } | 336 | } |
| 295 | 337 | #endif /* CONFIG_LOCKDEP */ | |
| 296 | #ifdef CONFIG_LOCKDEP | ||
| 297 | #define gpiochip_irqchip_add(...) \ | ||
| 298 | ( \ | ||
| 299 | ({ \ | ||
| 300 | static struct lock_class_key _key; \ | ||
| 301 | _gpiochip_irqchip_add(__VA_ARGS__, false, &_key); \ | ||
| 302 | }) \ | ||
| 303 | ) | ||
| 304 | #else | ||
| 305 | #define gpiochip_irqchip_add(...) \ | ||
| 306 | _gpiochip_irqchip_add(__VA_ARGS__, false, NULL) | ||
| 307 | #endif | ||
| 308 | 338 | ||
| 309 | #endif /* CONFIG_GPIOLIB_IRQCHIP */ | 339 | #endif /* CONFIG_GPIOLIB_IRQCHIP */ |
| 310 | 340 | ||
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 56aec84237ad..cb09238f6d32 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -514,8 +514,8 @@ extern enum system_states { | |||
| 514 | #d | ||
