Commit 3d2aef668920e8d93b77f145f8f647f62abe75db
Committed by
David S. Miller
1 parent
dd13a285b7
Exists in
master
and in
4 other branches
[TEXTSEARCH]: fix sparse gfp nocast warnings
Fix nocast sparse warnings: include/linux/textsearch.h:165:57: warning: implicit cast to nocast type Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 4 changed files with 5 additions and 4 deletions Side-by-side Diff
include/linux/textsearch.h
... | ... | @@ -158,7 +158,8 @@ |
158 | 158 | #define TS_PRIV_ALIGNTO 8 |
159 | 159 | #define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1)) |
160 | 160 | |
161 | -static inline struct ts_config *alloc_ts_config(size_t payload, int gfp_mask) | |
161 | +static inline struct ts_config *alloc_ts_config(size_t payload, | |
162 | + unsigned int __nocast gfp_mask) | |
162 | 163 | { |
163 | 164 | struct ts_config *conf; |
164 | 165 |
lib/ts_bm.c
lib/ts_fsm.c