lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202410231916.Wjn5HeB6-lkp@intel.com>
Date: Wed, 23 Oct 2024 20:09:25 +0800
From: kernel test robot <lkp@...el.com>
To: Dmitry Antipov <dmantipov@...dex.ru>,
	Jeff Johnson <jjohnson@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	Kalle Valo <kvalo@...nel.org>, Kees Cook <kees@...nel.org>,
	linux-hardening@...r.kernel.org, linux-wireless@...r.kernel.org,
	lvc-project@...uxtesting.org, Dmitry Antipov <dmantipov@...dex.ru>
Subject: Re: [PATCH 2/2] wifi: ath12k: annotate channel of struct
 ath12k_wmi_scan_chan_list_arg with __counted_by

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-lkp@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-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410231916.Wjn5HeB6-lkp@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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ