From: kernel test robot <lkp@intel.com>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
Peter Xu <peterx@redhat.com>
Subject: [linux-next:master 12377/12643] arch/loongarch/include/asm/pgtable.h:614: error: "pud_leaf" redefined
Date: Thu, 11 Jul 2024 20:17:08 +0800 [thread overview]
Message-ID: <202407112057.ILQhCXOL-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f477dd6eede3ecedc8963478571d99ec3bf3f762
commit: 4d460b397e28528bab4b2cea6a9337560e78b0b8 [12377/12643] mm: add p{g/4}d_leaf() in asm-generic/pgtable-nop{4/u}d.h
config: loongarch-randconfig-s032-20230528 (https://download.01.org/0day-ci/archive/20240711/202407112057.ILQhCXOL-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240711/202407112057.ILQhCXOL-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/202407112057.ILQhCXOL-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/loongarch/include/asm/uaccess.h:17,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:13,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from arch/loongarch/include/asm/elf.h:9,
from include/linux/elf.h:6,
from include/linux/module.h:19,
from lib/test_bitops.c:10:
>> arch/loongarch/include/asm/pgtable.h:614: error: "pud_leaf" redefined [-Werror]
614 | #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0)
|
In file included from arch/loongarch/include/asm/pgtable.h:18:
include/asm-generic/pgtable-nopmd.h:34: note: this is the location of the previous definition
34 | #define pud_leaf pud_leaf
|
cc1: all warnings being treated as errors
vim +/pud_leaf +614 arch/loongarch/include/asm/pgtable.h
d4b6f1562a3c32 Huacai Chen 2022-05-31 612
303be4b33562a5 Hongchen Zhang 2023-09-06 613 #define pmd_leaf(pmd) ((pmd_val(pmd) & _PAGE_HUGE) != 0)
303be4b33562a5 Hongchen Zhang 2023-09-06 @614 #define pud_leaf(pud) ((pud_val(pud) & _PAGE_HUGE) != 0)
303be4b33562a5 Hongchen Zhang 2023-09-06 615
:::::: The code at line 614 was first introduced by commit
:::::: 303be4b33562a5b689261ced1616bf16ad49efa7 LoongArch: mm: Add p?d_leaf() definitions
:::::: TO: Hongchen Zhang <zhanghongchen@loongson.cn>
:::::: CC: Huacai Chen <chenhuacai@loongson.cn>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-11 12:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202407112057.ILQhCXOL-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterx@redhat.com \
/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