diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-02 23:16:01 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-02 23:16:01 -0500 |
| commit | 013daec9c19b73ef1e8e427dd7c8acca5766c17e (patch) | |
| tree | c14c687f40ec22c5f48e23a08e8ae00c2ddfc2f9 /tools/perf/util/include/linux/bitops.h | |
| parent | bf13c9a894162a91c8bb7d9555933e9fc3ff7d0e (diff) | |
| parent | 0414855fdc4a40da05221fc6062cccbc0c30f169 (diff) | |
Merge 3.14-rc5 into tty-next
We want these fixes in here
Diffstat (limited to 'tools/perf/util/include/linux/bitops.h')
| -rw-r--r-- | tools/perf/util/include/linux/bitops.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/include/linux/bitops.h b/tools/perf/util/include/linux/bitops.h index 45cf10a562bd..dadfa7e54287 100644 --- a/tools/perf/util/include/linux/bitops.h +++ b/tools/perf/util/include/linux/bitops.h | |||
| @@ -87,13 +87,15 @@ static __always_inline unsigned long __ffs(unsigned long word) | |||
| 87 | return num; | 87 | return num; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | typedef const unsigned long __attribute__((__may_alias__)) long_alias_t; | ||
| 91 | |||
| 90 | /* | 92 | /* |
| 91 | * Find the first set bit in a memory region. | 93 | * Find the first set bit in a memory region. |
| 92 | */ | 94 | */ |
| 93 | static inline unsigned long | 95 | static inline unsigned long |
| 94 | find_first_bit(const unsigned long *addr, unsigned long size) | 96 | find_first_bit(const unsigned long *addr, unsigned long size) |
| 95 | { | 97 | { |
| 96 | const unsigned long *p = addr; | 98 | long_alias_t *p = (long_alias_t *) addr; |
| 97 | unsigned long result = 0; | 99 | unsigned long result = 0; |
| 98 | unsigned long tmp; | 100 | unsigned long tmp; |
| 99 | 101 | ||
