diff options
author | Anshuman Khandual <[email protected]> | 2022-11-18 11:01:02 +0530 |
---|---|---|
committer | Will Deacon <[email protected]> | 2022-11-18 14:10:41 +0000 |
commit | 9ed2b4616d4e846ece2a04cb5007ce1d1bd9e3f3 (patch) | |
tree | e6d48c1f9232f3774ba2de9a4d8352b0a9cf1f99 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | d8c1d798a2e5091128c391c6dadcc9be334af3f5 (diff) |
arm64/mm: Drop redundant BUG_ON(!pgtable_alloc)
__create_pgd_mapping_locked() expects a page allocator used while mapping a
virtual range. This page allocator function propagates down the call chain,
while building intermediate levels in the page table. Passed page allocator
is a necessary ingredient required to build the page table but its presence
can be asserted just once in the very beginning rather than in all the down
stream functions. This consolidates BUG_ON(!pgtable_alloc) checks just in a
single place i.e __create_pgd_mapping_locked().
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Anshuman Khandual <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions