diff options
author | Min-Hua Chen <minhuadotchen@gmail.com> | 2024-09-11 01:25:05 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-09-12 13:48:58 +0200 |
commit | ecdd16df45649e344e38ec59a3022e13419a695a (patch) | |
tree | d14fceae1a6b1f9da493cabb66fc6ee54d780819 /arch/arm64/kernel | |
parent | arm64: esr: Define ESR_ELx_EC_* constants as UL (diff) | |
download | linux-ecdd16df45649e344e38ec59a3022e13419a695a.tar.xz linux-ecdd16df45649e344e38ec59a3022e13419a695a.zip |
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 <minhuadotchen@gmail.com>
Link: https://lore.kernel.org/r/20240910232507.313555-1-minhuadotchen@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/hibernate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/hibernate.c b/arch/arm64/kernel/hibernate.c index 02870beb271e..7b11d84f533c 100644 --- a/arch/arm64/kernel/hibernate.c +++ b/arch/arm64/kernel/hibernate.c @@ -407,7 +407,7 @@ int swsusp_arch_resume(void) void *, phys_addr_t, phys_addr_t); struct trans_pgd_info trans_info = { .trans_alloc_page = hibernate_page_alloc, - .trans_alloc_arg = (void *)GFP_ATOMIC, + .trans_alloc_arg = (__force void *)GFP_ATOMIC, }; /* |