public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [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
@ 2026-01-07 16:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-07 16:12 UTC (permalink / raw)
  To: Ackerley Tng; +Cc: llvm, oe-kbuild-all, Vishal Annapurve

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-07 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-07 16:12 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox