From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5150D14659B for ; Sat, 14 Sep 2024 13:37:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726321025; cv=none; b=mPYF/O3ks6ldXv2YzK6aOHztK2bX7U2kAsYLXm7tJI9eL9Nsf9eZNy5AELy9OeBLKKXFO4GNJUilSGyjHZ22zv7cuevsSgYWzPJvvFJICgYQBIto2tZ8OeGA5fQdSWluJLlDps7XOmNhngAhHainQWHOR5hoVc5vwtixOaqFaIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726321025; c=relaxed/simple; bh=mZZoSkk7t3hKDVlOYlPSQH31oO6NrGfwJNlrezjjVyg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=uIyD0fF6C1wtocPUEmshHgM8aeFpRuMyH22Wezt4YRMKBBdhsateTNe73Zlj88dBi69XsdhK19sjGXbLI4AkFBvKBPUYSLRtEroddJBgkMzb0vhTsHrTxClYUjzSB+LHh8wTWx+8cW3F6+V8arE/mZlWqd1bob9Mni/vodm0NC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=T0/EhIKY; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="T0/EhIKY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726321023; x=1757857023; h=date:from:to:cc:subject:message-id:mime-version; bh=mZZoSkk7t3hKDVlOYlPSQH31oO6NrGfwJNlrezjjVyg=; b=T0/EhIKYBpC+JuE6/e2AcKjogiSG4XdRbhpDFzrM4T2R7wGhdiHLDehm 2xTisuk3xHNNJ3FrIgf4FyG/BKmgD2uHYvUzuMpsJcjIp4LfzF2tTKsWN AZUX0Y0OIM1tykD6X27Glmpne161PR2lz2tdylt6WrdBCYkum8D7McpDo X4pqEormru0KBNHcS7yn8SkFO2aIz0PtY+qIh75/3phWgQaMr1/+GkpaC AP6sacapMVz/sa+uI6th5eATh0IXHAiV5W5uW1z1RIBakhIAMKqx7wtIo AJ5J22XLOMQBbPDw/MGqw8WmSr+36WXsszHfC96G06CX04gDELcz0xAS9 g==; X-CSE-ConnectionGUID: 275q5NcvRW28ZCZH+GfSXA== X-CSE-MsgGUID: xTJL7jC/R/+9heifnFEfmg== X-IronPort-AV: E=McAfee;i="6700,10204,11195"; a="29000128" X-IronPort-AV: E=Sophos;i="6.10,229,1719903600"; d="scan'208";a="29000128" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2024 06:37:02 -0700 X-CSE-ConnectionGUID: sl4lNyDwQEiYTJx3gFUspQ== X-CSE-MsgGUID: icwwkJf6RRWEaujXEMPO3w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,229,1719903600"; d="scan'208";a="68640534" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 14 Sep 2024 06:37:00 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1spSxO-0007ms-03; Sat, 14 Sep 2024 13:36:58 +0000 Date: Sat, 14 Sep 2024 21:36:52 +0800 From: kernel test robot To: "Gustavo A. R. Silva" Cc: oe-kbuild-all@lists.linux.dev, "Gustavo A. R. Silva" , LKML Subject: [gustavoars:testing/wfamnae-next20240912 6/15] drivers/net/wireless/intel/iwlwifi/mvm/d3.c:2149:2: error: call to '__compiletime_assert_1056' declared with 'error' attribute: BUILD_BUG_ON failed: conf->keylen < WLAN_KEY_LEN_GCMP_256 Message-ID: <202409142133.w3pk77Qm-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20240912 head: f2ca068393cf1157c12ab08556b05824eec16511 commit: 7256c015db0178a6e2221d8f03b0d2fea660d9ea [6/15] wifi: iwlwifi: mvm: Use __counted_by() and avoid -Wfamnae warnings config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20240914/202409142133.w3pk77Qm-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project bf684034844c660b778f0eba103582f582b710c9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409142133.w3pk77Qm-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202409142133.w3pk77Qm-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/net/wireless/intel/iwlwifi/mvm/d3.c:7: In file included from include/linux/etherdevice.h:20: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:8: In file included from include/linux/cacheflush.h:5: In file included from arch/riscv/include/asm/cacheflush.h:9: In file included from include/linux/mm.h:2213: include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/wireless/intel/iwlwifi/mvm/d3.c:2149:2: error: call to '__compiletime_assert_1056' declared with 'error' attribute: BUILD_BUG_ON failed: conf->keylen < WLAN_KEY_LEN_GCMP_256 2149 | BUILD_BUG_ON(conf->keylen < WLAN_KEY_LEN_GCMP_256); | ^ include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^ include/linux/compiler_types.h:517:2: note: expanded from macro 'compiletime_assert' 517 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:505:2: note: expanded from macro '_compiletime_assert' 505 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:498:4: note: expanded from macro '__compiletime_assert' 498 | prefix ## suffix(); \ | ^ :67:1: note: expanded from here 67 | __compiletime_assert_1056 | ^ >> drivers/net/wireless/intel/iwlwifi/mvm/d3.c:2148:2: error: call to '__compiletime_assert_1055' declared with 'error' attribute: BUILD_BUG_ON failed: conf->keylen < WLAN_KEY_LEN_CCMP 2148 | BUILD_BUG_ON(conf->keylen < WLAN_KEY_LEN_CCMP); | ^ include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^ include/linux/compiler_types.h:517:2: note: expanded from macro 'compiletime_assert' 517 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:505:2: note: expanded from macro '_compiletime_assert' 505 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:498:4: note: expanded from macro '__compiletime_assert' 498 | prefix ## suffix(); \ | ^ :63:1: note: expanded from here 63 | __compiletime_assert_1055 | ^ 4 warnings and 2 errors generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for OMAP2PLUS_MBOX Depends on [n]: MAILBOX [=y] && (ARCH_OMAP2PLUS || ARCH_K3) Selected by [m]: - TI_K3_M4_REMOTEPROC [=m] && REMOTEPROC [=y] && (ARCH_K3 || COMPILE_TEST [=y]) vim +2149 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 2134 2135 static bool iwl_mvm_gtk_rekey(struct iwl_wowlan_status_data *status, 2136 struct ieee80211_vif *vif, 2137 struct iwl_mvm *mvm, u32 gtk_cipher) 2138 { 2139 int i, j; 2140 struct ieee80211_key_conf *key; 2141 DEFINE_FLEX(struct ieee80211_key_conf, conf, key, keylen, 2142 WOWLAN_KEY_MAX_SIZE); 2143 int link_id = vif->active_links ? __ffs(vif->active_links) : -1; 2144 2145 conf->cipher = gtk_cipher; 2146 2147 BUILD_BUG_ON(WLAN_KEY_LEN_CCMP != WLAN_KEY_LEN_GCMP); > 2148 BUILD_BUG_ON(conf->keylen < WLAN_KEY_LEN_CCMP); > 2149 BUILD_BUG_ON(conf->keylen < WLAN_KEY_LEN_GCMP_256); 2150 BUILD_BUG_ON(conf->keylen < WLAN_KEY_LEN_TKIP); 2151 BUILD_BUG_ON(conf->keylen < sizeof(status->gtk[0].key)); 2152 2153 switch (gtk_cipher) { 2154 case WLAN_CIPHER_SUITE_CCMP: 2155 case WLAN_CIPHER_SUITE_GCMP: 2156 conf->keylen = WLAN_KEY_LEN_CCMP; 2157 break; 2158 case WLAN_CIPHER_SUITE_GCMP_256: 2159 conf->keylen = WLAN_KEY_LEN_GCMP_256; 2160 break; 2161 case WLAN_CIPHER_SUITE_TKIP: 2162 conf->keylen = WLAN_KEY_LEN_TKIP; 2163 break; 2164 default: 2165 WARN_ON(1); 2166 } 2167 2168 for (i = 0; i < ARRAY_SIZE(status->gtk); i++) { 2169 if (!status->gtk[i].len) 2170 continue; 2171 2172 conf->keyidx = status->gtk[i].id; 2173 IWL_DEBUG_WOWLAN(mvm, 2174 "Received from FW GTK cipher %d, key index %d\n", 2175 conf->cipher, conf->keyidx); 2176 memcpy(conf->key, status->gtk[i].key, 2177 sizeof(status->gtk[i].key)); 2178 2179 key = ieee80211_gtk_rekey_add(vif, conf, link_id); 2180 if (IS_ERR(key)) 2181 return false; 2182 2183 for (j = 0; j < ARRAY_SIZE(status->gtk_seq); j++) { 2184 if (!status->gtk_seq[j].valid || 2185 status->gtk_seq[j].key_id != key->keyidx) 2186 continue; 2187 iwl_mvm_set_key_rx_seq_idx(key, status, j); 2188 break; 2189 } 2190 WARN_ON(j == ARRAY_SIZE(status->gtk_seq)); 2191 } 2192 2193 return true; 2194 } 2195 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki