[TEXTSEARCH]: fix sparse gfp nocast warnings
[linux-block.git] / lib / ts_kmp.c
index 73266b97558587a183c0ed0059b0b8b797bca9bb..e45f0f0c2379683104c43cc16c01b5564bc941cf 100644 (file)
@@ -87,7 +87,7 @@ static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len,
 }
 
 static struct ts_config *kmp_init(const void *pattern, unsigned int len,
-                                 int gfp_mask)
+                                 unsigned int __nocast gfp_mask)
 {
        struct ts_config *conf;
        struct ts_kmp *kmp;