tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: e33ed48bc600febcdca9e71e43cf224934dadc4f commit: 6892e52d6ed229b7973aae9e1e98819867c34dd7 [1231/1231] arm64/mpam: Split header files into suitable location config: arm64-randconfig-001-20241029 (https://download.01.org/0day-ci/archive/20241106/202411062351.mcuwA9ll-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241106/202411062351.mcuwA9ll-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/202411062351.mcuwA9ll-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/arm64/kernel/mpam/mpam_ctrlmon.c: In function 'add_schema': arch/arm64/kernel/mpam/mpam_ctrlmon.c:54:37: warning: variable 'sc_hdl' set but not used [-Wunused-but-set-variable] 54 | struct resctrl_schema_ctrl *sc_hdl = NULL; | ^~~~~~ arch/arm64/kernel/mpam/mpam_ctrlmon.c:53:37: warning: variable 'sc_pri' set but not used [-Wunused-but-set-variable] 53 | struct resctrl_schema_ctrl *sc_pri = NULL; | ^~~~~~ arch/arm64/kernel/mpam/mpam_ctrlmon.c: At top level:
arch/arm64/kernel/mpam/mpam_ctrlmon.c:560:5: warning: no previous prototype for 'resctrl_group_mondata_show' [-Wmissing-prototypes]
560 | 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:745:54: warning: variable 'rr' set but not used [-Wunused-but-set-variable] 745 | struct raw_resctrl_resource *rr; | ^~ arch/arm64/kernel/mpam/mpam_ctrlmon.c:430: warning: Function parameter or member 's' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:430: warning: Function parameter or member 'r' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:430: warning: Function parameter or member 'schema_name' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:430: warning: Function parameter or member 'type' not described in 'show_doms' arch/arm64/kernel/mpam/mpam_ctrlmon.c:430: warning: Function parameter or member 'closid' not described in 'show_doms'
vim +/resctrl_group_mondata_show +560 arch/arm64/kernel/mpam/mpam_ctrlmon.c
d157854c756daf4 arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 559 b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 @560 int resctrl_group_mondata_show(struct seq_file *m, void *arg) b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 561 { b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 562 struct kernfs_open_file *of = m->private; b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 563 struct rdtgroup *rdtgrp; 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 564 struct rdt_domain *d; 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 565 struct resctrl_resource *r; f2a58a19ec564be arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 566 union mon_data_bits md; b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 567 int ret = 0; 0f4c524c39b330a arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 568 char *resname = get_resource_name(kernfs_node_name(of)); 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 569 u64 usage; 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 570 int pmg; 0f4c524c39b330a arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 571 0f4c524c39b330a arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 572 if (!resname) 0f4c524c39b330a arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 573 return -ENOMEM; b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 574 b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 575 rdtgrp = resctrl_group_kn_lock_live(of->kn); 0bf8b142ee73268 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 576 if (!rdtgrp) { 14405c9eb792d93 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-04-28 577 ret = -ENOENT; 14405c9eb792d93 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-04-28 578 goto out; 0bf8b142ee73268 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 579 } b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 580 f2a58a19ec564be arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 581 md.priv = of->kn->priv; b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 582 344e656b7d90e2c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 583 r = mpam_resctrl_get_resource(md.u.rid); 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 584 b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 585 /* show monitor data */ 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 586 d = mpam_find_domain(r, md.u.domid, NULL); 14405c9eb792d93 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-04-28 587 if (IS_ERR_OR_NULL(d)) { 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 588 pr_warn("Could't find domain id %d\n", md.u.domid); 14405c9eb792d93 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-04-28 589 ret = -ENOENT; 14405c9eb792d93 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-04-28 590 goto out; 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 591 } 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 592 d157854c756daf4 arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 593 usage = resctrl_dom_mon_data(r, d, md.priv); d157854c756daf4 arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 594 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 595 /* 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 596 * if this rdtgroup is ctrlmon group, also collect it's 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 597 * mon groups' monitor data. 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 598 */ 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 599 if (rdtgrp->type == RDTCTRL_GROUP) { 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 600 struct list_head *head; 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 601 struct rdtgroup *entry; 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 602 hw_closid_t hw_closid; 0f728d63ce7a19f arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 603 hw_monid_t hw_monid; 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 604 enum resctrl_conf_type type = CDP_CODE; 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 605 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 606 resctrl_cdp_map(clos, rdtgrp->closid.reqpartid, 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 607 CDP_CODE, hw_closid); 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 608 /* CDP_CODE share the same closid with CDP_BOTH */ 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 609 if (md.u.partid != hw_closid_val(hw_closid)) 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 610 type = CDP_DATA; 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 611 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 612 head = &rdtgrp->mon.crdtgrp_list; 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 613 list_for_each_entry(entry, head, mon.crdtgrp_list) { 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 614 resctrl_cdp_map(clos, entry->closid.reqpartid, 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 615 type, hw_closid); 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 616 md.u.partid = hw_closid_val(hw_closid); 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 617 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 618 ret = mpam_rmid_to_partid_pmg(entry->mon.rmid, 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 619 NULL, &pmg); 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 620 if (ret) 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 621 return ret; 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 622 75008419705983d arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 623 md.u.pmg = pmg; 0f728d63ce7a19f arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 624 resctrl_cdp_map(mon, get_rmid_mon(entry->mon.rmid, 0f728d63ce7a19f arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 625 r->rid), type, hw_monid); 0f728d63ce7a19f arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 626 md.u.mon = hw_monid_val(hw_monid); 0f728d63ce7a19f arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 627 d157854c756daf4 arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 628 usage += resctrl_dom_mon_data(r, d, md.priv); 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 629 } 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 630 } 934c2350979693c arch/arm64/kernel/mpam/mpam_ctrlmon.c Wang ShaoBo 2021-02-24 631 594105ff55056b6 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 632 seq_printf(m, "%llu\n", usage); b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 633 14405c9eb792d93 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-04-28 634 out: 0f4c524c39b330a arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 635 put_resource_name(resname); b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 636 resctrl_group_kn_unlock(of->kn); b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 637 return ret; b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 638 } b4617397605d3b8 arch/arm64/kernel/mpam_ctrlmon.c Xie XiuQi 2019-01-29 639
:::::: The code at line 560 was first introduced by commit :::::: b4617397605d3b8842d9e39bb8921223eccc2f92 arm64/mpam: support mondata fields
:::::: TO: Xie XiuQi xiexiuqi@huawei.com :::::: CC: Xie XiuQi xiexiuqi@huawei.com