[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>
This commit is contained in:
committed by
David S. Miller
parent
dd13a285b7
commit
3d2aef6689
@@ -158,7 +158,8 @@ extern unsigned int textsearch_find_continuous(struct ts_config *,
|
||||
#define TS_PRIV_ALIGNTO 8
|
||||
#define TS_PRIV_ALIGN(len) (((len) + TS_PRIV_ALIGNTO-1) & ~(TS_PRIV_ALIGNTO-1))
|
||||
|
||||
static inline struct ts_config *alloc_ts_config(size_t payload, int gfp_mask)
|
||||
static inline struct ts_config *alloc_ts_config(size_t payload,
|
||||
unsigned int __nocast gfp_mask)
|
||||
{
|
||||
struct ts_config *conf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user