Skip to contentSkip to conversation

arm64: Remove unsued extern declaration init_mem_pgprot()

PATCH Applied YueHaibing 3 participants 3 messages Jul 20, 2023 – Jul 27, 2023 arm64

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 arm64: Remove unsued extern declaration init_mem_pgprot()

commit a501e32430d4 ("arm64: Clean up the default pgprot setting") left behind this.

---
 arch/arm64/include/asm/mmu.h | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/include/asm/mmu.h +0 -1
index 4384eaa0aeb7..94b68850cb9f 100644
@@ -64,7 +64,6 @@ extern void arm64_memblock_init(void);
 extern void paging_init(void);
 extern void bootmem_init(void);
 extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
-extern void init_mem_pgprot(void);
 extern void create_mapping_noalloc(phys_addr_t phys, unsigned long virt,
 				   phys_addr_t size, pgprot_t prot);
 extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · YueHaibing

commit a501e32430d4 ("arm64: Clean up the default pgprot setting") left behind this.

This commit indeed left the declaration behind.

Quoted 2 lines
Quoted 16 lines
---
 arch/arm64/include/asm/mmu.h | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/include/asm/mmu.h +0 -1
index 4384eaa0aeb7..94b68850cb9f 100644
@@ -64,7 +64,6 @@ extern void arm64_memblock_init(void);
 extern void paging_init(void);
 extern void bootmem_init(void);
 extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
-extern void init_mem_pgprot(void);
 extern void create_mapping_noalloc(phys_addr_t phys, unsigned long virt,
 				   phys_addr_t size, pgprot_t prot);
 extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
maintainer Applied
#2 lore raw
In reply to YueHaibing
Quoted 4 lines · YueHaibing

commit a501e32430d4 ("arm64: Clean up the default pgprot setting") left behind this.

Applied to arm64 (for-next/mm), thanks!

[1/1] arm64: Remove unsued extern declaration init_mem_pgprot()

      https://git.kernel.org/arm64/c/42501f6d4d5d

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev