* [davidhildenbrand:migration 16/16] include/linux/page-flags.h:989:45: error: 'const struct page' has no member named 'type'
@ 2025-04-12 14:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-12 14:08 UTC (permalink / raw)
To: David Hildenbrand; +Cc: oe-kbuild-all
tree: https://github.com/davidhildenbrand/linux migration
head: 803af5b7e068ea5c68e5b908e799abf3f254c646
commit: 803af5b7e068ea5c68e5b908e799abf3f254c646 [16/16] tmp
config: arc-randconfig-001-20250412 (https://download.01.org/0day-ci/archive/20250412/202504122207.SBWWU5Gv-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250412/202504122207.SBWWU5Gv-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/202504122207.SBWWU5Gv-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arc/include/asm/ptrace.h:11,
from arch/arc/include/asm/processor.h:16,
from include/linux/sched.h:13,
from arch/arc/kernel/asm-offsets.c:6:
include/linux/page-flags.h: In function 'page_has_non_folio_type':
>> include/linux/page-flags.h:989:45: error: 'const struct page' has no member named 'type'
989 | const int page_type = data_race(page->type);
| ^~
include/linux/compiler.h:189:28: note: in definition of macro 'data_race'
189 | __auto_type __v = (expr); \
| ^~~~
>> include/linux/compiler.h:191:9: error: '__v' undeclared (first use in this function)
191 | __v; \
| ^~~
include/linux/page-flags.h:989:31: note: in expansion of macro 'data_race'
989 | const int page_type = data_race(page->type);
| ^~~~~~~~~
include/linux/compiler.h:191:9: note: each undeclared identifier is reported only once for each function it appears in
191 | __v; \
| ^~~
include/linux/page-flags.h:989:31: note: in expansion of macro 'data_race'
989 | const int page_type = data_race(page->type);
| ^~~~~~~~~
In file included from include/linux/mmzone.h:23,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from arch/arc/kernel/asm-offsets.c:7:
include/linux/page-flags.h: In function 'page_test_non_folio_movable':
>> include/linux/page-flags.h:1198:74: error: expected ';' before '}' token
1198 | return PageNonFolioMovable(page) && page_has_non_folio_type(page)
| ^
| ;
1199 | }
| ~
make[3]: *** [scripts/Makefile.build:98: arch/arc/kernel/asm-offsets.s] Error 1 shuffle=2434624089
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1277: prepare0] Error 2 shuffle=2434624089
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2434624089
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=2434624089
make: Target 'prepare' not remade because of errors.
vim +989 include/linux/page-flags.h
977
978 /**
979 * page_has_non_folio_type - test whether the page has a non-folio type
980 * @page: The page.
981 *
982 * Test whether the page has a non-folio type. Helpful to identify pages
983 * that might be non-folio movable.
984 *
985 * Returns true if the page has a non-folio type, otherwise false.
986 */
987 static inline bool page_has_non_folio_type(const struct page *page)
988 {
> 989 const int page_type = data_race(page->type);
990
991 return page_type_has_type(page_type) &&
992 (page_type >> 24 != PGTY_hugetlb);
993 }
994
--
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-04-12 14:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-12 14:08 [davidhildenbrand:migration 16/16] include/linux/page-flags.h:989:45: error: 'const struct page' has no member named 'type' 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.