[PATCH ath-next 1/5] wifi: ath11k: determine PM policy based on machine model

kernel test robot lkp at intel.com
Thu Mar 20 15:43:31 PDT 2025


Hi Baochen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on b6f473c96421b8b451a8df8ccb620bcd71d4b3f4]

url:    https://github.com/intel-lab-lkp/linux/commits/Baochen-Qiang/wifi-ath11k-determine-PM-policy-based-on-machine-model/20250320-103536
base:   b6f473c96421b8b451a8df8ccb620bcd71d4b3f4
patch link:    https://lore.kernel.org/r/20250320023003.65028-2-quic_bqiang%40quicinc.com
patch subject: [PATCH ath-next 1/5] wifi: ath11k: determine PM policy based on machine model
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250321/202503210624.I3zealnl-lkp@intel.com/config)
compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250321/202503210624.I3zealnl-lkp@intel.com/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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503210624.I3zealnl-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/ath/ath11k/core.c:2381:19: warning: cast to smaller integer type 'enum ath11k_pm_policy' from 'void *' [-Wvoid-pointer-to-enum-cast]
    2381 |                 ab->pm_policy = (enum ath11k_pm_policy)dmi_id->driver_data;
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +2381 drivers/net/wireless/ath/ath11k/core.c

  2373	
  2374	int ath11k_core_init(struct ath11k_base *ab)
  2375	{
  2376		const struct dmi_system_id *dmi_id;
  2377		int ret;
  2378	
  2379		dmi_id = dmi_first_match(ath11k_pm_quirk_table);
  2380		if (dmi_id)
> 2381			ab->pm_policy = (enum ath11k_pm_policy)dmi_id->driver_data;
  2382		else
  2383			ab->pm_policy = ATH11K_PM_DEFAULT;
  2384	
  2385		ath11k_dbg(ab, ATH11K_DBG_BOOT, "pm policy %u\n", ab->pm_policy);
  2386	
  2387		ret = ath11k_core_soc_create(ab);
  2388		if (ret) {
  2389			ath11k_err(ab, "failed to create soc core: %d\n", ret);
  2390			return ret;
  2391		}
  2392	
  2393		return 0;
  2394	}
  2395	EXPORT_SYMBOL(ath11k_core_init);
  2396	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the ath11k mailing list