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: warning: "pud_leaf" redefined
Date: Thu, 11 Jul 2024 19:42:43 +0800 [thread overview]
Message-ID: <202407111910.kbzq5PZK-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-r031-20230725 (https://download.01.org/0day-ci/archive/20240711/202407111910.kbzq5PZK-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/202407111910.kbzq5PZK-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/202407111910.kbzq5PZK-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:30,
from arch/loongarch/kernel/asm-offsets.c:9:
>> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined
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
|
--
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 include/linux/debugfs.h:15,
from drivers/hwmon/pmbus/ibm-cffps.c:8:
>> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined
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
|
drivers/hwmon/pmbus/ibm-cffps.c: In function 'ibm_cffps_debugfs_read':
drivers/hwmon/pmbus/ibm-cffps.c:169:60: warning: '%02X' directive output may be truncated writing between 2 and 8 bytes into a region of size 3 [-Wformat-truncation=]
169 | snprintf(&data[i * 2], 3, "%02X", rc);
| ^~~~
drivers/hwmon/pmbus/ibm-cffps.c:169:59: note: directive argument in the range [0, 2147483647]
169 | snprintf(&data[i * 2], 3, "%02X", rc);
| ^~~~~~
drivers/hwmon/pmbus/ibm-cffps.c:169:33: note: 'snprintf' output between 3 and 9 bytes into a destination of size 3
169 | snprintf(&data[i * 2], 3, "%02X", rc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/hwmon/pmbus/ibm-cffps.c:180:60: warning: '%04X' directive output may be truncated writing between 4 and 8 bytes into a region of size 5 [-Wformat-truncation=]
180 | snprintf(&data[i * 4], 5, "%04X", rc);
| ^~~~
drivers/hwmon/pmbus/ibm-cffps.c:180:59: note: directive argument in the range [0, 2147483647]
180 | snprintf(&data[i * 4], 5, "%04X", rc);
| ^~~~~~
drivers/hwmon/pmbus/ibm-cffps.c:180:33: note: 'snprintf' output between 5 and 9 bytes into a destination of size 5
180 | snprintf(&data[i * 4], 5, "%04X", rc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:30,
from arch/loongarch/kernel/asm-offsets.c:9:
>> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined
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
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:30,
from arch/loongarch/include/asm/vdso.h:10,
from arch/loongarch/vdso/vgetcpu.c:6:
>> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined
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
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:30,
from arch/loongarch/include/asm/vdso.h:10,
from arch/loongarch/include/asm/vdso/vdso.h:11,
from arch/loongarch/include/asm/vdso/gettimeofday.h:13,
from include/vdso/datapage.h:149,
from lib/vdso/gettimeofday.c:5,
from <command-line>:
>> arch/loongarch/include/asm/pgtable.h:614: warning: "pud_leaf" redefined
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
|
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
next reply other threads:[~2024-07-11 11:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 11:42 kernel test robot [this message]
2024-07-11 19:26 ` 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=202407111910.kbzq5PZK-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