From patchwork Mon May 22 10:27:29 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: 97248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1349766vqo; Mon, 22 May 2023 03:44:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lKUo/JvWDldItR7ExAbNsGx2K/82XhbbmuU9+RAHatExPIq6STb2Ti0qpnmGCVm+M8H/v X-Received: by 2002:a05:6a21:78a4:b0:10a:eea0:6987 with SMTP id bf36-20020a056a2178a400b0010aeea06987mr6700965pzc.26.1684752273017; Mon, 22 May 2023 03:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684752273; cv=none; d=google.com; s=arc-20160816; b=L1Vx5hydk3BqK6WJD1bti/GoWnNnoWInYRvPVcW1BgnASOYVtG+nBjZ4/XJsRIL6dx /rvKpODpPGKbPmapNuujkbvWvQEiBGQsRefM3X4mD+4KqiiYnOiOPk3eGP5UHkn1Og3l xxES4i47/AvCcmmD4eCNc4dSsePf9SPbFf+kpMfey68nMIRQNpe5qBSIYBl8IGTnTZB9 ZOEMd0XXwmFm1N947APjhrYC+J5WE9r+dXB0itRBDsIh1xtMIe55SYMKbPWDt1uhnbis EIHo3j2GkdvJTFTTrwzX5yS3n08nhGgLaVa7OM2Vpo3zZ4tscyYVv7w9vwJUDmn9G0G1 thbA== 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=VzyXP4hVCcK/17zriU+/w8Hkk7jEXR8ezZjpNt1ijzw=; b=oCAb72T1HAeD7lWTvirRztOabuM+VlmTONLU1TAru7xo9OhUU+4nj2/Zk1wTaeERL0 E/KcJZLTmFoW0XdzYpWGL0uk8TP9UaMKMbTPh7is/Qq2uFnqGa6QPoDPJydBlvjx1Cqc 47UrhLcU7kdr6WCN/x/4MiGFhkBZa0IeeO9/HwNrxlr0HF/ZXTGoaDllGcaTGBuGkaUQ 8gMMSIDiGPZslM+QqDgjWoitrKgakSvor0vFel4XGlvhZDYossvFZYTvLKP2sPdk73md gN1kQ2hz3GJuLiJt9ojPfIkX7D8/4HVF9qqcsEPqfGWi7kEbv8p71PhspOmHnml+iT5e 1SrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KV7rQe3Q; dkim=neutral (no key) header.i=@linutronix.de; 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 z11-20020aa7990b000000b0064d2df630a7si3002728pff.136.2023.05.22.03.44.18; Mon, 22 May 2023 03:44:32 -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=KV7rQe3Q; dkim=neutral (no key) header.i=@linutronix.de; 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 S232125AbjEVK2X (ORCPT + 99 others); Mon, 22 May 2023 06:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232779AbjEVK1f (ORCPT ); Mon, 22 May 2023 06:27:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 930DB18B; Mon, 22 May 2023 03:27:32 -0700 (PDT) Date: Mon, 22 May 2023 10:27:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684751250; 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=VzyXP4hVCcK/17zriU+/w8Hkk7jEXR8ezZjpNt1ijzw=; b=KV7rQe3QqrzhCajSCyUPwCF7iMiJUYmaYX//d/vm6b5yfJRCWkHrLbbB81swygc/xMjyEG aW7EwXQKN59Xytwt47YPP+0rcJeo26TwFi9upOD/bbIB8eiKaVIcIoVw5diqUG3Q7IqPYi CyYTvZ8QDCb75DlaRkAEMusjI7gEsAU4FywpsS3R5gsQ+MBXCnqMIW0EFolQ/NJR8Dyvt/ WNnDN+pe9+Y8Yqr7OkFKh2LobwPWRLYjd17XqRbj8Mogpb5OB3n5enGCAG/ivJ9+NdC/rU Ez55sBKJsHA0rnCaVR9pw1utMooz9+MpE22gzZJPf5yMhZxAwzEB2RYsrhOapg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684751250; 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=VzyXP4hVCcK/17zriU+/w8Hkk7jEXR8ezZjpNt1ijzw=; b=X4F3f7HZiDY+E1qAi5RygmT+22tyBF5mhiu2Fm93r1Bs/B9LjTcgp/go5vwxY10nMMZhZE UDU/Y8w/GVpd0rCg== 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: <168475124977.404.12847931801053325944.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?1765947989770710484?= X-GMAIL-MSGID: =?utf-8?q?1766590799363068966?= The following commit has been merged into the locking/core branch of tip: Commit-ID: a42d381f16c00d894ef56e579035d8db3552bc61 Gitweb: https://git.kernel.org/tip/a42d381f16c00d894ef56e579035d8db3552bc61 Author: Peter Zijlstra AuthorDate: Mon, 15 May 2023 09:57:00 +02:00 Committer: Peter Zijlstra CommitterDate: Mon, 22 May 2023 10:49:48 +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 */