Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1535046lql; Wed, 13 Mar 2024 00:03:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW33yJ5+PyV7loNl5pZZUz8G7W/n2R8yuZ7SraNPfIE506NcNGPRxqIETuxmfqV1oDZprDRQIzYZrnXq2M9IIZPra5iCueaMqFg2TIzVQ== X-Google-Smtp-Source: AGHT+IHIyhthWYJVlJpoNdpnjil6Uw3XNCDLw7WgOwoPifJs5CCfvYbfpZOkis/TEXKaxRf9wS27 X-Received: by 2002:a17:906:19da:b0:a46:17d6:c066 with SMTP id h26-20020a17090619da00b00a4617d6c066mr2497076ejd.17.1710313431310; Wed, 13 Mar 2024 00:03:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710313431; cv=pass; d=google.com; s=arc-20160816; b=lsYdNHE/r9MbWUjK8jWBcDe0LuKKbof+0ZHYevnFuaEm7mvbsq0/uXUBN8XQXRrBRr uityWkIAZu1f1Vee8J+kDl09l/sKLm+5rbrat0ocg/aTsZegExs1NzKurxLTswthwWTy cUMhiaku8qV/AJ1CwS02w+R7PFOv7MkmkUBmaY3ijc/eUeEHx6gr1eHKGR4eHkIG59PD NSb5ATaS6vLLEJKmVSqaJjhlD2+BZ37NlxzxmgwoHvqsEzqtzq+nRsIVt8Xo3SKabffT 7rgz33mDufIqdoUd4GYZeYlWuR4a8+oXj6gdxcoQkCUBl+IqZv3se8Fq0CwNq2UFZedQ u/sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=++ETwX+02KOdkWeSc/5cQMsf0Iz3zsZq/0ewefW1iy4=; fh=Oc/Ex2IetCsW62t1goZ3b9osk7elEK6dt0nNFa4ovKI=; b=DjR5VRUueGfpiKEQTcrbx8fn19u5Wq9UteaCBGTn+duXhYPZljrSu/FMpUAnCPC6vo /yH93VX2FpCLo3jF7XDccijj5zUuIIx9dkL86PBRNDC6Kuymajn42LJ7ytjl4Ew8xLYo W1DqlnKEMR4gdXuCZXe9KLMWwxTdioy6/sR9pkBiCw+lct5gYIjZtEvbeUFz0CrjpimN kIVo6V4P54Mi38kiKGGkaEqvbXlBzLKD2sW0yN3sCAhmyZLeNLlAcrZFpQ4AEkXlf+Ar vjxFu4PbXxuCn81bIjFztjXblq2KSaIyRyrEjzyjj9J1e8PHDeMdiGZmyydOV54036Qo KJDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e9T5B7vH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-101149-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bu21-20020a170906a15500b00a4483e8d479si4306116ejb.611.2024.03.13.00.03.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 00:03:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101149-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=e9T5B7vH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-101149-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C6C1B1F21EF0 for ; Wed, 13 Mar 2024 07:03:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7273514ABC; Wed, 13 Mar 2024 07:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="e9T5B7vH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 143B0134AD for ; Wed, 13 Mar 2024 07:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710313422; cv=none; b=FOGFnrvKpjfiNPdjZ1jwvab9vs4ij9jkcK9hrdy9G3ZemMQ5tWcSIUqg5/nGXu/UqUjIysQAuTNt9jJl01lfupAkuKa7OmKphSNwz1Ji5zz8o2zZXmQnagnsA9Ab3Fdc3x7uVcX1acMk3Zo8eo8aDNKxciJFPLndCNVqbXxqhR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710313422; c=relaxed/simple; bh=TM4llEmWvt3Eqj4ka9xxYANerkoKCQkq7CdMxuEFzkY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=poVJaio8sYkzF21PSnvrMOvGv6yLvwpFIXEXovwSRQcjFMN2kcJjOoKaEaWukucsU21w0DI1ocpQ0xJFyQ1zgO6IxEgAVkU+7pyXXXSG2DGZy0lqA0yFLOdJQhlknNP97PfJ5nPJ6B6H3cAIweKwV4IcgFrHDEWgRARDQdGkjG0= 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=e9T5B7vH; arc=none smtp.client-ip=192.198.163.7 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710313420; x=1741849420; h=date:from:to:cc:subject:message-id:mime-version; bh=TM4llEmWvt3Eqj4ka9xxYANerkoKCQkq7CdMxuEFzkY=; b=e9T5B7vHFp6L61n7cJrOGGqbUUhrHzgjoBzEM9SRkZCYoz/+DVGeqd5/ U62o7YHQVDupvG9Q+WRD23KUH5+mTIMN3OrCd7aR7Y6AkfYN0Tgeh4+Sg x5/9N6fvyi0s+wZYvgJ8Ywq+/VDeX6xnUz0wlbM6BE+aH50aom5WPsWl3 532lwTpxzrSVfdWS6fHUKrZdHDCP5lmZqMtVtS+Wy1ev9pzrxt7UxZn/4 4IpCQ8fIEX1wbqzvnzS5309Ms1KPlIIehUcF4p/lZlwWnliguy8Hw/J3Y cgi6OdYawNGT5mvKb3XBsWrdZAiTf3pajtM/hoQ9sly6yMKVkhhkOpCu2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,11011"; a="30496297" X-IronPort-AV: E=Sophos;i="6.07,119,1708416000"; d="scan'208";a="30496297" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2024 00:03:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,119,1708416000"; d="scan'208";a="12265334" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by orviesa007.jf.intel.com with ESMTP; 13 Mar 2024 00:03:38 -0700 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rkIeF-000C8B-1B; Wed, 13 Mar 2024 07:03:35 +0000 Date: Wed, 13 Mar 2024 15:03:20 +0800 From: kernel test robot To: "Gustavo A. R. Silva" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, "Gustavo A. R. Silva" , LKML Subject: [gustavoars:testing/WFAMNAE-next20240312 1/1] lib/crc64-rocksoft.c:69:13: error: no member named 'tfm' in 'struct shash_desc' Message-ID: <202403131436.V9IBdFAo-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-next20240312 head: 33ee4d07d6d337670a64f9d41e14e7579cfa9015 commit: 33ee4d07d6d337670a64f9d41e14e7579cfa9015 [1/1] treewide: avoid -Wfamnae warnings config: i386-buildonly-randconfig-003-20240313 (https://download.01.org/0day-ci/archive/20240313/202403131436.V9IBdFAo-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240313/202403131436.V9IBdFAo-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/202403131436.V9IBdFAo-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:155:2: error: expected member name or ';' after declaration specifiers 155 | struct_group_tagged(shash_desc_hdr, hdr, | ^ include/linux/stddef.h:81:2: note: expanded from macro 'struct_group_tagged' 81 | __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ^ include/uapi/linux/stddef.h:28:20: note: expanded from macro '__struct_group' 28 | struct { MEMBERS } ATTRS; \ | ^ In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:155:2: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | struct_group_tagged(shash_desc_hdr, hdr, | ^ 156 | struct crypto_shash *tfm; 157 | __aligned(ARCH_SLAB_MINALIGN)); | int include/linux/stddef.h:81:2: note: expanded from macro 'struct_group_tagged' 81 | __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ^ include/uapi/linux/stddef.h:28:20: note: expanded from macro '__struct_group' 28 | struct { MEMBERS } ATTRS; \ | ^ In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:155:2: warning: expected ';' at end of declaration list include/linux/stddef.h:81:2: note: expanded from macro 'struct_group_tagged' 81 | __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ^ include/uapi/linux/stddef.h:28:20: note: expanded from macro '__struct_group' 28 | struct { MEMBERS } ATTRS; \ | ^ In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:155:2: error: expected member name or ';' after declaration specifiers include/linux/stddef.h:81:2: note: expanded from macro 'struct_group_tagged' 81 | __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ^ include/uapi/linux/stddef.h:29:24: note: expanded from macro '__struct_group' 29 | struct TAG { MEMBERS } ATTRS NAME; \ | ^ In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:155:2: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 155 | struct_group_tagged(shash_desc_hdr, hdr, | ^ 156 | struct crypto_shash *tfm; 157 | __aligned(ARCH_SLAB_MINALIGN)); | int include/linux/stddef.h:81:2: note: expanded from macro 'struct_group_tagged' 81 | __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ^ include/uapi/linux/stddef.h:29:24: note: expanded from macro '__struct_group' 29 | struct TAG { MEMBERS } ATTRS NAME; \ | ^ In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:155:2: warning: expected ';' at end of declaration list include/linux/stddef.h:81:2: note: expanded from macro 'struct_group_tagged' 81 | __struct_group(TAG, NAME, /* no attrs */, MEMBERS) | ^ include/uapi/linux/stddef.h:29:24: note: expanded from macro '__struct_group' 29 | struct TAG { MEMBERS } ATTRS NAME; \ | ^ In file included from lib/crc64-rocksoft.c:8: include/crypto/hash.h:158:8: error: flexible array member '__ctx' not allowed in otherwise empty struct 158 | void *__ctx[]; | ^ include/crypto/hash.h:891:35: error: no member named 'tfm' in 'struct shash_desc' 891 | struct crypto_shash *tfm = desc->tfm; | ~~~~ ^ include/crypto/hash.h:951:49: error: no member named 'tfm' in 'struct shash_desc' 951 | sizeof(*desc) + crypto_shash_descsize(desc->tfm)); | ~~~~ ^ >> lib/crc64-rocksoft.c:69:13: error: no member named 'tfm' in 'struct shash_desc' 69 | desc.shash.tfm = rcu_dereference(crc64_rocksoft_tfm); | ~~~~~~~~~~ ^ 2 warnings and 8 errors generated. vim +69 lib/crc64-rocksoft.c f3813f4b287e48 Keith Busch 2022-03-03 56 f3813f4b287e48 Keith Busch 2022-03-03 57 u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len) f3813f4b287e48 Keith Busch 2022-03-03 58 { f3813f4b287e48 Keith Busch 2022-03-03 59 struct { f3813f4b287e48 Keith Busch 2022-03-03 60 struct shash_desc shash; f3813f4b287e48 Keith Busch 2022-03-03 61 u64 crc; f3813f4b287e48 Keith Busch 2022-03-03 62 } desc; f3813f4b287e48 Keith Busch 2022-03-03 63 int err; f3813f4b287e48 Keith Busch 2022-03-03 64 f3813f4b287e48 Keith Busch 2022-03-03 65 if (static_branch_unlikely(&crc64_rocksoft_fallback)) f3813f4b287e48 Keith Busch 2022-03-03 66 return crc64_rocksoft_generic(crc, buffer, len); f3813f4b287e48 Keith Busch 2022-03-03 67 f3813f4b287e48 Keith Busch 2022-03-03 68 rcu_read_lock(); f3813f4b287e48 Keith Busch 2022-03-03 @69 desc.shash.tfm = rcu_dereference(crc64_rocksoft_tfm); f3813f4b287e48 Keith Busch 2022-03-03 70 desc.crc = crc; f3813f4b287e48 Keith Busch 2022-03-03 71 err = crypto_shash_update(&desc.shash, buffer, len); f3813f4b287e48 Keith Busch 2022-03-03 72 rcu_read_unlock(); f3813f4b287e48 Keith Busch 2022-03-03 73 f3813f4b287e48 Keith Busch 2022-03-03 74 BUG_ON(err); f3813f4b287e48 Keith Busch 2022-03-03 75 f3813f4b287e48 Keith Busch 2022-03-03 76 return desc.crc; f3813f4b287e48 Keith Busch 2022-03-03 77 } f3813f4b287e48 Keith Busch 2022-03-03 78 EXPORT_SYMBOL_GPL(crc64_rocksoft_update); f3813f4b287e48 Keith Busch 2022-03-03 79 :::::: The code at line 69 was first introduced by commit :::::: f3813f4b287e480b1fcd62ca798d8556644b8278 crypto: add rocksoft 64b crc guard tag framework :::::: TO: Keith Busch :::::: CC: Jens Axboe -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki