From: kernel test robot <lkp@intel.com>
To: Ackerley Tng <ackerleytng@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Vishal Annapurve <vannapurve@google.com>
Subject: [intel-tdx:huge_page_v3 369/499] clang diag: include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value
Date: Thu, 08 Jan 2026 00:12:29 +0800 [thread overview]
Message-ID: <202601080003.OCxHSviM-lkp@intel.com> (raw)
Hi Ackerley,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://github.com/intel/tdx.git huge_page_v3
head: deceaf0d419ad678d86b42a3f71e1a6b588163fe
commit: 51b1ab09f0ac9a5ef88c1882648453bbc8fe0274 [369/499] mm: huge_memory: Expose __split_folio_to_order
config: x86_64-randconfig-002-20260107 (https://download.01.org/0day-ci/archive/20260108/202601080003.OCxHSviM-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260108/202601080003.OCxHSviM-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/202601080003.OCxHSviM-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> clang diag: include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
--
>> clang diag: include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
>> clang diag: include/linux/huge_mm.h:574:6: warning: no previous prototype for function '__split_folio_to_order' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1172:5: warning: no previous prototype for function 'mem_cgroup_hugetlb_try_charge' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1178:6: warning: no previous prototype for function 'mem_cgroup_commit_charge' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1182:6: warning: no previous prototype for function 'mem_cgroup_cancel_charge' [-Wmissing-prototypes]
--
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:21:
In file included from include/linux/mm.h:1081:
include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
576 | return 0;
| ^ ~
include/linux/huge_mm.h:574:6: warning: no previous prototype for function '__split_folio_to_order' [-Wmissing-prototypes]
574 | void __split_folio_to_order(struct folio *folio, int old_order, int new_order)
| ^
include/linux/huge_mm.h:574:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
574 | void __split_folio_to_order(struct folio *folio, int old_order, int new_order)
| ^
| static
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
include/linux/memcontrol.h:1172:5: warning: no previous prototype for function 'mem_cgroup_hugetlb_try_charge' [-Wmissing-prototypes]
1172 | int mem_cgroup_hugetlb_try_charge(struct mem_cgroup *memcg, gfp_t gfp,
| ^
include/linux/memcontrol.h:1172:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1172 | int mem_cgroup_hugetlb_try_charge(struct mem_cgroup *memcg, gfp_t gfp,
| ^
| static
include/linux/memcontrol.h:1178:6: warning: no previous prototype for function 'mem_cgroup_commit_charge' [-Wmissing-prototypes]
1178 | void mem_cgroup_commit_charge(struct folio *folio, struct mem_cgroup *memcg)
| ^
include/linux/memcontrol.h:1178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1178 | void mem_cgroup_commit_charge(struct folio *folio, struct mem_cgroup *memcg)
| ^
| static
include/linux/memcontrol.h:1182:6: warning: no previous prototype for function 'mem_cgroup_cancel_charge' [-Wmissing-prototypes]
1182 | void mem_cgroup_cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
| ^
include/linux/memcontrol.h:1182:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1182 | void mem_cgroup_cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
| ^
| static
5 warnings generated.
In file included from kernel/sched/rq-offsets.c:5:
In file included from kernel/sched/sched.h:46:
In file included from include/linux/mm.h:1081:
include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
576 | return 0;
| ^ ~
include/linux/huge_mm.h:574:6: warning: no previous prototype for function '__split_folio_to_order' [-Wmissing-prototypes]
574 | void __split_folio_to_order(struct folio *folio, int old_order, int new_order)
| ^
include/linux/huge_mm.h:574:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
574 | void __split_folio_to_order(struct folio *folio, int old_order, int new_order)
| ^
| static
In file included from kernel/sched/rq-offsets.c:5:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:95:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:53:
In file included from include/linux/security.h:35:
In file included from include/linux/bpf.h:32:
include/linux/memcontrol.h:1172:5: warning: no previous prototype for function 'mem_cgroup_hugetlb_try_charge' [-Wmissing-prototypes]
1172 | int mem_cgroup_hugetlb_try_charge(struct mem_cgroup *memcg, gfp_t gfp,
| ^
include/linux/memcontrol.h:1172:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1172 | int mem_cgroup_hugetlb_try_charge(struct mem_cgroup *memcg, gfp_t gfp,
| ^
| static
include/linux/memcontrol.h:1178:6: warning: no previous prototype for function 'mem_cgroup_commit_charge' [-Wmissing-prototypes]
1178 | void mem_cgroup_commit_charge(struct folio *folio, struct mem_cgroup *memcg)
| ^
include/linux/memcontrol.h:1178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1178 | void mem_cgroup_commit_charge(struct folio *folio, struct mem_cgroup *memcg)
| ^
| static
include/linux/memcontrol.h:1182:6: warning: no previous prototype for function 'mem_cgroup_cancel_charge' [-Wmissing-prototypes]
1182 | void mem_cgroup_cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
| ^
include/linux/memcontrol.h:1182:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1182 | void mem_cgroup_cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages)
| ^
| static
5 warnings generated.
llvm-nm: error: rust/helpers/helpers.o: No such file or directory
>> clang diag: include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
>> clang diag: include/linux/huge_mm.h:574:6: warning: no previous prototype for function '__split_folio_to_order' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1172:5: warning: no previous prototype for function 'mem_cgroup_hugetlb_try_charge' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1178:6: warning: no previous prototype for function 'mem_cgroup_commit_charge' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1182:6: warning: no previous prototype for function 'mem_cgroup_cancel_charge' [-Wmissing-prototypes]
>> clang diag: include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
>> clang diag: include/linux/huge_mm.h:576:2: warning: void function '__split_folio_to_order' should not return a value [-Wreturn-mismatch]
>> clang diag: include/linux/huge_mm.h:574:6: warning: no previous prototype for function '__split_folio_to_order' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1172:5: warning: no previous prototype for function 'mem_cgroup_hugetlb_try_charge' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1178:6: warning: no previous prototype for function 'mem_cgroup_commit_charge' [-Wmissing-prototypes]
clang diag: include/linux/memcontrol.h:1182:6: warning: no previous prototype for function 'mem_cgroup_cancel_charge' [-Wmissing-prototypes]
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-01-07 16:13 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=202601080003.OCxHSviM-lkp@intel.com \
--to=lkp@intel.com \
--cc=ackerleytng@google.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=vannapurve@google.com \
/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