Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5477182rwb; Tue, 1 Aug 2023 03:19:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWA5pq58LVuy0FdBk9JH1QozVJasjlNAdBf/7rcGiLinoM4uev8hNc77x4wG048eyZU6cZ X-Received: by 2002:a05:6a20:7289:b0:13e:8ce5:bedd with SMTP id o9-20020a056a20728900b0013e8ce5beddmr1094178pzk.1.1690885189929; Tue, 01 Aug 2023 03:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690885189; cv=none; d=google.com; s=arc-20160816; b=gfHFN9z6oZC8wcv/YeoVhG4YvgNWCnWpnGFVCkbvLQdVnAp3p5kpPf6e3Lnyli10kQ bd++LdVD0lDJp1dOj4dZAvQv/p0BS4+HzSOVxli715b4uHdY2sHsJus1uC/B/6aHqPTP JfQw9bh1Gqvtvqs19G/03WuA5LCqic2OlQqQZ2R1pxdTL/cIsc7CgLrUpj3AcQV6rKiZ WLMynUYEqH+cSXJ/nfODZ6H5AQD3uyVCCMvfO1AsW10hVtkTneeMnrd2TLEPa2ct4ovB 2hrR7U3J2Z0gsJvcwfl/LaVIqL9mP+IDPRcm08qtRRxf0qa1tIYak9sy5aFgr0EFk2z7 N9Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wgUlteflRZJWvSE+QRGmdg4BgUs2XD5c/ThYofS89MI=; fh=MxRWKe1jG3oGPsWD2u8AxfDwzO44XImI6wxskM9J/Co=; b=GFgmvOTj5/zELMdMnt9Iq81RtJqvIPPsEb0h9SksEAxU3w9GUNqPtp8qvoSP+O3U7X y5cS4/RefX11Z8gMghvEjSpL6eBl+dgoYmzo2vNARkj47GWsHCbFxHplTMCTRJPN42zI IojJTo0As07V3d/FWAIeAo5Y0mDCwBmJRAp15pjMpd4by0+sdWdMLS0sUbuKfM9bgYBU Pfi/WQ/brR9XdrBH0jTWUzfayFAGYa5IzxiGYsVfZLaO9joZXM4G2bbh6a8ehwar9gQe bXMJIgZ30AhMu6AreSyDYKFrv96S/XpNMmVG5a6iCxjsVWB6eW2cnSUAi302umdA5zpH yhuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZtE0jhP0; 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 x17-20020a1709027c1100b001b9d03d0dcasi8548403pll.143.2023.08.01.03.19.29; Tue, 01 Aug 2023 03:19:49 -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=ZtE0jhP0; 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 S233913AbjHAKN4 (ORCPT + 99 others); Tue, 1 Aug 2023 06:13:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234122AbjHAKNY (ORCPT ); Tue, 1 Aug 2023 06:13:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47D9110CA; Tue, 1 Aug 2023 03:12:11 -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 B36C761525; Tue, 1 Aug 2023 10:11:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69C32C433C9; Tue, 1 Aug 2023 10:11:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690884713; bh=Mema2WOgggjRLjdeivhOjSi5gn1KSKttjlm9f2Ugbak=; h=From:To:Cc:Subject:Date:From; b=ZtE0jhP0INdoMt0NEZyGTqVWtT5JhKgQXBsn01xmytSWej5pW6CRuPWX80pbrW4RJ r+yg86qARF+D09fxyJ9wbWW8inJt2sPUmwCyAJRKLy/euBTQAj0OMclx6Yd2OyWKYf U05nVa+gFKDcKJLFcjY6ZOQMkAHG2MLUnQnk69FZRwEixkR+PXGOPxWP4RT9A9Z4fm xxMxMmIUdRMK3PbJzn9r7zvDDkZjxXfQs983LhOH1tI2rddnUfnoGYl3OVaHhuAs0o jp999v4DdwwH1uNgZyc5VD8Cav9Mhqoe4D+winfUGGQNfh0dGFHJjY9235wGZTxhHp opxuJO8WnBq1Q== From: Masahiro Yamada To: Herbert Xu , linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Masahiro Yamada , Catalin Marinas , "David S. Miller" , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: [PATCH] crypto: arm64/aes: remove Makefile hack Date: Tue, 1 Aug 2023 19:11:46 +0900 Message-Id: <20230801101146.1550814-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 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" -- 2.39.2