OSDN Git Service

lib/vsprintf: Force type of flags value for gfp_t
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 31 Jul 2020 18:08:24 +0000 (21:08 +0300)
committerSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Sat, 1 Aug 2020 03:52:57 +0000 (12:52 +0900)
commit30d497a0e1aadd904867081246c310dd0284eb41
tree6f8af1f57968ecbd7c53770d6159b55156b3b09c
parent09ceb8d76e6fa2c6a5bfc22eabd0cebe599e1690
lib/vsprintf: Force type of flags value for gfp_t

Sparse is not happy about restricted type being assigned:
  lib/vsprintf.c:1940:23: warning: incorrect type in assignment (different base types)
  lib/vsprintf.c:1940:23:    expected unsigned long [assigned] flags
  lib/vsprintf.c:1940:23:    got restricted gfp_t [usertype]

Force type of flags value to make sparse happy.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20200731180825.30575-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
lib/vsprintf.c