diff options
author | Will Deacon <will@kernel.org> | 2021-10-29 13:27:53 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-10-29 13:27:53 +0200 |
commit | e6359798f62da66a4a48061d2324a69ea59ff39b (patch) | |
tree | 5695107ae49a82d8d80f8a0e72a9f40b7a8b1a96 | |
parent | Merge branch 'for-next/vdso' into for-next/core (diff) | |
parent | acpi/arm64: fix next_platform_timer() section mismatch error (diff) | |
download | linux-e6359798f62da66a4a48061d2324a69ea59ff39b.tar.xz linux-e6359798f62da66a4a48061d2324a69ea59ff39b.zip |
Merge branch 'for-next/fixes' into for-next/core
Merge for-next/fixes to resolve conflicts in arm64_hugetlb_cma_reserve().
* for-next/fixes:
acpi/arm64: fix next_platform_timer() section mismatch error
arm64/hugetlb: fix CMA gigantic page order for non-4K PAGE_SIZE
-rw-r--r-- | arch/arm64/mm/hugetlbpage.c | 3 | ||||
-rw-r--r-- | drivers/acpi/arm64/gtdt.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c index 029cf5e42c4c..ffb9c229610a 100644 --- a/arch/arm64/mm/hugetlbpage.c +++ b/arch/arm64/mm/hugetlbpage.c @@ -43,7 +43,8 @@ void __init arm64_hugetlb_cma_reserve(void) if (pud_sect_supported()) order = PUD_SHIFT - PAGE_SHIFT; else - order = CONT_PMD_SHIFT + PMD_SHIFT - PAGE_SHIFT; + order = CONT_PMD_SHIFT - PAGE_SHIFT; + /* * HugeTLB CMA reservation is required for gigantic * huge pages which could not be allocated via the diff --git a/drivers/acpi/arm64/gtdt.c b/drivers/acpi/arm64/gtdt.c index 0a0a982f9c28..c0e77c1c8e09 100644 --- a/drivers/acpi/arm64/gtdt.c +++ b/drivers/acpi/arm64/gtdt.c @@ -36,7 +36,7 @@ struct acpi_gtdt_descriptor { static struct acpi_gtdt_descriptor acpi_gtdt_desc __initdata; -static inline void *next_platform_timer(void *platform_timer) +static inline __init void *next_platform_timer(void *platform_timer) { struct acpi_gtdt_header *gh = platform_timer; |