From: kernel test robot <lkp@intel.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Fri, 14 Feb 2025 20:24:50 +0800 [thread overview]
Message-ID: <202502142049.EqSuSt3B-lkp@intel.com> (raw)
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
reply other threads:[~2025-02-14 12:25 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=202502142049.EqSuSt3B-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=willy@infradead.org \
/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.