diff options
| author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 05:33:03 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-21 08:44:55 -0400 |
| commit | 64131a87f2aae2ed9e05d8227c5b009ca6c50d98 (patch) | |
| tree | fdea23fd59216120bf54a48c60ca24489a733f14 /include/linux/compiler.h | |
| parent | 676ee36be04985062522804c2de04f0764212be6 (diff) | |
| parent | 2c33ce009ca2389dbf0535d0672214d09738e35e (diff) | |
Merge branch 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux into v4l_for_linus
* 'drm-next-merged' of git://people.freedesktop.org/~airlied/linux: (9717 commits)
media-bus: Fixup RGB444_1X12, RGB565_1X16, and YUV8_1X24 media bus format
hexdump: avoid warning in test function
fs: take i_mutex during prepare_binprm for set[ug]id executables
smp: Fix error case handling in smp_call_function_*()
iommu-common: Fix PARISC compile-time warnings
sparc: Make LDC use common iommu poll management functions
sparc: Make sparc64 use scalable lib/iommu-common.c functions
Break up monolithic iommu table/lock into finer graularity pools and lock
sparc: Revert generic IOMMU allocator.
tools/power turbostat: correct dumped pkg-cstate-limit value
tools/power turbostat: calculate TSC frequency from CPUID(0x15) on SKL
tools/power turbostat: correct DRAM RAPL units on recent Xeon processors
tools/power turbostat: Initial Skylake support
tools/power turbostat: Use $(CURDIR) instead of $(PWD) and add support for O= option in Makefile
tools/power turbostat: modprobe msr, if needed
tools/power turbostat: dump MSR_TURBO_RATIO_LIMIT2
tools/power turbostat: use new MSR_TURBO_RATIO_LIMIT names
Bluetooth: hidp: Fix regression with older userspace and flags validation
config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected
perf/x86/intel/pt: Fix and clean up error handling in pt_event_add()
...
That solves several merge conflicts:
Documentation/DocBook/media/v4l/subdev-formats.xml
Documentation/devicetree/bindings/vendor-prefixes.txt
drivers/staging/media/mn88473/mn88473.c
include/linux/kconfig.h
include/uapi/linux/media-bus-format.h
The ones at subdev-formats.xml and media-bus-format.h are not trivial.
That's why we opted to merge from DRM.
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 1b45e4a0519b..0e41ca0e5927 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
| @@ -192,29 +192,16 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect); | |||
| 192 | 192 | ||
| 193 | #include <uapi/linux/types.h> | 193 | #include <uapi/linux/types.h> |
| 194 | 194 | ||
| 195 | static __always_inline void data_access_exceeds_word_size(void) | ||
| 196 | #ifdef __compiletime_warning | ||
| 197 | __compiletime_warning("data access exceeds word size and won't be atomic") | ||
| 198 | #endif | ||
| 199 | ; | ||
| 200 | |||
| 201 | static __always_inline void data_access_exceeds_word_size(void) | ||
| 202 | { | ||
| 203 | } | ||
| 204 | |||
| 205 | static __always_inline void __read_once_size(const volatile void *p, void *res, int size) | 195 | static __always_inline void __read_once_size(const volatile void *p, void *res, int size) |
| 206 | { | 196 | { |
| 207 | switch (size) { | 197 | switch (size) { |
| 208 | case 1: *(__u8 *)res = *(volatile __u8 *)p; break; | 198 | case 1: *(__u8 *)res = *(volatile __u8 *)p; break; |
| 209 | case 2: *(__u16 *)res = *(volatile __u16 *)p; break; | 199 | case 2: *(__u16 *)res = *(volatile __u16 *)p; break; |
| 210 | case 4: *(__u32 *)res = *(volatile __u32 *)p; break; | 200 | case 4: *(__u32 *)res = *(volatile __u32 *)p; break; |
| 211 | #ifdef CONFIG_64BIT | ||
| 212 | case 8: *(__u64 *)res = *(volatile __u64 *)p; break; | 201 | case 8: *(__u64 *)res = *(volatile __u64 *)p; break; |
| 213 | #endif | ||
| 214 | default: | 202 | default: |
| 215 | barrier(); | 203 | barrier(); |
| 216 | __builtin_memcpy((void *)res, (const void *)p, size); | 204 | __builtin_memcpy((void *)res, (const void *)p, size); |
| 217 | data_access_exceeds_word_size(); | ||
| 218 | barrier(); | 205 | barrier(); |
| 219 | } | 206 | } |
| 220 | } | 207 | } |
| @@ -225,13 +212,10 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s | |||
| 225 | case 1: *(volatile __u8 *)p = *(__u8 *)res; break; | 212 | case 1: *(volatile __u8 *)p = *(__u8 *)res; break; |
| 226 | case 2: *(volatile __u16 *)p = *(__u16 *)res; break; | 213 | case 2: *(volatile __u16 *)p = *(__u16 *)res; break; |
| 227 | case 4: *(volatile __u32 *)p = *(__u32 *)res; break; | 214 | case 4: *(volatile __u32 *)p = *(__u32 *)res; break; |
| 228 | #ifdef CONFIG_64BIT | ||
| 229 | case 8: *(volatile __u64 *)p = *(__u64 *)res; break; | 215 | case 8: *(volatile __u64 *)p = *(__u64 *)res; break; |
| 230 | #endif | ||
| 231 | default: | 216 | default: |
| 232 | barrier(); | 217 | barrier(); |
| 233 | __builtin_memcpy((void *)p, (const void *)res, size); | 218 | __builtin_memcpy((void *)p, (const void *)res, size); |
| 234 | data_access_exceeds_word_size(); | ||
| 235 | barrier(); | 219 | barrier(); |
| 236 | } | 220 | } |
| 237 | } | 221 | } |
