mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
powerpc/ptdump: rename "struct pgtable_level" to "struct ptdump_pg_level"
We want to make use of "pgtable_level" for an enum in core-mm. Other architectures seem to call "struct pgtable_level" either: * "struct pg_level" when not exposed in a header (riscv, arm) * "struct ptdump_pg_level" when expose in a header (arm64) So let's follow what arm64 does. Link: https://lkml.kernel.org/r/20250811112631.759341-7-david@redhat.com Signed-off-by: David Hildenbrand <david@redhat.com> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Cc: Alistair Popple <apopple@nvidia.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Barry Song <baohua@kernel.org> Cc: Christian Brauner <brauner@kernel.org> Cc: Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Dan Williams <dan.j.williams@intel.com> Cc: David Vrabel <david.vrabel@citrix.com> Cc: Dev Jain <dev.jain@arm.com> Cc: Hugh Dickins <hughd@google.com> Cc: Jan Kara <jack@suse.cz> Cc: Jann Horn <jannh@google.com> Cc: Juegren Gross <jgross@suse.com> Cc: Lance Yang <lance.yang@linux.dev> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Mariano Pache <npache@redhat.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> Cc: Oscar Salvador <osalvador@suse.de> Cc: Ryan Roberts <ryan.roberts@arm.com> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
d82d09e482
commit
30680d5ef0
@@ -69,7 +69,7 @@ static const struct flag_info flag_array[] = {
|
||||
}
|
||||
};
|
||||
|
||||
struct pgtable_level pg_level[5] = {
|
||||
struct ptdump_pg_level pg_level[5] = {
|
||||
{ /* pgd */
|
||||
.flag = flag_array,
|
||||
.num = ARRAY_SIZE(flag_array),
|
||||
|
||||
@@ -102,7 +102,7 @@ static const struct flag_info flag_array[] = {
|
||||
}
|
||||
};
|
||||
|
||||
struct pgtable_level pg_level[5] = {
|
||||
struct ptdump_pg_level pg_level[5] = {
|
||||
{ /* pgd */
|
||||
.flag = flag_array,
|
||||
.num = ARRAY_SIZE(flag_array),
|
||||
|
||||
@@ -11,12 +11,12 @@ struct flag_info {
|
||||
int shift;
|
||||
};
|
||||
|
||||
struct pgtable_level {
|
||||
struct ptdump_pg_level {
|
||||
const struct flag_info *flag;
|
||||
size_t num;
|
||||
u64 mask;
|
||||
};
|
||||
|
||||
extern struct pgtable_level pg_level[5];
|
||||
extern struct ptdump_pg_level pg_level[5];
|
||||
|
||||
void pt_dump_size(struct seq_file *m, unsigned long delta);
|
||||
|
||||
@@ -67,7 +67,7 @@ static const struct flag_info flag_array[] = {
|
||||
}
|
||||
};
|
||||
|
||||
struct pgtable_level pg_level[5] = {
|
||||
struct ptdump_pg_level pg_level[5] = {
|
||||
{ /* pgd */
|
||||
.flag = flag_array,
|
||||
.num = ARRAY_SIZE(flag_array),
|
||||
|
||||
Reference in New Issue
Block a user