diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-02-14 22:27:01 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-02-15 11:32:18 +0000 |
commit | 12f043ff2b28fa64c9123b454cbe30a8a9e1967e (patch) | |
tree | b4bc6e164d59df26cdbbab644fe2755a81a3edc2 /arch/arm64/kernel/entry-ftrace.S | |
parent | 38fd94b0275c91071157a03cc27676909b23dcde (diff) |
arm64: fix warning about swapper_pg_dir overflow
With 4 levels of 16KB pages, we get this warning about the fact that we are
copying a whole page into an array that is declared as having only two pointers
for the top level of the page table:
arch/arm64/mm/mmu.c: In function 'paging_init':
arch/arm64/mm/mmu.c:528:2: error: 'memcpy' writing 16384 bytes into a region of size 16 overflows the destination [-Werror=stringop-overflow=]
This is harmless since we actually reserve a whole page in the definition of the
array that comes from, and just the extern declaration is short. The pgdir
is initialized to zero either way, so copying the actual entries here seems
like the best solution.
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/entry-ftrace.S')
0 files changed, 0 insertions, 0 deletions