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, Yeoreum Yun <yeoreum.yun@arm.com>
Subject: [davidhildenbrand:ptval_print 2/2] include/asm-generic/pgtable-nop4d.h:39:16: error: returning 'long unsigned int *' from a function with return type 'int' makes integer from pointer without a cast
Date: Thu, 02 Jul 2026 09:09:10 +0800	[thread overview]
Message-ID: <202607020840.w571GSuB-lkp@intel.com> (raw)

tree:   https://github.com/davidhildenbrand/linux ptval_print
head:   dc3342ef64ac75a436edc8bfec8e3826e15f0a91
commit: dc3342ef64ac75a436edc8bfec8e3826e15f0a91 [2/2] mm: optimize pmdp_get() and friends for folded pagetable levels
config: arm-randconfig-002-20260702 (https://download.01.org/0day-ci/archive/20260702/202607020840.w571GSuB-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607020840.w571GSuB-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/202607020840.w571GSuB-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/asm-generic/pgtable-nopud.h:7,
                    from arch/arm/include/asm/pgtable.h:13,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:31,
                    from arch/arm/kernel/asm-offsets.c:14:
   include/asm-generic/pgtable-nop4d.h:35:21: error: 'pgdp_get' declared as function returning an array
      35 | static inline pgd_t pgdp_get(pgd_t *p4dp)
         |                     ^~~~~~~~
   include/asm-generic/pgtable-nop4d.h: In function 'pgdp_get':
>> include/asm-generic/pgtable-nop4d.h:39:16: error: returning 'long unsigned int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
      39 |         return dummy;
         |                ^~~~~
   make[3]: *** [scripts/Makefile.build:184: arch/arm/kernel/asm-offsets.s] Error 1 shuffle=418363714
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1405: prepare0] Error 2 shuffle=418363714
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=418363714
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2 shuffle=418363714
   make: Target 'prepare' not remade because of errors.


vim +39 include/asm-generic/pgtable-nop4d.h

    34	
    35	static inline pgd_t pgdp_get(pgd_t *p4dp)
    36	{
    37		pgd_t dummy = { 0 };
    38	
  > 39		return dummy;
    40	}
    41	#define pgdp_get pgdp_get
    42	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-07-02  1:10 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=202607020840.w571GSuB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=david@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yeoreum.yun@arm.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 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.