arm64: mm: Fix column alignment for UXN in kernel_page_tables
PATCH 1/1 arm64: mm: Fix column alignment for UXN in kernel_page_tables
UXN is the only individual PTE bit other than the PTE_ATTRINDX_MASK ones which doesn't have both a set and a clear value provided, meaning that the columns in the table won't all be aligned. The PTE_ATTRINDX_MASK values are all both mutually exclusive and longer so are listed last to make a single final column for those values. Ensure everything is aligned by providing a clear value for UXN.
--- arch/arm64/mm/dump.c | 1 + 1 file changed, 1 insertion(+)
arch/arm64/mm/dump.c +1 -0
@@ -144,6 +144,7 @@ static const struct prot_bits pte_bits[] = { .mask = PTE_UXN, .val = PTE_UXN, .set = "UXN", + .clear = " ", }, { .mask = PTE_ATTRINDX_MASK, .val = PTE_ATTRINDX(MT_DEVICE_nGnRnE),
Signature · 7 lines
2.20.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 8 lines · Mark Brown
UXN is the only individual PTE bit other than the
PTE_ATTRINDX_MASKones which doesn't have both a set and a clear value provided, meaning that the columns in the table won't all be aligned. ThePTE_ATTRINDX_MASKvalues are all both mutually exclusive and longer so are listed last to make a single final column for those values. Ensure everything is aligned by providing a clear value for UXN.Signed-off-by Mark Brown <[email protected]>
Mark.
Quoted 19 lines
--- arch/arm64/mm/dump.c | 1 + 1 file changed, 1 insertion(+)arch/arm64/mm/dump.c +1
-0@@ -144,6 +144,7 @@ static const struct prot_bits pte_bits[] = { .mask = PTE_UXN, .val = PTE_UXN, .set = "UXN", + .clear = " ", }, { .mask = PTE_ATTRINDX_MASK, .val = PTE_ATTRINDX(MT_DEVICE_nGnRnE),Signature · 1 line
2.20.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 8 lines · Mark Brown
UXN is the only individual PTE bit other than the
PTE_ATTRINDX_MASKones which doesn't have both a set and a clear value provided, meaning that the columns in the table won't all be aligned. ThePTE_ATTRINDX_MASKvalues are all both mutually exclusive and longer so are listed last to make a single final column for those values. Ensure everything is aligned by providing a clear value for UXN.Signed-off-by Mark Brown <[email protected]>
Queued for 5.5-rc1. Thanks.
Signature · 6 lines
Catalin _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel