[reinette:resctrl/controls_rfc_v2.2 75/88] drivers/resctrl/mpam_resctrl.c:1016:19: error: 'hw_ctrl' undeclared
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git resctrl/controls_rfc_v2.2 head: e53ef7bef436e58b8b4a1ef2337330bfd8588fd4 commit: 3407e523c988cfeea969aeb210ad64b2b2cd3642 [75/88] fs/resctrl: Introduce emulated controls and control mode config: arm64-randconfig-004-20260816 (https://download.01.org/0day-ci/archive/20260816/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260816/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/resctrl/mpam_resctrl.c: In function 'mpam_resctrl_control_init': >> drivers/resctrl/mpam_resctrl.c:1016:19: error: 'hw_ctrl' undeclared (first use in this function) 1016 | INIT_LIST_HEAD(&hw_ctrl->r_ctrl.emulated_by); | ^~~~~~~ drivers/resctrl/mpam_resctrl.c:1016:19: note: each undeclared identifier is reported only once for each function it appears in vim +/hw_ctrl +1016 drivers/resctrl/mpam_resctrl.c 998 999 static int mpam_resctrl_control_init(struct mpam_resctrl_res *res) 1000 { 1001 struct mpam_class *class = res->class; 1002 struct mpam_props *cprops = &class->props; 1003 struct rdt_resource *r = &res->resctrl_res; 1004 struct mpam_resctrl_ctrl *mpam_ctrl; 1005 1006 mpam_ctrl = kzalloc_obj(*mpam_ctrl); 1007 if (!mpam_ctrl) 1008 return -ENOMEM; 1009 1010 switch (r->rid) { 1011 case RDT_RESOURCE_L2: 1012 case RDT_RESOURCE_L3: 1013 mpam_ctrl->r_ctrl.type = RESCTRL_CTRL_BITMAP; 1014 mpam_ctrl->r_ctrl.name = RESCTRL_CTRL_NAME_DEF; 1015 INIT_LIST_HEAD_RCU(&mpam_ctrl->r_ctrl.domains); > 1016 INIT_LIST_HEAD(&hw_ctrl->r_ctrl.emulated_by); 1017 __set_bit(RESCTRL_BITMAP_FLAG_SPARSE, mpam_ctrl->r_ctrl.bitmap.flags); 1018 mpam_ctrl->r_ctrl.bitmap.cbm_len = class->props.cpbm_wd; 1019 /* mpam_devices will reject empty bitmaps */ 1020 mpam_ctrl->r_ctrl.bitmap.min_cbm_bits = 1; 1021 1022 if (r->rid == RDT_RESOURCE_L2) { 1023 r->name = "L2"; 1024 r->ctrl_scope = RESCTRL_L2_CACHE; 1025 r->cdp_capable = true; 1026 } else { 1027 r->name = "L3"; 1028 r->ctrl_scope = RESCTRL_L3_CACHE; 1029 r->cdp_capable = true; 1030 } 1031 1032 /* 1033 * Which bits are shared with other ...things... Unknown 1034 * devices use partid-0 which uses all the bitmap fields. Until 1035 * we have configured the SMMU and GIC not to do this 'all the 1036 * bits' is the correct answer here. 1037 */ 1038 mpam_ctrl->r_ctrl.bitmap.shareable_bits = resctrl_get_default_ctrlval(&mpam_ctrl->r_ctrl); 1039 list_add(&mpam_ctrl->r_ctrl.entry, &r->controls); 1040 r->alloc_capable = true; 1041 break; 1042 case RDT_RESOURCE_MBA: 1043 r->ctrl_scope = RESCTRL_L3_CACHE; 1044 mpam_ctrl->r_ctrl.type = RESCTRL_CTRL_SCALAR; 1045 mpam_ctrl->r_ctrl.name = RESCTRL_CTRL_NAME_DEF; 1046 INIT_LIST_HEAD_RCU(&mpam_ctrl->r_ctrl.domains); 1047 INIT_LIST_HEAD(&hw_ctrl->r_ctrl.emulated_by); 1048 1049 r->bw_throttle_mode = THREAD_THROTTLE_UNDEFINED; 1050 __set_bit(RESCTRL_SCALAR_FLAG_LINEAR, mpam_ctrl->r_ctrl.scalar.flags); 1051 mpam_ctrl->r_ctrl.scalar.min = get_mba_min(cprops); 1052 mpam_ctrl->r_ctrl.scalar.max = MAX_MBA_BW; 1053 mpam_ctrl->r_ctrl.scalar.reset_val = MAX_MBA_BW; 1054 mpam_ctrl->r_ctrl.scalar.gran = get_mba_granularity(cprops); 1055 list_add(&mpam_ctrl->r_ctrl.entry, &r->controls); 1056 1057 r->name = "MB"; 1058 r->alloc_capable = true; 1059 break; 1060 default: 1061 return -EINVAL; 1062 } 1063 1064 return 0; 1065 } 1066 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki