git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nospec: Allow index argument to have const-qualified type
[pandora-kernel.git]
/
include
/
linux
/
nospec.h
diff --git
a/include/linux/nospec.h
b/include/linux/nospec.h
index
4232e73
..
6f06589
100644
(file)
--- a/
include/linux/nospec.h
+++ b/
include/linux/nospec.h
@@
-53,7
+53,6
@@
static inline unsigned long array_index_mask_nospec(unsigned long index,
BUILD_BUG_ON(sizeof(_i) > sizeof(long)); \
BUILD_BUG_ON(sizeof(_s) > sizeof(long)); \
\
- _i &= _mask; \
- _i; \
+ (typeof(_i)) (_i & _mask); \
})
#endif /* _LINUX_NOSPEC_H */