Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1875234rwb; Fri, 2 Dec 2022 02:18:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YYju0nRs0/jrDYpLyFlXqUAwPmTz8QjasnplRWgclHvGOKy0o6xtkzJzd2/fk2sht8qib X-Received: by 2002:a17:906:f2c8:b0:7bc:1506:f42a with SMTP id gz8-20020a170906f2c800b007bc1506f42amr32385538ejb.188.1669976329261; Fri, 02 Dec 2022 02:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669976329; cv=none; d=google.com; s=arc-20160816; b=NK/BQVjFR+KdPvTmJRtQw7X2qEH5RzGiIojNyj6hVjUGG7R9MEJva5rmLSfyq1QVjZ nEXd3t/t9meWyfRzajxhFpIqYjJPyw1xjkCKymimQb8JJWtZa/IjnmHvbNVX9RxMuEj4 mOIMrx35Hrcwce9uQYVDHJ+tnYhQVfZWGKWnOT1K+s04OUyoVjXMzpgbza0H3eIxdLLv 6Tl0ZuJFdwDimUYllg0f7/WmxcnjmsPf0VhnIoFdBhIla684SeVQ0IiyfqpptmB/GVim csglmkvxWiB3Re9m+ZtmRW3Djs7xT0FzrbhiCLlL2Cr38+jbLWExgrSd8V+cJpJTNg/1 xG/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=VJjT6jpE6vwMBbKHQuadG6ccKwhyN2tZ+i3D4qj5CYI=; b=LXZ7fdJRpZmnMmce3A3fLrUqrOKqd2cQ200U7RMX9ErjYZgdyCUj/aAB91e4dcbVTV Wii/9zN9sh/KMSnp8j6sHSUr0//X7jUSmpP8ngLBjvpxAT6q6pjsy5UUfwegDeVjhjVh QqtSJVpV6lLrKccUkRtf97Y2azbRjxiy5CZaCoTWLGD7cSyG3vsCCjNiu4dDXrXcIrMH BzPnWz6Vry59SvvdrnBvj6dexArEFaKH59PguwlHCLhZMaeLScOfKp974WL4UgAVDn3z lEyIf6/yE0ubpG1pnigggQRj64GsDcITCSTLGVqkoHPHI68m9pFshPh+ZZfIHdRSVy2n Cy8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a50d751000000b00459c1e64776si5457482edj.412.2022.12.02.02.18.24; Fri, 02 Dec 2022 02:18:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232530AbiLBKMY (ORCPT + 99 others); Fri, 2 Dec 2022 05:12:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233436AbiLBKME (ORCPT ); Fri, 2 Dec 2022 05:12:04 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B195CCFE7 for ; Fri, 2 Dec 2022 02:12:04 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1p131Q-003C81-Bo; Fri, 02 Dec 2022 18:11:57 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Dec 2022 18:11:56 +0800 Date: Fri, 2 Dec 2022 18:11:56 +0800 From: Herbert Xu To: Taehee Yoo Cc: linux-crypto@vger.kernel.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, kirill.shutemov@linux.intel.com, richard@nod.at, viro@zeniv.linux.org.uk, sathyanarayanan.kuppuswamy@linux.intel.com, jpoimboe@kernel.org, elliott@hpe.com, x86@kernel.org, jussi.kivilinna@iki.fi, ebiggers@kernel.org Subject: Re: [PATCH v6 2/4] crypto: aria: do not use magic number offsets of aria_ctx Message-ID: References: <20221121003955.2214462-1-ap420073@gmail.com> <20221121003955.2214462-3-ap420073@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221121003955.2214462-3-ap420073@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Nov 21, 2022 at 12:39:53AM +0000, Taehee Yoo wrote: > > +#if defined(CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64) || \ > + defined(CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64_MODULE) Why isn't this IS_ENABLED like the hunk below? > + > + /* Offset for fields in aria_ctx */ > + BLANK(); > + OFFSET(ARIA_CTX_enc_key, aria_ctx, enc_key); > + OFFSET(ARIA_CTX_dec_key, aria_ctx, dec_key); > + OFFSET(ARIA_CTX_rounds, aria_ctx, rounds); > +#endif > + > if (IS_ENABLED(CONFIG_KVM_INTEL)) { > BLANK(); > OFFSET(VMX_spec_ctrl, vcpu_vmx, spec_ctrl); Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt