Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp112883rwb; Fri, 4 Aug 2023 09:55:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5dXp0nf4tN4f1QUaKpidY5t/gDxscz2VENy+57P8gOaC7aeUzdo/c4Fy/yOJsNtPbG0DN X-Received: by 2002:a17:906:3011:b0:993:eee4:e704 with SMTP id 17-20020a170906301100b00993eee4e704mr277155ejz.38.1691168146170; Fri, 04 Aug 2023 09:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691168146; cv=none; d=google.com; s=arc-20160816; b=OcG3QzVJv1zFmp0mODlYLa1SdNxhW9TVaWWYhtQHyQqfTticU/5W7P6Vb/bRLl6Yre ewnaGcqBWpRrJJfkG2cZeP18S7JHY/Rynr7ycGNtKOFsUj+o56UuLEQ6DokNIiyN/0v4 lXCa2OiZHOHokbeIT6Zn/aPAdtnEqviAu9kK29tjrDfKsGYkbaoaPsL44n8VbgAPnch1 8QZcOOmpj8+ow5HrUwKFRP2IvLF65dyZhB8eNewt1/zlYOXA69pV8VSkW+X6O7zIPCaK zibEo4RypqQVjqebih/jFacIEXMI4koPOnilPpY+7GPpmIJSUlMMBfaMufVECBUVT4kk mBEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/D/SXQr5XWBaRPi2w6Pc0bqMd5bIjfkfxthWD9gKcCY=; fh=/YnmqNh9dnYqtO+gwrCCkEoWOpdL1e4zZ/Osyaw3DRs=; b=Ht7xrD13XcyN8ba7sS6EITWLvTOIz5yjupRB3MSH2MS9A5Fc34ORR7408loIpjTiHX FZGZ4dkyWxYPnAIP4pFjbbehp47Qu9uF/rE5DFDW7DJnfeoOEsij3/pF44DuOxRrlWj2 9zTCdmSJxqwGJnVOA1UKkzoGoEGEQWTnyUu4btCAJGvSJYk+1fABRG4gkEBPYr5BwZGf xPcGQsyGs6yCsG2fjp8e6BzfvyeIJuyC3dBLsGnl88NKTvGIw6cdyxf9vT5o41equ47A cBE/oFahGBXk/rzhub9sCpPGWPXNimsSHzhxwrgQOF1nCrmCBx/zCIeHZKzLa40cMvtW EnKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YuH03Zqn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ko17-20020a170907987100b0099ca283fb5esi1150417ejc.654.2023.08.04.09.54.59; Fri, 04 Aug 2023 09:55:46 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YuH03Zqn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230126AbjHDQZb (ORCPT + 99 others); Fri, 4 Aug 2023 12:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbjHDQZ3 (ORCPT ); Fri, 4 Aug 2023 12:25:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E51349E0; Fri, 4 Aug 2023 09:25:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E084262089; Fri, 4 Aug 2023 16:25:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C45E9C433C7; Fri, 4 Aug 2023 16:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691166308; bh=jjSTnzBTS7Nbc8Ju1cnYAAgflL3m3QxpQ4xoOfTJ380=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YuH03ZqnwShK6A13o3unRpSgqb6/igekHSMutA+Eo0RfiF8xzBDo2lQrzSlUarE4G A4D2wNgoJ/lzDWsynaz/dWmMnZz6leoLHCf5STsicR/NN+JnWC+6ix9gTiOukjd8+H 2uvcpK9PaCFQL6XPp14LbgK5NhnEvBTlJIdkzamjg+UvXM8xZLt4qClDfdV+diKR1I /qjNihmwr5eY4yDOsqWAnEX3EC+YLQMZ7gtLWQrBZIrzaeuftw+vuPNrZ1TaMXNDgR efHQCl8kQpqypNx8VX/2DTx24oBypwUT0CdhG+i4m89F4VZwznbhQMv144cfQEFclH ExZfBkOFiptEA== Date: Fri, 4 Aug 2023 17:25:03 +0100 From: Will Deacon To: Masahiro Yamada Cc: Herbert Xu , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , Catalin Marinas , "David S. Miller" , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] crypto: arm64/aes: remove Makefile hack Message-ID: <20230804162502.GB30679@willie-the-truck> References: <20230801101146.1550814-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230801101146.1550814-1-masahiroy@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Tue, Aug 01, 2023 at 07:11:46PM +0900, Masahiro Yamada wrote: > Do it more simiply. This also fixes single target builds. > > [before] > > $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- arch/arm64/crypto/aes-glue-ce.i > [snip] > make[4]: *** No rule to make target 'arch/arm64/crypto/aes-glue-ce.i'. Stop. > > [after] > > $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- arch/arm64/crypto/aes-glue-ce.i > [snip] > CPP arch/arm64/crypto/aes-glue-ce.i > > Signed-off-by: Masahiro Yamada > --- > > arch/arm64/crypto/Makefile | 5 ----- > arch/arm64/crypto/aes-glue-ce.c | 2 ++ > arch/arm64/crypto/aes-glue-neon.c | 1 + > 3 files changed, 3 insertions(+), 5 deletions(-) > create mode 100644 arch/arm64/crypto/aes-glue-ce.c > create mode 100644 arch/arm64/crypto/aes-glue-neon.c > > diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile > index 4818e204c2ac..fbe64dce66e0 100644 > --- a/arch/arm64/crypto/Makefile > +++ b/arch/arm64/crypto/Makefile > @@ -81,11 +81,6 @@ aes-arm64-y := aes-cipher-core.o aes-cipher-glue.o > obj-$(CONFIG_CRYPTO_AES_ARM64_BS) += aes-neon-bs.o > aes-neon-bs-y := aes-neonbs-core.o aes-neonbs-glue.o > > -CFLAGS_aes-glue-ce.o := -DUSE_V8_CRYPTO_EXTENSIONS > - > -$(obj)/aes-glue-%.o: $(src)/aes-glue.c FORCE > - $(call if_changed_rule,cc_o_c) > - > quiet_cmd_perlasm = PERLASM $@ > cmd_perlasm = $(PERL) $(<) void $(@) > > diff --git a/arch/arm64/crypto/aes-glue-ce.c b/arch/arm64/crypto/aes-glue-ce.c > new file mode 100644 > index 000000000000..7d309ceeddf3 > --- /dev/null > +++ b/arch/arm64/crypto/aes-glue-ce.c > @@ -0,0 +1,2 @@ > +#define USE_V8_CRYPTO_EXTENSIONS > +#include "aes-glue.c" > diff --git a/arch/arm64/crypto/aes-glue-neon.c b/arch/arm64/crypto/aes-glue-neon.c > new file mode 100644 > index 000000000000..8ba046321064 > --- /dev/null > +++ b/arch/arm64/crypto/aes-glue-neon.c > @@ -0,0 +1 @@ > +#include "aes-glue.c" Acked-by: Will Deacon I'm assuming Herbert will pick this up, but please let me know if I should take it instead. Will