Skip to content

Commit ecdd16d

Browse files
Min-Huawilldeacon
authored andcommitted
arm64: hibernate: Fix warning for cast from restricted gfp_t
This patch fixes the following warning by adding __force to the cast: arch/arm64/kernel/hibernate.c:410:44: sparse: warning: cast from restricted gfp_t No functional change intended. Signed-off-by: Min-Hua Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent b6db3eb commit ecdd16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/hibernate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ int swsusp_arch_resume(void)
407407
void *, phys_addr_t, phys_addr_t);
408408
struct trans_pgd_info trans_info = {
409409
.trans_alloc_page = hibernate_page_alloc,
410-
.trans_alloc_arg = (void *)GFP_ATOMIC,
410+
.trans_alloc_arg = (__force void *)GFP_ATOMIC,
411411
};
412412

413413
/*

0 commit comments

Comments
 (0)