Hi Nuno, kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master] [also build test WARNING on v6.18-rc3 next-20251031] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Nuno-Das-Neves/mshv-Extend-create-partition-ioctl-to-support-cpu-features/20251031-054134 base: linus/master patch link: https://lore.kernel.org/r/1761860431-11208-1-git-send-email-nunodasneves%40linux.microsoft.com patch subject: [PATCH v2] mshv: Extend create partition ioctl to support cpu features config: arm64-randconfig-001-20251102 (https://download.01.org/0day-ci/archive/20251102/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d2625a438020ad35330cda29c3def102c1687b1b) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251102/[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 warnings (new ones prefixed by >>): >> drivers/hv/mshv_root_main.c:1875:47: warning: unused variable >> 'disabled_xsave' [-Wunused-variable] 1875 | union hv_partition_processor_xsave_features *disabled_xsave; | ^~~~~~~~~~~~~~ 1 warning generated. vim +/disabled_xsave +1875 drivers/hv/mshv_root_main.c 1864 1865 static_assert(MSHV_NUM_CPU_FEATURES_BANKS <= 1866 HV_PARTITION_PROCESSOR_FEATURES_BANKS); 1867 1868 static long mshv_ioctl_process_pt_flags(void __user *user_arg, u64 *pt_flags, 1869 struct hv_partition_creation_properties *cr_props, 1870 union hv_partition_isolation_properties *isol_props) 1871 { 1872 int i; 1873 struct mshv_create_partition_v2 args; 1874 union hv_partition_processor_features *disabled_procs; > 1875 union hv_partition_processor_xsave_features *disabled_xsave; 1876 1877 /* First, copy orig struct in case user is on previous versions */ 1878 if (copy_from_user(&args, user_arg, 1879 sizeof(struct mshv_create_partition))) 1880 return -EFAULT; 1881 1882 if ((args.pt_flags & ~MSHV_PT_FLAGS_MASK) || 1883 args.pt_isolation >= MSHV_PT_ISOLATION_COUNT) 1884 return -EINVAL; 1885 1886 disabled_procs = &cr_props->disabled_processor_features; 1887 1888 /* Disable all processor features first */ 1889 for (i = 0; i < HV_PARTITION_PROCESSOR_FEATURES_BANKS; i++) 1890 disabled_procs->as_uint64[i] = -1; 1891 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
