* [linux-next:master 2831/4011] include/linux/pgtable.h:1074:34: warning: parameter 'p4d_a' set but not used
@ 2025-02-16 1:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-16 1:50 UTC (permalink / raw)
To: Jani Nikula; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 0ae0fa3bf0b44c8611d114a9f69985bf451010c3
commit: 62ae45687e43574f6c13158f8b8c5e10d3d22fc4 [2831/4011] drm: ensure drm headers are self-contained and pass kernel-doc
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250216/202502160901.XRtY7OOX-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250216/202502160901.XRtY7OOX-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/202502160901.XRtY7OOX-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/alpha/include/asm/page.h:33:29: error: request for member 'pgd' in something not a structure or union
33 | #define pgd_val(x) ((x).pgd)
| ^
include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
40 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
48 | #define pud_val(x) (p4d_val((x).p4d))
| ^~~~~~~
arch/alpha/include/asm/pgtable.h:245:58: note: in expansion of macro 'pud_val'
245 | extern inline int pud_present(pud_t pud) { return pud_val(pud) & _PAGE_VALID; }
| ^~~~~~~
arch/alpha/include/asm/pgtable.h:245:37: warning: parameter 'pud' set but not used [-Wunused-but-set-parameter]
245 | extern inline int pud_present(pud_t pud) { return pud_val(pud) & _PAGE_VALID; }
| ~~~~~~^~~
arch/alpha/include/asm/pgtable.h: In function 'pud_clear':
arch/alpha/include/asm/page.h:33:29: error: request for member 'pgd' in something not a structure or union
33 | #define pgd_val(x) ((x).pgd)
| ^
include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
40 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
48 | #define pud_val(x) (p4d_val((x).p4d))
| ^~~~~~~
arch/alpha/include/asm/pgtable.h:246:51: note: in expansion of macro 'pud_val'
246 | extern inline void pud_clear(pud_t * pudp) { pud_val(*pudp) = 0; }
| ^~~~~~~
include/linux/pgtable.h: In function 'pmd_off':
include/linux/pgtable.h:186:38: error: implicit declaration of function 'p4d_offset'; did you mean 'pmd_offset'? [-Wimplicit-function-declaration]
186 | return pmd_offset(pud_offset(p4d_offset(pgd_offset(mm, va), va), va), va);
| ^~~~~~~~~~
| pmd_offset
include/linux/pgtable.h:186:38: error: passing argument 1 of 'pud_offset' makes pointer from integer without a cast [-Wint-conversion]
186 | return pmd_offset(pud_offset(p4d_offset(pgd_offset(mm, va), va), va), va);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
include/asm-generic/pgtable-nopud.h:42:40: note: expected 'p4d_t *' but argument is of type 'int'
42 | static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address)
| ~~~~~~~^~~
include/linux/pgtable.h: In function 'pmd_off_k':
include/linux/pgtable.h:191:38: error: passing argument 1 of 'pud_offset' makes pointer from integer without a cast [-Wint-conversion]
191 | return pmd_offset(pud_offset(p4d_offset(pgd_offset_k(va), va), va), va);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
include/asm-generic/pgtable-nopud.h:42:40: note: expected 'p4d_t *' but argument is of type 'int'
42 | static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address)
| ~~~~~~~^~~
include/linux/pgtable.h: In function 'pud_same':
arch/alpha/include/asm/page.h:33:29: error: request for member 'pgd' in something not a structure or union
33 | #define pgd_val(x) ((x).pgd)
| ^
include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
40 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
48 | #define pud_val(x) (p4d_val((x).p4d))
| ^~~~~~~
include/linux/pgtable.h:1068:16: note: in expansion of macro 'pud_val'
1068 | return pud_val(pud_a) == pud_val(pud_b);
| ^~~~~~~
arch/alpha/include/asm/page.h:33:29: error: request for member 'pgd' in something not a structure or union
33 | #define pgd_val(x) ((x).pgd)
| ^
include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
40 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/asm-generic/pgtable-nopud.h:48:50: note: in expansion of macro 'p4d_val'
48 | #define pud_val(x) (p4d_val((x).p4d))
| ^~~~~~~
include/linux/pgtable.h:1068:34: note: in expansion of macro 'pud_val'
1068 | return pud_val(pud_a) == pud_val(pud_b);
| ^~~~~~~
include/linux/pgtable.h:1066:34: warning: parameter 'pud_a' set but not used [-Wunused-but-set-parameter]
1066 | static inline int pud_same(pud_t pud_a, pud_t pud_b)
| ~~~~~~^~~~~
include/linux/pgtable.h:1066:47: warning: parameter 'pud_b' set but not used [-Wunused-but-set-parameter]
1066 | static inline int pud_same(pud_t pud_a, pud_t pud_b)
| ~~~~~~^~~~~
include/linux/pgtable.h: In function 'p4d_same':
arch/alpha/include/asm/page.h:33:29: error: request for member 'pgd' in something not a structure or union
33 | #define pgd_val(x) ((x).pgd)
| ^
include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
40 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/linux/pgtable.h:1076:16: note: in expansion of macro 'p4d_val'
1076 | return p4d_val(p4d_a) == p4d_val(p4d_b);
| ^~~~~~~
arch/alpha/include/asm/page.h:33:29: error: request for member 'pgd' in something not a structure or union
33 | #define pgd_val(x) ((x).pgd)
| ^
include/asm-generic/pgtable-nop4d.h:40:50: note: in expansion of macro 'pgd_val'
40 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/linux/pgtable.h:1076:34: note: in expansion of macro 'p4d_val'
1076 | return p4d_val(p4d_a) == p4d_val(p4d_b);
| ^~~~~~~
>> include/linux/pgtable.h:1074:34: warning: parameter 'p4d_a' set but not used [-Wunused-but-set-parameter]
1074 | static inline int p4d_same(p4d_t p4d_a, p4d_t p4d_b)
| ~~~~~~^~~~~
>> include/linux/pgtable.h:1074:47: warning: parameter 'p4d_b' set but not used [-Wunused-but-set-parameter]
1074 | static inline int p4d_same(p4d_t p4d_a, p4d_t p4d_b)
| ~~~~~~^~~~~
include/linux/pgtable.h: In function 'pgd_none_or_clear_bad':
include/linux/pgtable.h:1236:13: error: implicit declaration of function 'pgd_none'; did you mean 'pud_none'? [-Wimplicit-function-declaration]
1236 | if (pgd_none(*pgd))
| ^~~~~~~~
| pud_none
In file included from include/linux/export.h:5,
from include/linux/linkage.h:7,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8:
include/linux/pgtable.h:1238:22: error: implicit declaration of function 'pgd_bad'; did you mean 'pud_bad'? [-Wimplicit-function-declaration]
1238 | if (unlikely(pgd_bad(*pgd))) {
| ^~~~~~~
include/linux/compiler.h:77:45: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
vim +/p4d_a +1074 include/linux/pgtable.h
^1da177e4c3f41 include/asm-generic/pgtable.h Linus Torvalds 2005-04-16 1072
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 1073 #ifndef __HAVE_ARCH_P4D_SAME
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 @1074 static inline int p4d_same(p4d_t p4d_a, p4d_t p4d_b)
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 1075 {
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 1076 return p4d_val(p4d_a) == p4d_val(p4d_b);
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 1077 }
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 1078 #endif
0cebbb60f759a7 include/asm-generic/pgtable.h Dan Williams 2018-12-04 1079
:::::: The code at line 1074 was first introduced by commit
:::::: 0cebbb60f759a709dabb3c87b9704f9844878850 generic/pgtable: Introduce {p4d,pgd}_same()
:::::: TO: Dan Williams <dan.j.williams@intel.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-16 1:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-16 1:50 [linux-next:master 2831/4011] include/linux/pgtable.h:1074:34: warning: parameter 'p4d_a' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.