[PATCH] kernel/audit.c: fix sparse warnings (__nocast type) From: Victor Fusco Fix the sparse warning "implicit cast to nocast type" Signed-off-by: Victor Fusco Signed-off-by: Alexey Dobriyan Index: linux-kj/kernel/audit.c =================================================================== --- linux-kj.orig/kernel/audit.c +++ linux-kj/kernel/audit.c @@ -561,7 +561,7 @@ static void audit_buffer_free(struct aud } static struct audit_buffer * audit_buffer_alloc(struct audit_context *ctx, - int gfp_mask, int type) + unsigned int __nocast gfp_mask, int type) { unsigned long flags; struct audit_buffer *ab = NULL;