Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc64: Remove redundant __GFP_NOWARN

Commit 16f5dfbc851b ("gfp: include __GFP_NOWARN in GFP_NOWAIT") made
GFP_NOWAIT implicitly include __GFP_NOWARN.

Therefore, explicit __GFP_NOWARN combined with GFP_NOWAIT (e.g.,
`GFP_NOWAIT | __GFP_NOWARN`) is now redundant. Let's clean up these
redundant flags across subsystems.

No functional changes.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>

authored by

Qianfeng Rong and committed by
Andreas Larsson
3751aa6e 6fd44a48

+2 -2
+2 -2
arch/sparc/kernel/adi_64.c
··· 202 202 203 203 } else { 204 204 size = sizeof(tag_storage_desc_t)*max_desc; 205 - mm->context.tag_store = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN); 205 + mm->context.tag_store = kzalloc(size, GFP_NOWAIT); 206 206 if (mm->context.tag_store == NULL) { 207 207 tag_desc = NULL; 208 208 goto out; ··· 281 281 size = (size + (PAGE_SIZE-adi_blksize()))/PAGE_SIZE; 282 282 size = size * PAGE_SIZE; 283 283 } 284 - tags = kzalloc(size, GFP_NOWAIT|__GFP_NOWARN); 284 + tags = kzalloc(size, GFP_NOWAIT); 285 285 if (tags == NULL) { 286 286 tag_desc->tag_users = 0; 287 287 tag_desc = NULL;