* [kas:pte_size 14/16] include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
@ 2026-02-13 12:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-13 12:06 UTC (permalink / raw)
To: Kiryl Shutsemau; +Cc: oe-kbuild-all
Hi Kiryl,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git pte_size
head: f562d70c53ccc0213b4afbf20fc312d85f9972bb
commit: 2821e424a84cabe5f937347a2f1d6f6d69e995d3 [14/16] treewide: The rest of the owl
config: sh-allnoconfig (https://download.01.org/0day-ci/archive/20260213/202602132017.Ac6QZFTU-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260213/202602132017.Ac6QZFTU-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/202602132017.Ac6QZFTU-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/sh/include/asm/thread_info.h:13,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/sh/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from arch/sh/kernel/asm-offsets.c:14:
arch/sh/include/asm/page.h:13:9: warning: 'PTE_MASK' redefined
13 | #define PTE_MASK PAGE_MASK
| ^~~~~~~~
In file included from arch/sh/include/asm/page.h:11:
include/vdso/page.h:26:9: note: this is the location of the previous definition
26 | #define PTE_MASK (~((1 << CONFIG_PTE_SHIFT) - 1))
| ^~~~~~~~
In file included from arch/sh/include/asm/pgtable.h:15,
from include/linux/pgtable.h:6,
from include/linux/mm.h:31:
arch/sh/include/asm/pgtable-2level.h:15:9: warning: 'PTE_SHIFT' redefined
15 | #define PTE_SHIFT PAGE_SHIFT
| ^~~~~~~~~
include/vdso/page.h:13:9: note: this is the location of the previous definition
13 | #define PTE_SHIFT CONFIG_PTE_SHIFT
| ^~~~~~~~~
In file included from arch/sh/include/asm/page.h:160:
include/linux/mm.h: In function 'folio_pfn':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1789:16: note: in expansion of macro 'page_to_pfn'
1789 | return page_to_pfn(&folio->page);
| ^~~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1789:16: note: in expansion of macro 'page_to_pfn'
1789 | return page_to_pfn(&folio->page);
| ^~~~~~~~~~~
include/asm-generic/memory_model.h:62:23: note: each undeclared identifier is reported only once for each function it appears in
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1789:16: note: in expansion of macro 'page_to_pfn'
1789 | return page_to_pfn(&folio->page);
| ^~~~~~~~~~~
>> include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1789:16: note: in expansion of macro 'page_to_pfn'
1789 | return page_to_pfn(&folio->page);
| ^~~~~~~~~~~
include/linux/mm.h: In function 'is_zero_page':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1948:28: note: in expansion of macro 'page_to_pfn'
1948 | return is_zero_pfn(page_to_pfn(page));
| ^~~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1948:28: note: in expansion of macro 'page_to_pfn'
1948 | return is_zero_pfn(page_to_pfn(page));
| ^~~~~~~~~~~
>> include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:1948:28: note: in expansion of macro 'page_to_pfn'
1948 | return is_zero_pfn(page_to_pfn(page));
| ^~~~~~~~~~~
include/linux/mm.h: In function 'folio_next':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/mm.h:2070:32: note: in expansion of macro 'folio_page'
2070 | return (struct folio *)folio_page(folio, folio_nr_pages(folio));
| ^~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/mm.h:2070:32: note: in expansion of macro 'folio_page'
2070 | return (struct folio *)folio_page(folio, folio_nr_pages(folio));
| ^~~~~~~~~~
>> include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/mm.h:2070:32: note: in expansion of macro 'folio_page'
2070 | return (struct folio *)folio_page(folio, folio_nr_pages(folio));
| ^~~~~~~~~~
include/linux/mm.h: In function 'lowmem_page_address':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
arch/sh/include/asm/page.h:126:27: note: in definition of macro '___va'
126 | #define ___va(x) ((x)+PAGE_OFFSET)
| ^
include/linux/mm.h:105:25: note: in expansion of macro '__va'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~
include/linux/mm.h:105:30: note: in expansion of macro 'PFN_PHYS'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:105:39: note: in expansion of macro 'page_to_pfn'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~
include/linux/mm.h:2258:16: note: in expansion of macro 'page_to_virt'
2258 | return page_to_virt(page);
| ^~~~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
arch/sh/include/asm/page.h:126:27: note: in definition of macro '___va'
126 | #define ___va(x) ((x)+PAGE_OFFSET)
| ^
include/linux/mm.h:105:25: note: in expansion of macro '__va'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~
include/linux/mm.h:105:30: note: in expansion of macro 'PFN_PHYS'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:105:39: note: in expansion of macro 'page_to_pfn'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~
include/linux/mm.h:2258:16: note: in expansion of macro 'page_to_virt'
2258 | return page_to_virt(page);
| ^~~~~~~~~~~~
>> include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
arch/sh/include/asm/page.h:126:27: note: in definition of macro '___va'
126 | #define ___va(x) ((x)+PAGE_OFFSET)
| ^
include/linux/mm.h:105:25: note: in expansion of macro '__va'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~
include/linux/mm.h:105:30: note: in expansion of macro 'PFN_PHYS'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:105:39: note: in expansion of macro 'page_to_pfn'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~
include/linux/mm.h:2258:16: note: in expansion of macro 'page_to_virt'
2258 | return page_to_virt(page);
| ^~~~~~~~~~~~
include/linux/mm.h: In function 'ptdesc_to_virt':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
arch/sh/include/asm/page.h:126:27: note: in definition of macro '___va'
126 | #define ___va(x) ((x)+PAGE_OFFSET)
| ^
include/linux/mm.h:105:25: note: in expansion of macro '__va'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~
include/linux/mm.h:105:30: note: in expansion of macro 'PFN_PHYS'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:105:39: note: in expansion of macro 'page_to_pfn'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~
include/linux/mm.h:2884:16: note: in expansion of macro 'page_to_virt'
2884 | return page_to_virt(ptdesc_page(pt));
| ^~~~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
arch/sh/include/asm/page.h:126:27: note: in definition of macro '___va'
126 | #define ___va(x) ((x)+PAGE_OFFSET)
| ^
include/linux/mm.h:105:25: note: in expansion of macro '__va'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~
include/linux/mm.h:105:30: note: in expansion of macro 'PFN_PHYS'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:105:39: note: in expansion of macro 'page_to_pfn'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~
include/linux/mm.h:2884:16: note: in expansion of macro 'page_to_virt'
2884 | return page_to_virt(ptdesc_page(pt));
| ^~~~~~~~~~~~
>> include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
arch/sh/include/asm/page.h:126:27: note: in definition of macro '___va'
126 | #define ___va(x) ((x)+PAGE_OFFSET)
| ^
include/linux/mm.h:105:25: note: in expansion of macro '__va'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~
include/linux/mm.h:105:30: note: in expansion of macro 'PFN_PHYS'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:105:39: note: in expansion of macro 'page_to_pfn'
105 | #define page_to_virt(x) __va(PFN_PHYS(page_to_pfn(x)))
| ^~~~~~~~~~~
include/linux/mm.h:2884:16: note: in expansion of macro 'page_to_virt'
2884 | return page_to_virt(ptdesc_page(pt));
| ^~~~~~~~~~~~
include/linux/bvec.h: In function 'bvec_set_folio':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/bvec.h:65:27: note: in expansion of macro 'folio_page'
65 | bvec_set_page(bv, folio_page(folio, nr), len, offset % PG_SIZE);
| ^~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/bvec.h:65:27: note: in expansion of macro 'folio_page'
65 | bvec_set_page(bv, folio_page(folio, nr), len, offset % PG_SIZE);
| ^~~~~~~~~~
>> include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/bvec.h:65:27: note: in expansion of macro 'folio_page'
65 | bvec_set_page(bv, folio_page(folio, nr), len, offset % PG_SIZE);
| ^~~~~~~~~~
In file included from include/asm-generic/memory_model.h:5:
include/linux/bvec.h: In function 'bvec_phys':
>> include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/linux/pfn.h:12:40: note: in definition of macro 'PFN_PHYS'
12 | #define PFN_PHYS(x) ((phys_addr_t)(x) << PTE_SHIFT)
| ^
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/asm-generic/memory_model.h:93:42: note: in expansion of macro 'page_to_pfn'
93 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~~~~
include/linux/bvec.h:298:16: note: in expansion of macro 'page_to_phys'
298 | return page_to_phys(bvec->bv_page) + bvec->bv_offset;
| ^~~~~~~~~~~~
>> include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
include/linux/pfn.h:12:40: note: in definition of macro 'PFN_PHYS'
12 | #define PFN_PHYS(x) ((phys_addr_t)(x) << PTE_SHIFT)
| ^
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/asm-generic/memory_model.h:93:42: note: in expansion of macro 'page_to_pfn'
93 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~~~~
include/linux/bvec.h:298:16: note: in expansion of macro 'page_to_phys'
298 | return page_to_phys(bvec->bv_page) + bvec->bv_offset;
| ^~~~~~~~~~~~
include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
include/linux/pfn.h:12:40: note: in definition of macro 'PFN_PHYS'
12 | #define PFN_PHYS(x) ((phys_addr_t)(x) << PTE_SHIFT)
| ^
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/asm-generic/memory_model.h:93:42: note: in expansion of macro 'page_to_pfn'
93 | #define page_to_phys(page) PFN_PHYS(page_to_pfn(page))
| ^~~~~~~~~~~
include/linux/bvec.h:298:16: note: in expansion of macro 'page_to_phys'
298 | return page_to_phys(bvec->bv_page) + bvec->bv_offset;
| ^~~~~~~~~~~~
include/linux/pagemap.h: In function 'folio_file_page':
include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/pagemap.h:948:16: note: in expansion of macro 'folio_page'
948 | return folio_page(folio, index & (folio_nr_pages(folio) - 1));
| ^~~~~~~~~~
include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/pagemap.h:948:16: note: in expansion of macro 'folio_page'
948 | return folio_page(folio, index & (folio_nr_pages(folio) - 1));
| ^~~~~~~~~~
include/asm-generic/memory_model.h:66:1: error: expected ';' before '}' token
66 | })
| ^
include/asm-generic/memory_model.h:69:32: note: in definition of macro '__pfn_to_page'
69 | ({ unsigned long __pfn = (pfn); \
| ^~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:201:38: note: in expansion of macro 'page_to_pfn'
201 | #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
| ^~~~~~~~~~~
include/linux/page-flags.h:319:33: note: in expansion of macro 'nth_page'
319 | #define folio_page(folio, n) nth_page(&(folio)->page, n)
| ^~~~~~~~
include/linux/pagemap.h:948:16: note: in expansion of macro 'folio_page'
948 | return folio_page(folio, index & (folio_nr_pages(folio) - 1));
| ^~~~~~~~~~
include/linux/pagemap.h: In function 'page_pgoff':
include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret'
62 | unsigned logn __ret; \
| ^~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
include/linux/mm.h:202:42: note: in expansion of macro 'page_to_pfn'
202 | #define folio_page_idx(folio, p) (page_to_pfn(p) - folio_pfn(folio))
| ^~~~~~~~~~~
include/linux/pagemap.h:1012:31: note: in expansion of macro 'folio_page_idx'
1012 | return folio->index + folio_page_idx(folio, page);
| ^~~~~~~~~~~~~~
include/asm-generic/memory_model.h:62:23: error: '__ret' undeclared (first use in this function)
62 | unsigned logn __ret; \
| ^~~~~
vim +62 include/asm-generic/memory_model.h
53
54 #elif defined(CONFIG_SPARSEMEM)
55 /*
56 * Note: section's mem_map is encoded to reflect its start_pfn.
57 * section[i].section_mem_map == mem_map's address - start_pfn;
58 */
59 #define __page_to_pfn(pg) \
60 ({ const struct page *__pg = (pg); \
61 int __sec = page_to_section(__pg); \
> 62 unsigned logn __ret; \
63 __ret = (unsigned long)(__pg - \
64 __section_mem_map_addr(__nr_to_section(__sec))); \
65 PAGES_TO_PTES(__ret) \
> 66 })
67
--
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:[~2026-02-13 12:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-13 12:06 [kas:pte_size 14/16] include/asm-generic/memory_model.h:62:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ret' 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.