All of lore.kernel.org
 help / color / mirror / Atom feed
* [willy-pagecache:folio-mk-pte 10/10] include/linux/mm.h:1938:9: error: call to undeclared function 'pfn_pte'; ISO C99 and later do not support implicit function declarations
@ 2025-02-14 12:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-14 12:24 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: oe-kbuild-all

tree:   git://git.infradead.org/users/willy/pagecache folio-mk-pte
head:   67fcb49ae3b2d66d35862b2be955f193b8f204c0
commit: 67fcb49ae3b2d66d35862b2be955f193b8f204c0 [10/10] mm: Add folio_mk_pte()
config: arm-randconfig-001-20250214 (https://download.01.org/0day-ci/archive/20250214/202502142049.EqSuSt3B-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250214/202502142049.EqSuSt3B-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/202502142049.EqSuSt3B-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:1938:9: error: call to undeclared function 'pfn_pte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           return pfn_pte(folio_pfn(folio), pgprot);
                  ^
   1 error generated.
   make[3]: *** [scripts/Makefile.build:102: arch/arm/kernel/asm-offsets.s] Error 1 shuffle=1883943376
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1264: prepare0] Error 2 shuffle=1883943376
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=1883943376
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:251: __sub-make] Error 2 shuffle=1883943376
   make: Target 'prepare' not remade because of errors.


vim +/pfn_pte +1938 include/linux/mm.h

  1925	
  1926	/**
  1927	 * folio_mk_pte - Create a PTE for this folio
  1928	 * @folio: The folio to create a PTE for
  1929	 * @pgprot: The page protection bits to use
  1930	 *
  1931	 * Create a page table entry for the first page of this folio.
  1932	 * This is suitable for passing to set_ptes().
  1933	 *
  1934	 * Return: A page table entry suitable for mapping this folio.
  1935	 */
  1936	static inline pte_t folio_mk_pte(struct folio *folio, pgprot_t pgprot)
  1937	{
> 1938		return pfn_pte(folio_pfn(folio), pgprot);
  1939	}
  1940	

-- 
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-14 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 12:24 [willy-pagecache:folio-mk-pte 10/10] include/linux/mm.h:1938:9: error: call to undeclared function 'pfn_pte'; ISO C99 and later do not support implicit function declarations 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.