From: kernel test robot <lkp@intel.com>
To: "Kiryl Shutsemau (Meta)" <kas@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [kas:pte_size 17/30] include/linux/mm.h:2269:9: error: expected ';' at end of declaration
Date: Sun, 22 Mar 2026 22:46:22 +0800 [thread overview]
Message-ID: <202603222223.z0rhzy0Y-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git pte_size
head: 3ecd2bc82d7d0382233099de8d07616df26745c4
commit: 28dbc88fd3353ba1e303dbfbd351218964beef77 [17/30] mm: Update memory model macros to support PTE_SIZE units
config: arm-randconfig-004-20260322 (https://download.01.org/0day-ci/archive/20260322/202603222223.z0rhzy0Y-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 4abb927bacf37f18f6359a41639a6d1b3bffffb5)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603222223.z0rhzy0Y-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/202603222223.z0rhzy0Y-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm/kernel/asm-offsets.c:14:
>> include/linux/mm.h:2269:9: error: expected ';' at end of declaration
2269 | return page_to_pfn(&folio->page);
| ^
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:62:16: note: expanded from macro '__page_to_pfn'
62 | unsigned logn __ret; \
| ^
In file included from arch/arm/kernel/asm-offsets.c:14:
>> include/linux/mm.h:2269:9: error: use of undeclared identifier '__ret'
2269 | return page_to_pfn(&folio->page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:63:2: note: expanded from macro '__page_to_pfn'
63 | __ret = (unsigned long)(__pg - \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
>> include/linux/mm.h:2269:9: error: use of undeclared identifier '__ret'
2269 | return page_to_pfn(&folio->page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:65:16: note: expanded from macro '__page_to_pfn'
65 | PAGES_TO_PTES(__ret) \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2290:17: error: expected ';' at end of declaration
2290 | return pfn_pte(page_to_pfn(page) + off, pgprot);
| ^
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:62:16: note: expanded from macro '__page_to_pfn'
62 | unsigned logn __ret; \
| ^
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2290:17: error: use of undeclared identifier '__ret'
2290 | return pfn_pte(page_to_pfn(page) + off, pgprot);
| ^~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:63:2: note: expanded from macro '__page_to_pfn'
63 | __ret = (unsigned long)(__pg - \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2290:17: error: use of undeclared identifier '__ret'
2290 | return pfn_pte(page_to_pfn(page) + off, pgprot);
| ^~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:65:16: note: expanded from macro '__page_to_pfn'
65 | PAGES_TO_PTES(__ret) \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2433:21: error: expected ';' at end of declaration
2433 | return is_zero_pfn(page_to_pfn(page));
| ^
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:62:16: note: expanded from macro '__page_to_pfn'
62 | unsigned logn __ret; \
| ^
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2433:21: error: use of undeclared identifier '__ret'
2433 | return is_zero_pfn(page_to_pfn(page));
| ^~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:63:2: note: expanded from macro '__page_to_pfn'
63 | __ret = (unsigned long)(__pg - \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2433:21: error: use of undeclared identifier '__ret'
2433 | return is_zero_pfn(page_to_pfn(page));
| ^~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:65:16: note: expanded from macro '__page_to_pfn'
65 | PAGES_TO_PTES(__ret) \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2766:9: error: expected ';' at end of declaration
2766 | return page_to_virt(page);
| ^
include/linux/mm.h:121:39: note: expanded from macro 'page_to_virt'
121 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:62:16: note: expanded from macro '__page_to_pfn'
62 | unsigned logn __ret; \
| ^
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2766:9: error: use of undeclared identifier '__ret'
2766 | return page_to_virt(page);
| ^~~~~~~~~~~~~~~~~~
include/linux/mm.h:121:39: note: expanded from macro 'page_to_virt'
121 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:63:2: note: expanded from macro '__page_to_pfn'
63 | __ret = (unsigned long)(__pg - \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:14:
include/linux/mm.h:2766:9: error: use of undeclared identifier '__ret'
2766 | return page_to_virt(page);
| ^~~~~~~~~~~~~~~~~~
include/linux/mm.h:121:39: note: expanded from macro 'page_to_virt'
121 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:65:16: note: expanded from macro '__page_to_pfn'
65 | PAGES_TO_PTES(__ret) \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:15:
In file included from include/linux/dma-mapping.h:8:
>> include/linux/scatterlist.h:412:9: error: expected ';' at end of declaration
412 | return page_to_phys(sg_page(sg)) + sg->offset;
| ^
include/asm-generic/memory_model.h:93:37: note: expanded from macro 'page_to_phys'
93 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:62:16: note: expanded from macro '__page_to_pfn'
62 | unsigned logn __ret; \
| ^
In file included from arch/arm/kernel/asm-offsets.c:15:
In file included from include/linux/dma-mapping.h:8:
>> include/linux/scatterlist.h:412:9: error: use of undeclared identifier '__ret'
412 | return page_to_phys(sg_page(sg)) + sg->offset;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:93:37: note: expanded from macro 'page_to_phys'
93 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:63:2: note: expanded from macro '__page_to_pfn'
63 | __ret = (unsigned long)(__pg - \
| ^~~~~
In file included from arch/arm/kernel/asm-offsets.c:15:
In file included from include/linux/dma-mapping.h:8:
>> include/linux/scatterlist.h:412:9: error: use of undeclared identifier '__ret'
412 | return page_to_phys(sg_page(sg)) + sg->offset;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:93:37: note: expanded from macro 'page_to_phys'
93 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: expanded from macro 'page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^
include/asm-generic/memory_model.h:65:16: note: expanded from macro '__page_to_pfn'
65 | PAGES_TO_PTES(__ret) \
| ^~~~~
15 errors generated.
make[3]: *** [scripts/Makefile.build:184: arch/arm/kernel/asm-offsets.s] Error 1 shuffle=2486654988
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1333: prepare0] Error 2 shuffle=2486654988
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2486654988
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=2486654988
make: Target 'prepare' not remade because of errors.
vim +2269 include/linux/mm.h
d41dee369bff3b Andy Whitcroft 2005-06-23 2257
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2258) /**
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2259) * folio_pfn - Return the Page Frame Number of a folio.
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2260) * @folio: The folio.
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2261) *
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2262) * A folio may contain multiple pages. The pages have consecutive
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2263) * Page Frame Numbers.
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2264) *
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2265) * Return: The Page Frame Number of the first page in the folio.
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2266) */
f7470591f8db1a Matthew Wilcox (Oracle 2024-10-05 2267) static inline unsigned long folio_pfn(const struct folio *folio)
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2268) {
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 @2269) return page_to_pfn(&folio->page);
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2270) }
bf6bd276b374d4 Matthew Wilcox (Oracle 2021-05-07 2271)
:::::: The code at line 2269 was first introduced by commit
:::::: bf6bd276b374d44f6e7146d52aa6097eb91384a3 mm: Add folio_pfn()
:::::: TO: Matthew Wilcox (Oracle) <willy@infradead.org>
:::::: CC: Matthew Wilcox (Oracle) <willy@infradead.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-22 14:47 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=202603222223.z0rhzy0Y-lkp@intel.com \
--to=lkp@intel.com \
--cc=kas@kernel.org \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox