All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:folded_pgtable 28/28] include/asm-generic/pgtable-nopmd.h:60:25: error: invalid type argument of unary '*' (have 'pud_t')
Date: Wed, 08 Jul 2026 12:18:57 +0800	[thread overview]
Message-ID: <202607081246.Z9NhVAt6-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-08  4:19 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=202607081246.Z9NhVAt6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=david@kernel.org \
    --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 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.