diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-12 08:59:24 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-12 08:59:24 -0400 |
| commit | cda390bb8f0fc751194ef5f4c691ca8d3ff91009 (patch) | |
| tree | 9739758690c5107b73a09f632ae2f8fc2507db09 /include | |
| parent | 9a2c33a422d60e8e55c5aff6752522dc39993b16 (diff) | |
| parent | 449fd15fbcde239875031d70fd06abb4a0e1ed09 (diff) | |
Merge branch 'kprobes-test-fixes' of git://git.linaro.org/people/tixy/kernel into fixes
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/processor.h | 10 | ||||
| -rw-r--r-- | include/drm/i915_powerwell.h | 4 | ||||
| -rw-r--r-- | include/linux/blk-mq.h | 2 | ||||
| -rw-r--r-- | include/linux/blkdev.h | 2 | ||||
| -rw-r--r-- | include/linux/elevator.h | 1 | ||||
| -rw-r--r-- | include/linux/fs.h | 6 | ||||
| -rw-r--r-- | include/linux/profile.h | 1 | ||||
| -rw-r--r-- | include/linux/regulator/consumer.h | 5 | ||||
| -rw-r--r-- | include/linux/suspend.h | 2 | ||||
| -rw-r--r-- | include/sound/core.h | 2 | ||||
| -rw-r--r-- | include/uapi/linux/perf_event.h | 1 |
11 files changed, 26 insertions, 10 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 6eb1d3cb5104..9b9b6f29bbf3 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
| @@ -53,7 +53,7 @@ struct acpi_power_register { | |||
| 53 | u8 bit_offset; | 53 | u8 bit_offset; |
| 54 | u8 access_size; | 54 | u8 access_size; |
| 55 | u64 address; | 55 | u64 address; |
| 56 | } __attribute__ ((packed)); | 56 | } __packed; |
| 57 | 57 | ||
| 58 | struct acpi_processor_cx { | 58 | struct acpi_processor_cx { |
| 59 | u8 valid; | 59 | u8 valid; |
| @@ -83,7 +83,7 @@ struct acpi_psd_package { | |||
| 83 | u64 domain; | 83 | u64 domain; |
| 84 | u64 coord_type; | 84 | u64 coord_type; |
| 85 | u64 num_processors; | 85 | u64 num_processors; |
| 86 | } __attribute__ ((packed)); | 86 | } __packed; |
| 87 | 87 | ||
| 88 | struct acpi_pct_register { | 88 | struct acpi_pct_register { |
| 89 | u8 descriptor; | 89 | u8 descriptor; |
| @@ -93,7 +93,7 @@ struct acpi_pct_register { | |||
| 93 | u8 bit_offset; | 93 | u8 bit_offset; |
| 94 | u8 reserved; | 94 | u8 reserved; |
| 95 | u64 address; | 95 | u64 address; |
| 96 | } __attribute__ ((packed)); | 96 | } __packed; |
| 97 | 97 | ||
| 98 | struct acpi_processor_px { | 98 | struct acpi_processor_px { |
| 99 | u64 core_frequency; /* megahertz */ | 99 | u64 core_frequency; /* megahertz */ |
| @@ -124,7 +124,7 @@ struct acpi_tsd_package { | |||
| 124 | u64 domain; | 124 | u64 domain; |
| 125 | u64 coord_type; | 125 | u64 coord_type; |
| 126 | u64 num_processors; | 126 | u64 num_processors; |
| 127 | } __attribute__ ((packed)); | 127 | } __packed; |
| 128 | 128 | ||
| 129 | struct acpi_ptc_register { | 129 | struct acpi_ptc_register { |
| 130 | u8 descriptor; | 130 | u8 descriptor; |
| @@ -134,7 +134,7 @@ struct acpi_ptc_register { | |||
| 134 | u8 bit_offset; | 134 | u8 bit_offset; |
| 135 | u8 reserved; | 135 | u8 reserved; |
| 136 | u64 address; | 136 | u64 address; |
| 137 | } __attribute__ ((packed)); | 137 | } __packed; |
| 138 | 138 | ||
| 139 | struct acpi_processor_tx_tss { | 139 | struct acpi_processor_tx_tss { |
| 140 | u64 freqpercentage; /* */ | 140 | u64 freqpercentage; /* */ |
diff --git a/include/drm/i915_powerwell.h b/include/drm/i915_powerwell.h index cfdc884405b7..2baba9996094 100644 --- a/include/drm/i915_powerwell.h +++ b/include/drm/i915_powerwell.h | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | #define _I915_POWERWELL_H_ | 30 | #define _I915_POWERWELL_H_ |
| 31 | 31 | ||
| 32 | /* For use by hda_i915 driver */ | 32 | /* For use by hda_i915 driver */ |
| 33 | extern void i915_request_power_well(void); | 33 | extern int i915_request_power_well(void); |
| 34 | extern void i915_release_power_well(void); | 34 | extern int i915_release_power_well(void); |
| 35 | 35 | ||
| 36 | #endif /* _I915_POWERWELL_H_ */ | 36 | #endif /* _I915_POWERWELL_H_ */ |
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index a002cf191427..eb726b9c5762 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
| @@ -42,7 +42,7 @@ struct blk_mq_hw_ctx { | |||
| 42 | unsigned int nr_ctx; | 42 | unsigned int nr_ctx; |
| 43 | struct blk_mq_ctx **ctxs; | 43 | struct blk_mq_ctx **ctxs; |
| 44 | 44 | ||
| 45 | unsigned int wait_index; | 45 | atomic_t wait_index; |
| 46 | 46 | ||
| 47 | struct blk_mq_tags *tags; | 47 | struct blk_mq_tags *tags; |
| 48 | 48 | ||
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 31e11051f1ba..713f8b62b435 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
| @@ -920,7 +920,7 @@ static inline unsigned int blk_max_size_offset(struct request_queue *q, | |||
| 920 | sector_t offset) | 920 | sector_t offset) |
| 921 | { | 921 | { |
| 922 | if (!q->limits.chunk_sectors) | 922 | if (!q->limits.chunk_sectors) |
| 923 | return q->limits.max_hw_sectors; | 923 | return q->limits.max_sectors; |
| 924 | 924 | ||
| 925 | return q->limits.chunk_sectors - | 925 | return q->limits.chunk_sectors - |
| 926 | (offset & (q->limits.chunk_sectors - 1)); | 926 | (offset & (q->limits.chunk_sectors - 1)); |
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index 4ff262e2bf37..e2a6bd7fb133 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h | |||
| @@ -133,7 +133,6 @@ extern struct request *elv_latter_request(struct request_queue *, struct request | |||
| 133 | extern int elv_register_queue(struct request_queue *q); | 133 | extern int elv_register_queue(struct request_queue *q); |
| 134 | extern void elv_unregister_queue(struct request_queue *q); | 134 | extern void elv_unregister_queue(struct request_queue *q); |
| 135 | extern int elv_may_queue(struct request_queue *, int); | 135 | extern int elv_may_queue(struct request_queue *, int); |
| 136 | extern void elv_abort_queue(struct request_queue *); | ||
| 137 | extern void elv_completed_request(struct request_queue *, struct request *); | 136 | extern void elv_completed_request(struct request_queue *, struct request *); |
| 138 | extern int elv_set_request(struct request_queue *q, struct request *rq, | 137 | extern int elv_set_request(struct request_queue *q, struct request *rq, |
| 139 | struct bio *bio, gfp_t gfp_mask); | 138 | struct bio *bio, gfp_t gfp_mask); |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 338e6f758c6d..e11d60cc867b 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1921,6 +1921,12 @@ static inline int break_lease(struct inode *inode, unsigned int mode) | |||
| 1921 | 1921 | ||
| 1922 | static inline int break_deleg(struct inode *inode, unsigned int mode) | 1922 | static inline int break_deleg(struct inode *inode, unsigned int mode) |
| 1923 | { | 1923 | { |
| 1924 | /* | ||
| 1925 | * Since this check is lockless, we must ensure that any refcounts | ||
| 1926 | * taken are done before checking inode->i_flock. Otherwise, we could | ||
| 1927 | * end up racing with tasks trying to set a new lease on this file. | ||
| 1928 | */ | ||
| 1929 | smp_mb(); | ||
| 1924 | if (inode->i_flock) | 1930 | if (inode->i_flock) |
| 1925 | return __break_lease(inode, mode, FL_DELEG); | 1931 | return __break_lease(inode, mode, FL_DELEG); |
| 1926 | return 0; | 1932 | return 0; |
diff --git a/include/linux/profile.h b/include/linux/profile.h index aaad3861beb8..b537a25ffa17 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h | |||
| @@ -44,6 +44,7 @@ extern int prof_on __read_mostly; | |||
| 44 | int profile_init(void); | 44 | int profile_init(void); |
| 45 | int profile_setup(char *str); | 45 | int profile_setup(char *str); |
| 46 | void profile_tick(int type); | 46 | void profile_tick(int type); |
| 47 | int setup_profiling_timer(unsigned int multiplier); | ||
| 47 | 48 | ||
| 48 | /* | 49 | /* |
| 49 | * Add multiple profiler hits to a given address: | 50 | * Add multiple profiler hits to a given address: |
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index a2d9d81038d1..14ec18d5e18b 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h | |||
| @@ -395,6 +395,11 @@ static inline void regulator_bulk_free(int num_consumers, | |||
| 395 | { | 395 | { |
| 396 | } | 396 | } |
| 397 | 397 | ||
| 398 | static inline int regulator_can_change_voltage(struct regulator *regulator) | ||
| 399 | { | ||
| 400 | return 0; | ||
| 401 | } | ||
| 402 | |||
| 398 | static inline int regulator_set_voltage(struct regulator *regulator, | 403 | static inline int regulator_set_voltage(struct regulator *regulator, |
| 399 | int min_uV, int max_uV) | 404 | int min_uV, int max_uV) |
| 400 | { | 405 | { |
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index f76994b9396c..519064e0c943 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
| @@ -327,6 +327,7 @@ extern unsigned long get_safe_page(gfp_t gfp_mask); | |||
| 327 | extern void hibernation_set_ops(const struct platform_hibernation_ops *ops); | 327 | extern void hibernation_set_ops(const struct platform_hibernation_ops *ops); |
| 328 | extern int hibernate(void); | 328 | extern int hibernate(void); |
| 329 | extern bool system_entering_hibernation(void); | 329 | extern bool system_entering_hibernation(void); |
| 330 | extern bool hibernation_available(void); | ||
| 330 | asmlinkage int swsusp_save(void); | 331 | asmlinkage int swsusp_save(void); |
| 331 | extern struct pbe *restore_pblist; | 332 | extern struct pbe *restore_pblist; |
| 332 | #else /* CONFIG_HIBERNATION */ | 333 | #else /* CONFIG_HIBERNATION */ |
| @@ -339,6 +340,7 @@ static inline void swsusp_unset_page_free(struct page *p) {} | |||
| 339 | static inline void hibernation_set_ops(const struct platform_hibernation_ops *ops) {} | 340 | static inline void hibernation_set_ops(const struct platform_hibernation_ops *ops) {} |
| 340 | static inline int hibernate(void) { return -ENOSYS; } | 341 | static inline int hibernate(void) { return -ENOSYS; } |
| 341 | static inline bool system_entering_hibernation(void) { return false; } | 342 | static inline bool system_entering_hibernation(void) { return false; } |
| 343 | static inline bool hibernation_available(void) { return false; } | ||
| 342 | #endif /* CONFIG_HIBERNATION */ | 344 | #endif /* CONFIG_HIBERNATION */ |
| 343 | 345 | ||
| 344 | /* Hibernation and suspend events */ | 346 | /* Hibernation and suspend events */ |
diff --git a/include/sound/core.h b/include/sound/core.h index eedda2cdfe57..1df3f2fe5350 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
| @@ -116,6 +116,8 @@ struct snd_card { | |||
| 116 | int user_ctl_count; /* count of all user controls */ | 116 | int user_ctl_count; /* count of all user controls */ |
| 117 | struct list_head controls; /* all controls for this card */ | 117 | struct list_head controls; /* all controls for this card */ |
| 118 | struct list_head ctl_files; /* active control files */ | 118 | struct list_head ctl_files; /* active control files */ |
| 119 | struct mutex user_ctl_lock; /* protects user controls against | ||
| 120 | concurrent access */ | ||
| 119 | 121 | ||
| 120 | struct snd_info_entry *proc_root; /* root for soundcard specific files */ | 122 | struct snd_info_entry *proc_root; /* root for soundcard specific files */ |
| 121 | struct snd_info_entry *proc_id; /* the card id */ | 123 | struct snd_info_entry *proc_id; /* the card id */ |
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 5312fae47218..9269de254874 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h | |||
| @@ -705,6 +705,7 @@ enum perf_event_type { | |||
| 705 | * u32 min; | 705 | * u32 min; |
| 706 | * u64 ino; | 706 | * u64 ino; |
| 707 | * u64 ino_generation; | 707 | * u64 ino_generation; |
| 708 | * u32 prot, flags; | ||
| 708 | * char filename[]; | 709 | * char filename[]; |
| 709 | * struct sample_id sample_id; | 710 | * struct sample_id sample_id; |
| 710 | * }; | 711 | * }; |
