* [davidhildenbrand:folded_pgtable 28/28] include/asm-generic/pgtable-nopmd.h:60:25: error: invalid type argument of unary '*' (have 'pud_t')
@ 2026-07-08 4:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-08 4:18 UTC (permalink / raw)
To: David Hildenbrand (Arm); +Cc: oe-kbuild-all
tree: https://github.com/davidhildenbrand/linux folded_pgtable
head: 710c0f29eb829f67c4c0d1c2a3f764b286282229
commit: 710c0f29eb829f67c4c0d1c2a3f764b286282229 [28/28] mm/pgtable: catch abuse of folded dummy pgd_t/p4d_t/pud_t
config: nios2-allnoconfig (https://download.01.org/0day-ci/archive/20260708/202607081246.Z9NhVAt6-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260708/202607081246.Z9NhVAt6-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/202607081246.Z9NhVAt6-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/nios2/mm/fault.c: In function 'do_page_fault':
arch/nios2/mm/fault.c:231:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'p4d_k'
231 | p4d_t *p4dp, *p4dp_k p4d_k;
| ^~~~~
arch/nios2/mm/fault.c:245:17: error: 'p4dp_k' undeclared (first use in this function); did you mean 'pmdp_k'?
245 | p4dp_k = p4d_offset(pgdp_k, address);
| ^~~~~~
| pmdp_k
arch/nios2/mm/fault.c:245:17: note: each undeclared identifier is reported only once for each function it appears in
arch/nios2/mm/fault.c:246:17: error: 'p4d_k' undeclared (first use in this function); did you mean 'pmd_k'?
246 | p4d_k = p4dp_get(p4dp_k);
| ^~~~~
| pmd_k
arch/nios2/mm/fault.c:252:17: error: 'pud' undeclared (first use in this function); did you mean 'pudp'?
252 | pud = pud_offset(p4dp, address);
| ^~~
| pudp
In file included from <command-line>:
>> include/asm-generic/pgtable-nopmd.h:60:25: error: invalid type argument of unary '*' (have 'pud_t')
60 | pud_check_dummy(*(pudp)); \
| ^~~~~~~
include/linux/compiler_types.h:682:23: note: in definition of macro '__compiletime_assert'
682 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:702:9: note: in expansion of macro '_compiletime_assert'
702 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:51:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
51 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
include/asm-generic/pgtable-nopmd.h:51:30: note: in expansion of macro 'BUILD_BUG_ON'
51 | #define pud_check_dummy(pud) BUILD_BUG_ON(__builtin_constant_p(pud_val(pud)))
| ^~~~~~~~~~~~
include/asm-generic/pgtable-nop4d.h:67:50: note: in expansion of macro 'pgd_val'
67 | #define p4d_val(x) (pgd_val((x).pgd))
| ^~~~~~~
include/asm-generic/pgtable-nopud.h:74:50: note: in expansion of macro 'p4d_val'
74 | #define pud_val(x) (p4d_val((x).p4d))
| ^~~~~~~
include/asm-generic/pgtable-nopmd.h:51:64: note: in expansion of macro 'pud_val'
51 | #define pud_check_dummy(pud) BUILD_BUG_ON(__builtin_constant_p(pud_val(pud)))
| ^~~~~~~
include/asm-generic/pgtable-nopmd.h:60:9: note: in expansion of macro 'pud_check_dummy'
60 | pud_check_dummy(*(pudp)); \
| ^~~~~~~~~~~~~~~
arch/nios2/mm/fault.c:261:26: note: in expansion of macro 'pmd_offset'
261 | pmdp_k = pmd_offset(pud_k, address);
| ^~~~~~~~~~
In file included from arch/nios2/include/asm/pgtable.h:25,
from include/linux/pgtable.h:6,
from include/linux/mm.h:31,
from include/linux/pid_namespace.h:7,
from include/linux/ptrace.h:10,
from arch/nios2/mm/fault.c:22:
>> arch/nios2/mm/fault.c:261:37: error: incompatible type for argument 1 of '__pmd_offset'
261 | pmdp_k = pmd_offset(pud_k, address);
| ^~~~~
| |
| pud_t
include/asm-generic/pgtable-nopmd.h:61:22: note: in definition of macro 'pmd_offset'
61 | __pmd_offset(pudp, address); \
| ^~~~
include/asm-generic/pgtable-nopmd.h:53:51: note: expected 'pud_t *' but argument is of type 'pud_t'
53 | static __always_inline pmd_t *__pmd_offset(pud_t *pudp, unsigned long address)
| ~~~~~~~^~~~
vim +60 include/asm-generic/pgtable-nopmd.h
57
58 #define pmd_offset(pudp, address) \
59 ({ \
> 60 pud_check_dummy(*(pudp)); \
61 __pmd_offset(pudp, address); \
62 })
63
--
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:[~2026-07-08 4:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08 4:18 [davidhildenbrand:folded_pgtable 28/28] include/asm-generic/pgtable-nopmd.h:60:25: error: invalid type argument of unary '*' (have 'pud_t') 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.