From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:migration 16/16] include/linux/page-flags.h:989:45: error: 'const struct page' has no member named 'type'
Date: Sat, 12 Apr 2025 22:08:23 +0800 [thread overview]
Message-ID: <202504122207.SBWWU5Gv-lkp@intel.com> (raw)
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
reply other threads:[~2025-04-12 14:09 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=202504122207.SBWWU5Gv-lkp@intel.com \
--to=lkp@intel.com \
--cc=david@redhat.com \
--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 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.