tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: bafa65a8c91fb9c99706d2d22210690199f95779 commit: 273a0966b93355cd69473db4ab13e2f727623a0e [1231/1231] mpam: update monitor rmid and group configuration config: arm64-randconfig-001-20241029 (https://download.01.org/0day-ci/archive/20241107/202411071854.JMBS7gBz-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241107/202411071854.JMBS7gBz-lkp@i...)
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/202411071854.JMBS7gBz-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kernel/mpam/mpam_ctrlmon.c:596:5: warning: no previous prototype for 'resctrl_group_mondata_show' [-Wmissing-prototypes] 596 | int resctrl_group_mondata_show(struct seq_file *m, void *arg) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kernel/mpam/mpam_ctrlmon.c: In function 'resctrl_mkdir_mondata_all_subdir': arch/arm64/kernel/mpam/mpam_ctrlmon.c:786:54: warning: variable 'rr' set but not used [-Wunused-but-set-variable] 786 | struct raw_resctrl_resource *rr; | ^~
arch/arm64/kernel/mpam/mpam_ctrlmon.c:201: warning: Function parameter or member 'rdtgrp' not described in 'resctrl_group_resync_domain_ctrls' arch/arm64/kernel/mpam/mpam_ctrlmon.c:201: warning: Function parameter or member 'r' not described in 'resctrl_group_resync_domain_ctrls' arch/arm64/kernel/mpam/mpam_ctrlmon.c:201: warning: Function parameter or member 'dom' not described in 'resctrl_group_resync_domain_ctrls'
arch/arm64/kernel/mpam/mpam_ctrlmon.c:472: warning: Function parameter or member 's' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:472: warning: Function parameter or member 'r' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:472: warning: Function parameter or member 'schema_name' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:472: warning: Function parameter or member 'type' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:472: warning: Function parameter or member 'closid' not described in 'show_doms'
vim +201 arch/arm64/kernel/mpam/mpam_ctrlmon.c
191 192 /** 193 * Resync resctrl group domain ctrls, use rdtgrp->resync to indicate 194 * whether the resync procedure will be called. When resync==1, all 195 * domain ctrls of this group be synchronized again. This happens 196 * when rmid of this group is changed, and all configurations need to 197 * be remapped again accordingly. 198 */ 199 static void resctrl_group_resync_domain_ctrls(struct rdtgroup *rdtgrp, 200 struct resctrl_resource *r, struct rdt_domain *dom)
201 {
202 int i; 203 int staged_start, staged_end; 204 struct resctrl_staged_config *cfg; 205 struct sd_closid closid; 206 struct list_head *head; 207 struct rdtgroup *entry; 208 struct msr_param para; 209 bool cdp_both_ctrl; 210 211 cfg = dom->staged_cfg; 212 para.closid = &closid; 213 214 staged_start = (r->cdp_enable) ? CDP_CODE : CDP_BOTH; 215 staged_end = (r->cdp_enable) ? CDP_DATA : CDP_BOTH; 216 217 for (i = staged_start; i <= staged_end; i++) { 218 cdp_both_ctrl = cfg[i].cdp_both_ctrl; 219 /* 220 * for ctrl group configuration, hw_closid of cfg[i] equals 221 * to rdtgrp->closid.intpartid. 222 */ 223 closid.intpartid = hw_closid_val(cfg[i].hw_closid); 224 resctrl_cdp_mpamid_map_val(rdtgrp->closid.reqpartid, 225 cfg[i].conf_type, closid.reqpartid); 226 resctrl_dom_ctrl_config(cdp_both_ctrl, r, dom, ¶); 227 228 /* 229 * we should synchronize all child mon groups' 230 * configuration from this ctrl rdtgrp 231 */ 232 head = &rdtgrp->mon.crdtgrp_list; 233 list_for_each_entry(entry, head, mon.crdtgrp_list) { 234 resctrl_cdp_mpamid_map_val(entry->closid.reqpartid, 235 cfg[i].conf_type, closid.reqpartid); 236 resctrl_dom_ctrl_config(cdp_both_ctrl, r, dom, ¶); 237 } 238 } 239 } 240