From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 0848D3D25A3 for ; Mon, 25 May 2026 07:27:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779694070; cv=none; b=azrDTtbq1p+3BRwlUSN94ieCeq+UykwTL4BulnuxSAjxnips+S3z1eG0JmM16iNkxYa8cV/n6CK8wPTOL2Q+8XT2wmSTaFgJ6ZME/qm5QkwurQBnVrTGGE5Wf8pboYNtDNkBPDD9inzBHuwRa16WuT+HMC4IrnYUXyFpVxEEmU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779694070; c=relaxed/simple; bh=T/cGizqJUj9Ls5+qUuIMk7N2cpmgL5BBeU+5loNlatY=; h=Date:From:To:Cc:Subject:Message-ID; b=V3Jmp9sJJOnUhuPek5QDRzdsPc2fnRA8UMbrHS6ubpmLlPImwQ8pOPoUrAh1bkOjoudqIU4OOR13rlXQTFgxw4npGE65hyXw+5bEXrPhCN3v1Ml1wiCeJ4SLln5yIxvjVx7t7vCoEzWH7V77Nb6q8MO1dTGKJybtGTzMWZZ/BBQ= 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=gYvwBaF6; arc=none smtp.client-ip=198.175.65.18 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="gYvwBaF6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779694069; x=1811230069; h=date:from:to:cc:subject:message-id; bh=T/cGizqJUj9Ls5+qUuIMk7N2cpmgL5BBeU+5loNlatY=; b=gYvwBaF6FowoFuroLmHBVr4xxdf1yRrCb8nnjZagf90d9WEzNArDatjK x/RXl4bFCE1wNWd3XvhaBkFPKTs4v0+rlT97Cri36JFaTLYiBce/eJw7V VyF0zkuk0yGMn3Exr75jMA9ZmId1iramFFpHsAml+IZOiEoQIkOzJyARU 850ff3MUWRLar/7zB1JYfzq2bu+WsQTf17qgikyxms6zMbwiUS2Ofh/C7 J4KcjdLsWwOuRsU5H2v1KoI7xLR5D5XKnDpQphtW5ks0uBP9l/ZXXXHpi CjDDivpInTR7Xs2/iFFf4nrKB2PcmIzrOm22BzbJ0ZMyePtCUItvMEGiE w==; X-CSE-ConnectionGUID: Xw661OHVREmSwUun9eGS/g== X-CSE-MsgGUID: lir7GaV6SVWo3uxR/YaxQw== X-IronPort-AV: E=McAfee;i="6800,10657,11796"; a="80567395" X-IronPort-AV: E=Sophos;i="6.24,167,1774335600"; d="scan'208";a="80567395" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2026 00:27:45 -0700 X-CSE-ConnectionGUID: p0ViqCM7Q3KVivPSBNmwJw== X-CSE-MsgGUID: aon7/IZOR36r/1vLGdmipQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,167,1774335600"; d="scan'208";a="237327936" Received: from lkp-server01.sh.intel.com (HELO f0d55cb201f0) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 25 May 2026 00:27:42 -0700 Received: from kbuild by f0d55cb201f0 with local (Exim 4.98.2) (envelope-from ) id 1wRPit-000000001Du-2b6w; Mon, 25 May 2026 07:27:39 +0000 Date: Mon, 25 May 2026 15:27:25 +0800 From: kernel test robot To: Eric Biggers Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Ard Biesheuvel Subject: crypto/aes.c:38:1: sparse: sparse: static assertion failed: "__alignof__(struct aes_cmac_key) <= CRYPTO_MINALIGN" Message-ID: <202605251540.pExoRJXl-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e7ae89a0c97ce2b68b0983cd01eda67cf373517d commit: 7137cbf2b5c9feb6302d6da116eab2047c5f05d2 crypto: aes - Add cmac, xcbc, and cbcmac algorithms using library date: 3 months ago config: powerpc-randconfig-r113-20260525 (https://download.01.org/0day-ci/archive/20260525/202605251540.pExoRJXl-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 14.3.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260525/202605251540.pExoRJXl-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 | Fixes: 7137cbf2b5c9 ("crypto: aes - Add cmac, xcbc, and cbcmac algorithms using library") | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202605251540.pExoRJXl-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) crypto/aes.c:14:1: sparse: sparse: static assertion failed: "__alignof__(struct aes_key) <= CRYPTO_MINALIGN" >> crypto/aes.c:38:1: sparse: sparse: static assertion failed: "__alignof__(struct aes_cmac_key) <= CRYPTO_MINALIGN" >> crypto/aes.c:88:1: sparse: sparse: static assertion failed: "__alignof__(struct aes_enckey) <= CRYPTO_MINALIGN" vim +38 crypto/aes.c 37 > 38 static_assert(__alignof__(struct aes_cmac_key) <= CRYPTO_MINALIGN); 39 #define AES_CMAC_KEY(tfm) ((struct aes_cmac_key *)crypto_shash_ctx(tfm)) 40 #define AES_CMAC_CTX(desc) ((struct aes_cmac_ctx *)shash_desc_ctx(desc)) 41 42 static int __maybe_unused crypto_aes_cmac_setkey(struct crypto_shash *tfm, 43 const u8 *in_key, 44 unsigned int key_len) 45 { 46 return aes_cmac_preparekey(AES_CMAC_KEY(tfm), in_key, key_len); 47 } 48 49 static int __maybe_unused crypto_aes_xcbc_setkey(struct crypto_shash *tfm, 50 const u8 *in_key, 51 unsigned int key_len) 52 { 53 if (key_len != AES_KEYSIZE_128) 54 return -EINVAL; 55 aes_xcbcmac_preparekey(AES_CMAC_KEY(tfm), in_key); 56 return 0; 57 } 58 59 static int __maybe_unused crypto_aes_cmac_init(struct shash_desc *desc) 60 { 61 aes_cmac_init(AES_CMAC_CTX(desc), AES_CMAC_KEY(desc->tfm)); 62 return 0; 63 } 64 65 static int __maybe_unused crypto_aes_cmac_update(struct shash_desc *desc, 66 const u8 *data, 67 unsigned int len) 68 { 69 aes_cmac_update(AES_CMAC_CTX(desc), data, len); 70 return 0; 71 } 72 73 static int __maybe_unused crypto_aes_cmac_final(struct shash_desc *desc, 74 u8 *out) 75 { 76 aes_cmac_final(AES_CMAC_CTX(desc), out); 77 return 0; 78 } 79 80 static int __maybe_unused crypto_aes_cmac_digest(struct shash_desc *desc, 81 const u8 *data, 82 unsigned int len, u8 *out) 83 { 84 aes_cmac(AES_CMAC_KEY(desc->tfm), data, len, out); 85 return 0; 86 } 87 > 88 static_assert(__alignof__(struct aes_enckey) <= CRYPTO_MINALIGN); 89 #define AES_CBCMAC_KEY(tfm) ((struct aes_enckey *)crypto_shash_ctx(tfm)) 90 #define AES_CBCMAC_CTX(desc) ((struct aes_cbcmac_ctx *)shash_desc_ctx(desc)) 91 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki