From patchwork Tue Jul 31 07:35:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 10550321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD65313BF for ; Tue, 31 Jul 2018 07:36:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B62E229AEA for ; Tue, 31 Jul 2018 07:36:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A906A2A716; Tue, 31 Jul 2018 07:36:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 59A3F29AEA for ; Tue, 31 Jul 2018 07:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=38CcIXkmZSBCsKVuGLFMeeBRH8T8ID+CqA3jxEo3d4c=; b=Way f4zJSjZgXaekosWXDerDq5uCt/Dl+iE+XJ4+t6ZTwENYGo20PjaqvARs25eWydJogoJG7mirTzK4C +emktn4KzDA+imSNRShTB6UKqn2CEQpRhjgjk2xgacHxfJiDG51sLyEDRFXmhew8WMDY7VwWq2UCW uop5lVpUTP3akG82lgcRbg2SukNFoZ5V9Q1q3xyq6d41RqIYNGWW2QVsFLwsxsoQypViJ6LLGOXAD qPOdQFnZWrFPtfqb1KXWJl7PTW3abk6p9f4ipM/hFPouCGweQiTj4+y6O8lQAt5/JCkgzce1S3W7t gtl5AvmTrTiHMPcVEVaOHIga3TyyW6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkPCb-0006zV-9E; Tue, 31 Jul 2018 07:36:17 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkPCY-0006xl-1r for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 07:36:15 +0000 Received: by mail-ed1-x541.google.com with SMTP id o8-v6so5002553edt.13 for ; Tue, 31 Jul 2018 00:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ZPfRkQrxxBNmUMCVgob9O2Yr5yVPmMUNq3ZOPK2WAW8=; b=YDIVmASl3anSxqEYlgtj0pKB2TSVq7+Mmi9IUSqhfoDWK4igMw3st9nLIJ/pdhxo2J XhgYMpsiZ9ti9pAJUU0zjYx/jLLr7tmg1li5R5Ndbe7pzwkZiFVxa6JPimiXXbBKu1Tz 6XiiVw6r4avfgfWIohVd7IC6vhaHKLWbnylno= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZPfRkQrxxBNmUMCVgob9O2Yr5yVPmMUNq3ZOPK2WAW8=; b=mdKcJRW7FQmJW4U4tMbBv66yVPXY9eQMEKx159JLMUJn5X/ELTX08vCqk2Z5DKlgGP TzdYs4JonlxotE7SI170iJoLTPOP450JDYim6D1BNZnwl9hcLqa5DT4lqyqr/w2imv2J nWa73jWFbesgxrEu276BK5EvLi2b/fZGcbTVKNxIlRAhz98Gkhm7sqSrBwmxoZmwlqa9 RUP8ajzc65BjGqljnS4ZopJLeBujXqbCQCCLfqeCW8u6HGUcSUhPHqY2AgMii/wkdsq+ 2ZZsypnNWhfG7ZLXLE1y6pSNzGP8AmtQVEMXb7hNDB3cF2eNnP/1p6pes7nTADW4IHQq qpQQ== X-Gm-Message-State: AOUpUlGETs90CXNGWPqGmDyruJ7DNUAv2jTiYIuyzA4hvgyf8Xfi+dAy V5DVvEidwHGtLtzY8DeibZlNmSVkk8M= X-Google-Smtp-Source: AAOMgpddfrbc7KYMaj+0kDUvVpUuxT4ZMcJ05kxv6Wm69ayhtEYjdlebJms0GPEFu+OuogR4LIDzMQ== X-Received: by 2002:a50:b1f3:: with SMTP id n48-v6mr10995177edd.197.1533022561648; Tue, 31 Jul 2018 00:36:01 -0700 (PDT) Received: from rev02.home (b80182.upc-b.chello.nl. [212.83.80.182]) by smtp.gmail.com with ESMTPSA id g8-v6sm3193915edh.87.2018.07.31.00.36.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 00:36:00 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: drop unused kernel_neon_begin_partial() macro Date: Tue, 31 Jul 2018 09:35:45 +0200 Message-Id: <20180731073545.32607-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_003614_100362_8E5EDDDC X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: will.deacon@arm.com, dave.martin@arm.com, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When kernel mode NEON was first introduced to the arm64 kernel, every call to kernel_neon_begin()/_end() stacked resp. unstacked the entire NEON register file, making it worthwile to reduce the number of used NEON registers to a bare minimum, and only stack those. kernel_neon_begin_partial() was introduced for this purpose, but after the refactoring for SVE and other changes, it no longer exists and was simply #define'd to kernel_neon_begin() directly. In the mean time, all users have been updated, so let's remove the fallback macro. Signed-off-by: Ard Biesheuvel Reviewed-by: Dave Martin --- arch/arm64/include/asm/neon.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/arm64/include/asm/neon.h b/arch/arm64/include/asm/neon.h index f922eaf780f9..fb9d137256a6 100644 --- a/arch/arm64/include/asm/neon.h +++ b/arch/arm64/include/asm/neon.h @@ -19,11 +19,4 @@ void kernel_neon_begin(void); void kernel_neon_end(void); -/* - * Temporary macro to allow the crypto code to compile. Note that the - * semantics of kernel_neon_begin_partial() are now different from the - * original as it does not allow being called in an interrupt context. - */ -#define kernel_neon_begin_partial(num_regs) kernel_neon_begin() - #endif /* ! __ASM_NEON_H */