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

arm64: mm: Fix set_memory_valid() declaration

Clearly, set_memory_valid() has never been seen in the same room as its
declaration... Whilst the type mismatch is such that kexec probably
wasn't broken in practice, fix it to match the definition as it should.

Fixes: 9b0aa14e3155 ("arm64: mm: add set_memory_valid()")
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Robin Murphy and committed by
Catalin Marinas
09c2a7dc 1f9b8936

+1 -1
+1 -1
arch/arm64/include/asm/cacheflush.h
··· 150 150 { 151 151 } 152 152 153 - int set_memory_valid(unsigned long addr, unsigned long size, int enable); 153 + int set_memory_valid(unsigned long addr, int numpages, int enable); 154 154 155 155 #endif