From patchwork Mon Jun 5 07:42:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 103176 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2523701vqr; Mon, 5 Jun 2023 01:10:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ666N9rj9ahBoK9PbyT0Q6kIyRiFmcMS2H/WpqIZSD88ZmAvIDaGpg66Jv/k3r39ahg+jF4 X-Received: by 2002:a17:90b:802:b0:24e:16aa:48 with SMTP id bk2-20020a17090b080200b0024e16aa0048mr2456766pjb.15.1685952630352; Mon, 05 Jun 2023 01:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685952630; cv=none; d=google.com; s=arc-20160816; b=kvCpwZflyTKaChbJF19hkkGS+HRuOH1/wD/K+UDQHLGBPZhoxef3elD5ym3Ij3qbNb r3SL/hyoABD3hB7GQolXynRX0ERZ3iQkUBtpmeWksPewVBnunmJ+phZ5M0+M8Rcwp4aQ Hi3XFrXl5tD0P74Sx6XMd4sB8ahmbtbhu7qhBfDc2dWtsKVqFunX8Wpp7jjEAvOFpNgU djpbU+riSAj/+kVOGWFvr5iK3nPrAdmQsHwi292lr/gbFFK94CRAvn65Wd4sGWDb/IfL FR4jeK8QKQIC6qqojgRIEHESzvXkDPNJsZVybrbrf4PwccA4Lsr0TPStQNwEt9ww0qJU Dlwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Qw4cYUW8ZUoP4ccFH55Bc9+6nY6pcmlB9jT84aOWEKQ=; b=W2bcHfHm3t0e0PaRw0Ofk6i27lhJ3r1NSjHxqlyUQQNN9jkeA6eqVKBOOgRn9sQ8Ux 8pXOXPqK0m+iQ/X0X+sYW0CRfJgQOZgm44R6wvkbWsh2W3Y6XRI6cFWATt+A6mUFmYSV rDndvT6vzOBhtZU02h+HcTjhqkG1U56xjxMTez1Lr1S6VcyUj3U/XG+T0f1hbZct8X01 Ve/eiBeiQ4Awqc1VVpOShXEZcSKcod1Wd7KrgM1XwAdXXQehh8GB7/4DiCoOdOsasck/ svp34kNkKVeSkZ1kjHc5II6j15h22XApTdyGfQSwENfa7Tcq2+thdLOu+0bPDT0VlShr CcOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ljIhzQ6b; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=aBV+DSEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m65-20020a633f44000000b0053f0cdab814si5186984pga.880.2023.06.05.01.10.16; Mon, 05 Jun 2023 01:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linutronix.de header.s=2020 header.b=ljIhzQ6b; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=aBV+DSEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbjFEHn3 (ORCPT + 99 others); Mon, 5 Jun 2023 03:43:29 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767417273422590669?= X-GMAIL-MSGID: =?utf-8?q?1767849465397230469?= 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 */