From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1730FC7EE24 for ; Mon, 5 Jun 2023 07:43:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229897AbjFEHnb (ORCPT ); Mon, 5 Jun 2023 03:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbjFEHm4 (ORCPT ); Mon, 5 Jun 2023 03:42:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54188DB; Mon, 5 Jun 2023 00:42:55 -0700 (PDT) Date: Mon, 05 Jun 2023 07:42:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685950973; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qw4cYUW8ZUoP4ccFH55Bc9+6nY6pcmlB9jT84aOWEKQ=; b=ljIhzQ6bpvgBelb7c0qfVlU6cp4qFxPSiz/ho6f66RIJlt81XupCfwRDWPtiGjR1YXiRyY 3k+pXnL+IbHFX9IQTq2s+oEvE8l83uXR0NUtWq+UQTzUOBE3J93LB5j3CZ/nCp3BQ4XNxH u3YG3n8PgwSiOl0Z9a4PytfqJzW/dUvUUNxsd4OceMBli5VZNhSoSblLK/GZRek/GS6lG6 QAP3eUXyY+XG6U/opUgwMmpULXfPH+Ow6DxEU9WWynbAT84Xx+EQBoV6K9+hde2qVzQPqi WaQs21Y3WoGajhy1MjW0m5xcjMlZTIQgamTs9ZWW/B/ay0bgio/EIqkYV16W4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685950973; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qw4cYUW8ZUoP4ccFH55Bc9+6nY6pcmlB9jT84aOWEKQ=; b=aBV+DSEqz8FMzrJ6A07GsVZOhfY1NFEEo/AVmIglkRr1PRj+wrDmCvS3Iogq0gCuKSicR9 4uptym5hXJ2yVlCw== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] cyrpto/b128ops: Remove struct u128 Cc: "Peter Zijlstra (Intel)" , Arnd Bergmann , Mark Rutland , Herbert Xu , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230531132323.314826687@infradead.org> References: <20230531132323.314826687@infradead.org> MIME-Version: 1.0 Message-ID: <168595097260.404.2219524989563222493.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: f413e724818c6482146218b3bcaf3d75b1317fc4 Gitweb: https://git.kernel.org/tip/f413e724818c6482146218b3bcaf3d75b1317fc4 Author: Peter Zijlstra AuthorDate: Wed, 31 May 2023 15:08:34 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 05 Jun 2023 09:36:35 +02:00 cyrpto/b128ops: Remove struct u128 Per git-grep u128_xor() and its related struct u128 are unused except to implement {be,le}128_xor(). Remove them to free up the namespace. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Arnd Bergmann Reviewed-by: Mark Rutland Acked-by: Herbert Xu Tested-by: Mark Rutland Link: https://lore.kernel.org/r/20230531132323.314826687@infradead.org --- include/crypto/b128ops.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/include/crypto/b128ops.h b/include/crypto/b128ops.h index 0b8e6bc..f3b37cb 100644 --- a/include/crypto/b128ops.h +++ b/include/crypto/b128ops.h @@ -50,10 +50,6 @@ #include typedef struct { - u64 a, b; -} u128; - -typedef struct { __be64 a, b; } be128; @@ -61,20 +57,16 @@ typedef struct { __le64 b, a; } le128; -static inline void u128_xor(u128 *r, const u128 *p, const u128 *q) +static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) { r->a = p->a ^ q->a; r->b = p->b ^ q->b; } -static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) -{ - u128_xor((u128 *)r, (u128 *)p, (u128 *)q); -} - static inline void le128_xor(le128 *r, const le128 *p, const le128 *q) { - u128_xor((u128 *)r, (u128 *)p, (u128 *)q); + r->a = p->a ^ q->a; + r->b = p->b ^ q->b; } #endif /* _CRYPTO_B128OPS_H */