]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: fix up sparse warning in gfpflags_allow_blocking
authorJeff Layton <jlayton@poochiereds.net>
Fri, 20 Nov 2015 23:57:32 +0000 (15:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 Nov 2015 00:17:32 +0000 (16:17 -0800)
commit21fa8442799945beaca074cb5bcf7cfe24969d59
tree03bece696ca720f583debd817e92955de93af87a
parent8f1eb48758aacf6c1ffce18179295adbf3bd7640
mm: fix up sparse warning in gfpflags_allow_blocking

sparse says:

    include/linux/gfp.h:274:26: warning: incorrect type in return expression (different base types)
    include/linux/gfp.h:274:26:    expected bool
    include/linux/gfp.h:274:26:    got restricted gfp_t

...add a forced cast to silence the warning.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/gfp.h