* fs/resctrl/rdtgroup.c:2883:3: error: call to undeclared function 'mon_put_kn_priv'; ISO C99 and later do not support implicit function declarations
@ 2026-05-09 16:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-09 16:09 UTC (permalink / raw)
To: Tony Luck; +Cc: llvm, oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/fs-resctrl-Free-mon_data-structures-on-rdt_get_tree-failure/20260509-184342
head: 2724c4d60ac0a492fbc45a40cdd58801960e074a
commit: 2724c4d60ac0a492fbc45a40cdd58801960e074a fs/resctrl: Free mon_data structures on rdt_get_tree() failure
date: 5 hours ago
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260509/202605091825.z9aVXL5P-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/20260509/202605091825.z9aVXL5P-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/202605091825.z9aVXL5P-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/resctrl/rdtgroup.c:2883:3: error: call to undeclared function 'mon_put_kn_priv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2883 | mon_put_kn_priv();
| ^
>> fs/resctrl/rdtgroup.c:3144:13: error: conflicting types for 'mon_put_kn_priv'
3144 | static void mon_put_kn_priv(void)
| ^
fs/resctrl/rdtgroup.c:2883:3: note: previous implicit declaration is here
2883 | mon_put_kn_priv();
| ^
2 errors generated.
vim +/mon_put_kn_priv +2883 fs/resctrl/rdtgroup.c
2784
2785 static int rdt_get_tree(struct fs_context *fc)
2786 {
2787 struct rdt_fs_context *ctx = rdt_fc2context(fc);
2788 unsigned long flags = RFTYPE_CTRL_BASE;
2789 struct rdt_l3_mon_domain *dom;
2790 struct rdt_resource *r;
2791 int ret;
2792
2793 DO_ONCE_SLEEPABLE(resctrl_arch_pre_mount);
2794
2795 cpus_read_lock();
2796 mutex_lock(&rdtgroup_mutex);
2797 /*
2798 * resctrl file system can only be mounted once.
2799 */
2800 if (resctrl_mounted) {
2801 ret = -EBUSY;
2802 goto out;
2803 }
2804
2805 ret = setup_rmid_lru_list();
2806 if (ret)
2807 goto out;
2808
2809 ret = rdtgroup_setup_root(ctx);
2810 if (ret)
2811 goto out;
2812
2813 ret = rdt_enable_ctx(ctx);
2814 if (ret)
2815 goto out_root;
2816
2817 ret = schemata_list_create();
2818 if (ret)
2819 goto out_schemata_free;
2820
2821 ret = closid_init();
2822 if (ret)
2823 goto out_schemata_free;
2824
2825 if (resctrl_arch_mon_capable())
2826 flags |= RFTYPE_MON;
2827
2828 ret = rdtgroup_add_files(rdtgroup_default.kn, flags);
2829 if (ret)
2830 goto out_closid_exit;
2831
2832 kernfs_activate(rdtgroup_default.kn);
2833
2834 ret = rdtgroup_create_info_dir(rdtgroup_default.kn);
2835 if (ret < 0)
2836 goto out_closid_exit;
2837
2838 if (resctrl_arch_mon_capable()) {
2839 ret = mongroup_create_dir(rdtgroup_default.kn,
2840 &rdtgroup_default, "mon_groups",
2841 &kn_mongrp);
2842 if (ret < 0)
2843 goto out_info;
2844
2845 rdtgroup_assign_cntrs(&rdtgroup_default);
2846
2847 ret = mkdir_mondata_all(rdtgroup_default.kn,
2848 &rdtgroup_default, &kn_mondata);
2849 if (ret < 0)
2850 goto out_mongrp;
2851 rdtgroup_default.mon.mon_data_kn = kn_mondata;
2852 }
2853
2854 ret = rdt_pseudo_lock_init();
2855 if (ret)
2856 goto out_mondata;
2857
2858 ret = kernfs_get_tree(fc);
2859 if (ret < 0)
2860 goto out_psl;
2861
2862 if (resctrl_arch_alloc_capable())
2863 resctrl_arch_enable_alloc();
2864 if (resctrl_arch_mon_capable())
2865 resctrl_arch_enable_mon();
2866
2867 if (resctrl_arch_alloc_capable() || resctrl_arch_mon_capable())
2868 resctrl_mounted = true;
2869
2870 if (resctrl_is_mbm_enabled()) {
2871 r = resctrl_arch_get_resource(RDT_RESOURCE_L3);
2872 list_for_each_entry(dom, &r->mon_domains, hdr.list)
2873 mbm_setup_overflow_handler(dom, MBM_OVERFLOW_INTERVAL,
2874 RESCTRL_PICK_ANY_CPU);
2875 }
2876
2877 goto out;
2878
2879 out_psl:
2880 rdt_pseudo_lock_release();
2881 out_mondata:
2882 if (resctrl_arch_mon_capable()) {
> 2883 mon_put_kn_priv();
2884 kernfs_remove(kn_mondata);
2885 }
2886 out_mongrp:
2887 if (resctrl_arch_mon_capable()) {
2888 rdtgroup_unassign_cntrs(&rdtgroup_default);
2889 kernfs_remove(kn_mongrp);
2890 }
2891 out_info:
2892 kernfs_remove(kn_info);
2893 out_closid_exit:
2894 closid_exit();
2895 out_schemata_free:
2896 schemata_list_destroy();
2897 rdt_disable_ctx();
2898 out_root:
2899 rdtgroup_destroy_root();
2900 out:
2901 rdt_last_cmd_clear();
2902 mutex_unlock(&rdtgroup_mutex);
2903 cpus_read_unlock();
2904 return ret;
2905 }
2906
--
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-05-09 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-09 16:09 fs/resctrl/rdtgroup.c:2883:3: error: call to undeclared function 'mon_put_kn_priv'; ISO C99 and later do not support implicit function declarations 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