tree:
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
mpam/resctrl_merge_cdp/v1
head: e0c1639ccf91b5ccc7aeb559fcf403c60309d895
commit: fcba0fa2171682e1b8cf6a1cfdddc0c5e68c322a [16/24] x86/resctrl: Add a helper to
read/set the CDP configuration
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?i...
git remote add morse
https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/resctrl_merge_cdp/v1
git checkout fcba0fa2171682e1b8cf6a1cfdddc0c5e68c322a
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/x86/kernel/cpu/resctrl/rdtgroup.c: In function 'rdt_last_cmd_printf':
arch/x86/kernel/cpu/resctrl/rdtgroup.c:77:2: warning: function
'rdt_last_cmd_printf' might be a candidate for 'gnu_printf' format
attribute [-Wsuggest-attribute=format]
77 | seq_buf_vprintf(&last_cmd_status, fmt, ap);
| ^~~~~~~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c: At top level:
> arch/x86/kernel/cpu/resctrl/rdtgroup.c:2022:5: warning: no
previous prototype for 'resctrl_arch_set_cdp_enabled' [-Wmissing-prototypes]
2022 | int resctrl_arch_set_cdp_enabled(enum resctrl_res_level l, bool enable)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/resctrl_arch_set_cdp_enabled +2022 arch/x86/kernel/cpu/resctrl/rdtgroup.c
2021
2022 int resctrl_arch_set_cdp_enabled(enum resctrl_res_level l, bool
enable)
2023 {
2024 struct rdt_hw_resource *hw_res = &rdt_resources_all[l];
2025 enum resctrl_res_level code_type, data_type;
2026
2027 if (!hw_res->cdp_capable)
2028 return -EINVAL;
2029
2030 if (l == RDT_RESOURCE_L3) {
2031 code_type = RDT_RESOURCE_L3CODE;
2032 data_type = RDT_RESOURCE_L3DATA;
2033 } else if (l == RDT_RESOURCE_L2) {
2034 code_type = RDT_RESOURCE_L2CODE;
2035 data_type = RDT_RESOURCE_L2DATA;
2036 } else {
2037 return -EINVAL;
2038 }
2039
2040 if (enable)
2041 return cdp_enable(l, data_type, code_type);
2042
2043 cdp_disable(l, data_type, code_type);
2044
2045 return 0;
2046 }
2047
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org