From patchwork Sat May 20 10:49:05 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: 96756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp284702vqo; Sat, 20 May 2023 03:53:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Z/xKUYpK3gN1QBdedfcdabyhYCx0Yq6sJRy2Xt5K8rGaMgk4OccWSnfJbS0kxTf0QvXNM X-Received: by 2002:a17:902:740a:b0:1ac:807b:deb1 with SMTP id g10-20020a170902740a00b001ac807bdeb1mr5323288pll.38.1684580022805; Sat, 20 May 2023 03:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684580022; cv=none; d=google.com; s=arc-20160816; b=qpYzCAH2feaAZomif/Rw0Sfn3yuhv40E6SB6vbH3ix10lGtxVwcGQvCO+FDNkjal2x kSBoYugGd0C4GGNE3PH/H3nceZ2HlTzvchhfF4pnsvy7sA5NuHKL5xSR+x5+vdd0tmOx uwMB/na+9fM1Hc8qXiG2UQ1mkcLz6VzWRZgg2+G5ldg9/Fbr3sY0bLArq7oDMYhaRevW E/ZJZAxk+2WEkiANRCCPw9E/QTdkwnnN8w+22WOIxiCXGz+LHCI07/fAbExHNt9ebaR4 fLzAFgbjoH7M86bbqNN+RXlSLeXkYGlLCUu5EMT+6e41UiIUS8cNX0kriMd4uNXr1GnD nKWg== 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=d9heDPoj8Z+mlwzB7nznnw7IVG9CDvfDKPj3o7QB/QI=; b=0KnD9avjn7RB70+G+Fwz2qYpr3KP/JtLAPqMNLVdqozCtCDpm66QuszG0Sc80Hy/7x ll054EPFEiIxdHmNWwBoTj7keGgxFt47PjZlMKNIcMvwGTLhGG2Fz2Y37KLAmGt/qX/t Wc1p7UTC2Av3zN6aMxaEDsBirf2fJmDbbikeChH01O79DXRLck+GJfFgLtdD3AxhbGPD tTTPwFWeof63tyLZyzEL1yUI7i6Qd13OU4alAwSGStwfYMQzKmHSoKICEzewOFr8Th9m Q7juLkzgXmAT0Ok4udIhwINJsjxKlbjpHa+RD+//CEBjJA9tphbhZjoqLEu0Jg3bJxxd Xeew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lbCnvci1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 g1-20020a1709026b4100b001a4ee6ec8d3si1203565plt.65.2023.05.20.03.53.28; Sat, 20 May 2023 03:53:42 -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=lbCnvci1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231622AbjETKtc (ORCPT + 99 others); Sat, 20 May 2023 06:49:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbjETKtJ (ORCPT ); Sat, 20 May 2023 06:49:09 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCFC4E49; Sat, 20 May 2023 03:49:07 -0700 (PDT) Date: Sat, 20 May 2023 10:49:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684579745; 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=d9heDPoj8Z+mlwzB7nznnw7IVG9CDvfDKPj3o7QB/QI=; b=lbCnvci1LFsz8fckqAtPkqvVx0bT8X0mGeRIPDnayPs5yOAYfYRpZBqtPEIRn1V2xbHxYx eSug79/hchrmu420WeDzvno0Y61e/jihNov1Fgth2nfp30M44vpps2/GUo90QGZcQWj4XA uveSDuXP5wLUKFcMzo/uJ639QI4IbOL8SrAmHqDo9CqPnxvdvf6nroe862dmc89yJgX3S9 8wTjRYqL4n4Urm0NVcRUm0b0im2uEnBtmtQh3M4Y7jLGGbYozySyG4bdyg4GGK2I5TRlR9 k1RXjULxNMYHq1DEFvMLY2ym95rALVZ3AoqycZXq+DJW8alpSNrsYI4tF0AvIA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684579745; 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=d9heDPoj8Z+mlwzB7nznnw7IVG9CDvfDKPj3o7QB/QI=; b=pXQKucuo86m0ZT05l/H5JkWBT4PjmxfQmsPdvX1oj7q1UxINKHAIp3HuXJYTfoSxLa+t6y 71QBAVYjS9bq6RAw== 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 , Herbert Xu , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230515080553.979680310@infradead.org> References: <20230515080553.979680310@infradead.org> MIME-Version: 1.0 Message-ID: <168457974513.404.3421776135547286788.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,URIBL_BLOCKED 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?1765947989770710484?= X-GMAIL-MSGID: =?utf-8?q?1766410182495167955?= The following commit has been merged into the locking/core branch of tip: Commit-ID: f49a2237d34009e1623fd04a5f3c34ea39dd5792 Gitweb: https://git.kernel.org/tip/f49a2237d34009e1623fd04a5f3c34ea39dd5792 Author: Peter Zijlstra AuthorDate: Mon, 15 May 2023 09:57:00 +02:00 Committer: Peter Zijlstra CommitterDate: Fri, 19 May 2023 12:35:10 +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 Acked-by: Herbert Xu Link: https://lore.kernel.org/r/20230515080553.979680310@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 */