From: kernel test robot <lkp@intel.com>
To: "Alex Shi (Tencent)" <alexs@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [alexshi:mmunstable 42/42] include/linux/mm.h:3025:21: error: call to undeclared function 'pmd_page'; ISO C99 and later do not support implicit function declarations
Date: Mon, 22 Jul 2024 14:23:55 +0800 [thread overview]
Message-ID: <202407221405.tQX5kQ8V-lkp@intel.com> (raw)
tree: https://github.com/alexshi/linux.git mmunstable
head: 0dc6582fabc5dcd9239957e6e6501344fd99714a
commit: 0dc6582fabc5dcd9239957e6e6501344fd99714a [42/42] mm/pgtable: prepare for pte_free_defer and its caller callee
config: arm-randconfig-002-20240722 (https://download.01.org/0day-ci/archive/20240722/202407221405.tQX5kQ8V-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad154281230d83ee551e12d5be48bb956ef47ed3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240722/202407221405.tQX5kQ8V-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/202407221405.tQX5kQ8V-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm/kernel/asm-offsets.c:12:
In file included from include/linux/mm.h:2221:
include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from arch/arm/kernel/asm-offsets.c:12:
include/linux/mm.h:3019:25: error: use of undeclared identifier 'PTRS_PER_PMD'
3019 | unsigned long mask = ~(PTRS_PER_PMD * sizeof(pmd_t) - 1);
| ^
>> include/linux/mm.h:3025:21: error: call to undeclared function 'pmd_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3025 | return page_ptdesc(pmd_page(*pmd));
| ^
include/linux/mm.h:3025:21: note: did you mean 'put_page'?
include/linux/mm.h:1541:20: note: 'put_page' declared here
1541 | static inline void put_page(struct page *page)
| ^
>> include/linux/mm.h:3025:21: error: controlling expression type 'int' not compatible with any generic association type
3025 | return page_ptdesc(pmd_page(*pmd));
| ^~~~~~~~~~~~~~
include/linux/mm_types.h:510:37: note: expanded from macro 'page_ptdesc'
510 | #define page_ptdesc(p) (_Generic((p), \
| ^
1 warning and 3 errors generated.
make[3]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1 shuffle=979059129
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1208: prepare0] Error 2 shuffle=979059129
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:240: __sub-make] Error 2 shuffle=979059129
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:240: __sub-make] Error 2 shuffle=979059129
make: Target 'prepare' not remade because of errors.
vim +/pmd_page +3025 include/linux/mm.h
3022
3023 static inline struct ptdesc *pmd_ptdesc(pmd_t *pmd)
3024 {
> 3025 return page_ptdesc(pmd_page(*pmd));
3026 }
3027
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-07-22 6:24 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=202407221405.tQX5kQ8V-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexs@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