* [akpm-mm:mm-new 101/118] arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
@ 2025-08-12 19:18 kernel test robot
2025-08-12 20:50 ` David Hildenbrand
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2025-08-12 19:18 UTC (permalink / raw)
To: David Hildenbrand
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: 33ad02f876604ac2990e510480b0ab3a03cf892e
commit: 627bf62489a6d9a45f6d6f83edd0cb6c0ee610c0 [101/118] mm/rmap: convert "enum rmap_level" to "enum pgtable_level"
config: powerpc-randconfig-001-20250812 (https://download.01.org/0day-ci/archive/20250813/202508130304.5FJqRz2c-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130304.5FJqRz2c-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508130304.5FJqRz2c-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/mm/ptdump/shared.c:10:
arch/powerpc/mm/ptdump/ptdump.h:14:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
14 | struct pgtable_level {
| ^
include/linux/pgtable.h:1961:6: note: previous use is here
1961 | enum pgtable_level {
| ^
In file included from arch/powerpc/mm/ptdump/shared.c:10:
arch/powerpc/mm/ptdump/ptdump.h:20:8: error: use of 'pgtable_level' with tag type that does not match previous declaration
20 | extern struct pgtable_level pg_level[5];
| ^
include/linux/pgtable.h:1961:6: note: previous use is here
1961 | enum pgtable_level {
| ^
>> arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
70 | struct pgtable_level pg_level[5] = {
| ^
include/linux/pgtable.h:1961:6: note: previous use is here
1961 | enum pgtable_level {
| ^
3 errors generated.
vim +/pgtable_level +70 arch/powerpc/mm/ptdump/shared.c
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 9
e66c3209c7fd17 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2019-02-18 @10 #include "ptdump.h"
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 11
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 12 static const struct flag_info flag_array[] = {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 13 {
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 14 .mask = _PAGE_READ,
dd8de84b57b02b arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2022-06-28 15 .val = 0,
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 16 .set = " ",
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 17 .clear = "r",
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 18 }, {
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 19 .mask = _PAGE_WRITE,
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 20 .val = 0,
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 21 .set = " ",
ceaba662c06598 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2023-09-25 22 .clear = "w",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 23 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 24 .mask = _PAGE_EXEC,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 25 .val = _PAGE_EXEC,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 26 .set = " X ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 27 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 28 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 29 .mask = _PAGE_PRESENT,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 30 .val = _PAGE_PRESENT,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 31 .set = "present",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 32 .clear = " ",
3af4786eb429b2 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2020-05-19 33 }, {
3af4786eb429b2 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2020-05-19 34 .mask = _PAGE_COHERENT,
3af4786eb429b2 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2020-05-19 35 .val = _PAGE_COHERENT,
3af4786eb429b2 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2020-05-19 36 .set = "coherent",
3af4786eb429b2 arch/powerpc/mm/ptdump/shared.c Christophe Leroy 2020-05-19 37 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 38 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 39 .mask = _PAGE_GUARDED,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 40 .val = _PAGE_GUARDED,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 41 .set = "guarded",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 42 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 43 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 44 .mask = _PAGE_DIRTY,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 45 .val = _PAGE_DIRTY,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 46 .set = "dirty",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 47 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 48 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 49 .mask = _PAGE_ACCESSED,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 50 .val = _PAGE_ACCESSED,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 51 .set = "accessed",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 52 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 53 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 54 .mask = _PAGE_WRITETHRU,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 55 .val = _PAGE_WRITETHRU,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 56 .set = "write through",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 57 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 58 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 59 .mask = _PAGE_NO_CACHE,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 60 .val = _PAGE_NO_CACHE,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 61 .set = "no cache",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 62 .clear = " ",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 63 }, {
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 64 .mask = _PAGE_SPECIAL,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 65 .val = _PAGE_SPECIAL,
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 66 .set = "special",
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 67 }
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 68 };
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 69
97026b5a5ac265 arch/powerpc/mm/dump_linuxpagetables-generic.c Christophe Leroy 2018-10-09 @70 struct pgtable_level pg_level[5] = {
:::::: The code at line 70 was first introduced by commit
:::::: 97026b5a5ac26541b3d294146f5c941491a9e609 powerpc/mm: Split dump_pagelinuxtables flag_array table
:::::: TO: Christophe Leroy <christophe.leroy@c-s.fr>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [akpm-mm:mm-new 101/118] arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
2025-08-12 19:18 [akpm-mm:mm-new 101/118] arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration kernel test robot
@ 2025-08-12 20:50 ` David Hildenbrand
2025-08-12 20:57 ` David Hildenbrand
0 siblings, 1 reply; 4+ messages in thread
From: David Hildenbrand @ 2025-08-12 20:50 UTC (permalink / raw)
To: kernel test robot
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List
On 12.08.25 21:18, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head: 33ad02f876604ac2990e510480b0ab3a03cf892e
> commit: 627bf62489a6d9a45f6d6f83edd0cb6c0ee610c0 [101/118] mm/rmap: convert "enum rmap_level" to "enum pgtable_level"
> config: powerpc-randconfig-001-20250812 (https://download.01.org/0day-ci/archive/20250813/202508130304.5FJqRz2c-lkp@intel.com/config)
> compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130304.5FJqRz2c-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202508130304.5FJqRz2c-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> In file included from arch/powerpc/mm/ptdump/shared.c:10:
> arch/powerpc/mm/ptdump/ptdump.h:14:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
> 14 | struct pgtable_level {
> | ^
> include/linux/pgtable.h:1961:6: note: previous use is here
> 1961 | enum pgtable_level {
> | ^
> In file included from arch/powerpc/mm/ptdump/shared.c:10:
> arch/powerpc/mm/ptdump/ptdump.h:20:8: error: use of 'pgtable_level' with tag type that does not match previous declaration
> 20 | extern struct pgtable_level pg_level[5];
> | ^
> include/linux/pgtable.h:1961:6: note: previous use is here
> 1961 | enum pgtable_level {
> | ^
>>> arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
> 70 | struct pgtable_level pg_level[5] = {
> | ^
> include/linux/pgtable.h:1961:6: note: previous use is here
> 1961 | enum pgtable_level {
> | ^
> 3 errors generated.
Huh, I cross compiled this on a bunch of ppc configs, but maybe not emough.
No, on the branch I submitted that did not exist.
Probably due to the rebase.
--
Cheers,
David / dhildenb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [akpm-mm:mm-new 101/118] arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
2025-08-12 20:50 ` David Hildenbrand
@ 2025-08-12 20:57 ` David Hildenbrand
2025-08-12 22:03 ` Andrew Morton
0 siblings, 1 reply; 4+ messages in thread
From: David Hildenbrand @ 2025-08-12 20:57 UTC (permalink / raw)
To: kernel test robot
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List
On 12.08.25 22:50, David Hildenbrand wrote:
> On 12.08.25 21:18, kernel test robot wrote:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
>> head: 33ad02f876604ac2990e510480b0ab3a03cf892e
>> commit: 627bf62489a6d9a45f6d6f83edd0cb6c0ee610c0 [101/118] mm/rmap: convert "enum rmap_level" to "enum pgtable_level"
>> config: powerpc-randconfig-001-20250812 (https://download.01.org/0day-ci/archive/20250813/202508130304.5FJqRz2c-lkp@intel.com/config)
>> compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130304.5FJqRz2c-lkp@intel.com/reproduce)
>>
>> If you fix the issue in a separate patch/commit (i.e. not just a new version of
>> the same patch/commit), kindly add following tags
>> | Reported-by: kernel test robot <lkp@intel.com>
>> | Closes: https://lore.kernel.org/oe-kbuild-all/202508130304.5FJqRz2c-lkp@intel.com/
>>
>> All errors (new ones prefixed by >>):
>>
>> In file included from arch/powerpc/mm/ptdump/shared.c:10:
>> arch/powerpc/mm/ptdump/ptdump.h:14:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
>> 14 | struct pgtable_level {
>> | ^
>> include/linux/pgtable.h:1961:6: note: previous use is here
>> 1961 | enum pgtable_level {
>> | ^
>> In file included from arch/powerpc/mm/ptdump/shared.c:10:
>> arch/powerpc/mm/ptdump/ptdump.h:20:8: error: use of 'pgtable_level' with tag type that does not match previous declaration
>> 20 | extern struct pgtable_level pg_level[5];
>> | ^
>> include/linux/pgtable.h:1961:6: note: previous use is here
>> 1961 | enum pgtable_level {
>> | ^
>>>> arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
>> 70 | struct pgtable_level pg_level[5] = {
>> | ^
>> include/linux/pgtable.h:1961:6: note: previous use is here
>> 1961 | enum pgtable_level {
>> | ^
>> 3 errors generated.
>
> Huh, I cross compiled this on a bunch of ppc configs, but maybe not emough.
>
> No, on the branch I submitted that did not exist.
>
> Probably due to the rebase.
Ehm, no, Andrew, could it be that you accidentally dropped the ppc patch
from mm-new. I can spot all but that patch in there:
https://lkml.kernel.org/r/20250811112631.759341-7-david@redhat.com
--
Cheers,
David / dhildenb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [akpm-mm:mm-new 101/118] arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration
2025-08-12 20:57 ` David Hildenbrand
@ 2025-08-12 22:03 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2025-08-12 22:03 UTC (permalink / raw)
To: David Hildenbrand
Cc: kernel test robot, llvm, oe-kbuild-all,
Linux Memory Management List
On Tue, 12 Aug 2025 22:57:18 +0200 David Hildenbrand <david@redhat.com> wrote:
> >> 3 errors generated.
> >
> > Huh, I cross compiled this on a bunch of ppc configs, but maybe not emough.
> >
> > No, on the branch I submitted that did not exist.
> >
> > Probably due to the rebase.
>
> Ehm, no, Andrew, could it be that you accidentally dropped the ppc patch
> from mm-new. I can spot all but that patch in there:
>
> https://lkml.kernel.org/r/20250811112631.759341-7-david@redhat.com
yup, I totally missed that one, sorry. Added now.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-12 22:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-12 19:18 [akpm-mm:mm-new 101/118] arch/powerpc/mm/ptdump/shared.c:70:1: error: use of 'pgtable_level' with tag type that does not match previous declaration kernel test robot
2025-08-12 20:50 ` David Hildenbrand
2025-08-12 20:57 ` David Hildenbrand
2025-08-12 22:03 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).