Hi Dmitry,

kernel test robot noticed the following build errors:

[auto build test ERROR on ath/ath-next]
[also build test ERROR on wireless-next/main wireless/main linus/master 
v6.12-rc4 next-20241022]
[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/Dmitry-Antipov/wifi-ath12k-annotate-channel-of-struct-ath12k_wmi_scan_chan_list_arg-with-__counted_by/20241021-223544
base:   https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git ath-next
patch link:    
https://lore.kernel.org/r/20241021143419.587716-2-dmantipov%40yandex.ru
patch subject: [PATCH 2/2] wifi: ath12k: annotate channel of struct 
ath12k_wmi_scan_chan_list_arg with __counted_by
config: x86_64-allyesconfig 
(https://download.01.org/0day-ci/archive/20241023/202410231916.wjn5heb6-...@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 
3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20241023/202410231916.wjn5heb6-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202410231916.wjn5heb6-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/wireless/ath/ath12k/core.c:12:
   In file included from drivers/net/wireless/ath/ath12k/core.h:20:
>> drivers/net/wireless/ath/ath12k/wmi.h:3749:55: error: use of undeclared 
>> identifier 'nallchains'; did you mean 'nallchans'?
    3749 |         struct ath12k_wmi_channel_arg channel[] 
__counted_by(nallchains);
         |                                                              
^~~~~~~~~~
         |                                                              
nallchans
   include/linux/compiler_attributes.h:105:62: note: expanded from macro 
'__counted_by'
     105 | # define __counted_by(member)           
__attribute__((__counted_by__(member)))
         |                                                                      
 ^
   drivers/net/wireless/ath/ath12k/wmi.h:3748:6: note: 'nallchans' declared here
    3748 |         u16 nallchans;
         |             ^
   1 error generated.


vim +3749 drivers/net/wireless/ath/ath12k/wmi.h

  3745  
  3746  struct ath12k_wmi_scan_chan_list_arg {
  3747          u32 pdev_id;
  3748          u16 nallchans;
> 3749          struct ath12k_wmi_channel_arg channel[] 
> __counted_by(nallchains);
  3750  };
  3751  

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

Reply via email to