From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [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
Date: Wed, 13 Aug 2025 03:18:33 +0800 [thread overview]
Message-ID: <202508130304.5FJqRz2c-lkp@intel.com> (raw)
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
next reply other threads:[~2025-08-12 19:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-12 19:18 kernel test robot [this message]
2025-08-12 20:50 ` David Hildenbrand
2025-08-12 20:57 ` David Hildenbrand
2025-08-12 22:03 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202508130304.5FJqRz2c-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox