From patchwork Wed May 31 13:08:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 13262288 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 282E9C7EE23 for ; Wed, 31 May 2023 13:28:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 685168E000C; Wed, 31 May 2023 09:28:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C7758E0008; Wed, 31 May 2023 09:28:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 07F418E000A; Wed, 31 May 2023 09:28:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id E11348E0002 for ; Wed, 31 May 2023 09:28:01 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id AD87DAD990 for ; Wed, 31 May 2023 13:28:01 +0000 (UTC) X-FDA: 80850628362.01.F2CA9EA Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf18.hostedemail.com (Postfix) with ESMTP id 806941C000B for ; Wed, 31 May 2023 13:27:59 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=EJ3ZB+xF; spf=none (imf18.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685539679; h=from:from:sender: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:in-reply-to: references:references:dkim-signature; bh=YmtjcG8l219y7/fwmL50Z5SyZj2N/Dfw7Oi4KDcDI7Q=; b=K3AjB/zn4odBbOkLm3N/fLUnQO0wC1q/Jwq8big0p7zbWTNEgDciFkRRIdiZ5rn+qX5aUM lpcKeX34XJrNyRAIeowsKm6Cfv9HkrV8zdUMoiHmnRjz2Wd7gsdDSYPWnjOKtz9KJIjs6a O9DIggVxi/vSJVQr+vRPK11I0zUlKCY= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=EJ3ZB+xF; spf=none (imf18.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685539679; a=rsa-sha256; cv=none; b=pKnl/SCsa5P3DzU7JAfdpQY7pH0O4Jow97PdKVLzSdOJbNhApLkIlqwmBZ6MEQhNN7DKOG XS4BXPFMqDPmzHq6d/sTD1e94ocJ/eR+2O1ApqJ6JxXTVWJhp6a2yropy8S53Fbqii2x/S rrcKxCZTqg4iNCbdni7uBT3EqSnrg2A= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=YmtjcG8l219y7/fwmL50Z5SyZj2N/Dfw7Oi4KDcDI7Q=; b=EJ3ZB+xFh9CWEpg5yrG6OprVJc 4KY9jm91TcbrWOishlejJY5DbVF4mvlHugJmUDSsE/LkTcn4aim13LF+VunBmsPU6byCiTEoAXFtd PMY9zcKVyFfala+gu6tRVAh8pqQ01ufwI6rMYp7FCuX9C5mYnmZzPRiAM2anoIyZGo4A+qMj6+whs fEmcz0eNH94T1AESxYBFQUp4+DmILfWmyLz1Mx+MZvVIgDEzwKNwADbrfOqw3qVGm86SmNMGYmkIt gygTW9IHI214IRvW/eG2FY8W+9D4Iq6PvRg/jFdhrZleggC2VWlbR3HPvZmIIrMcseVeHlANgsyCs 01q0OpaA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1q4LrG-007IIk-36; Wed, 31 May 2023 13:27:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id F357830068D; Wed, 31 May 2023 15:27:16 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 7D554243B69D8; Wed, 31 May 2023 15:27:16 +0200 (CEST) Message-ID: <20230531132323.314826687@infradead.org> User-Agent: quilt/0.66 Date: Wed, 31 May 2023 15:08:34 +0200 From: Peter Zijlstra To: torvalds@linux-foundation.org Cc: corbet@lwn.net, will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, mark.rutland@arm.com, catalin.marinas@arm.com, dennis@kernel.org, tj@kernel.org, cl@linux.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, joro@8bytes.org, suravee.suthikulpanit@amd.com, robin.murphy@arm.com, dwmw2@infradead.org, baolu.lu@linux.intel.com, Arnd Bergmann , Herbert Xu , davem@davemloft.net, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, Andrew Morton , vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-crypto@vger.kernel.org, sfr@canb.auug.org.au, mpe@ellerman.id.au, James.Bottomley@hansenpartnership.com, deller@gmx.de, linux-parisc@vger.kernel.org Subject: [PATCH 01/12] cyrpto/b128ops: Remove struct u128 References: <20230531130833.635651916@infradead.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 806941C000B X-Rspam-User: X-Stat-Signature: kwybjrsg5mbmaqpaubzx3jti7ibouijd X-Rspamd-Server: rspam01 X-HE-Tag: 1685539679-556498 X-HE-Meta: U2FsdGVkX1/ZcUyVvmyOCBb65B9DC+htQg/yTRkIEPW+G/U5iY4sB1ORHxI3it/odzL0SY3aTwDIWqLjCnwdrevTJhQAzGwRvwQZcpRMWCHvLPEeFC3QELou+4A27UX1tGlfg+zmPqhbFavOJVVf/zRHNfbsV1xu4Du3hVPep8YMIrGtqGI9o8BHEhdJ5w+yI+GrOmvzgXwKns9hBFPvkUjnYXvFH7CFAVlaM6NTsp5lox2PyIufb9ZOEo9L0j+vucDY8rErG9zy+U+hphrFr3QcnGwQkTOm+D6xmj3XduwN0AkywlUGFaxkQHik/zKGJsOdNPVu57cUpRMfO0ZpbiM/f+nY/m63Hs4j8k2iAkYU9d0pkFm42meDbqmVuvMhzbvxwqoxseYK8o2e0FmVOF7FTw8JYPqOZiJfWJ3dyaH3B0i/muol8JGDLButsnAoujuqGu1f0Y3SQzdUbxvy9FMmZ4jBVcwHsK3U/ehlYaBnwSnIyUM77bOSHrUyHY5MbgvaluHTtvlRtIfzrfBN6ozxV3rR3ez45D91PMs+6x0Ci3PeUqm6mV1pkAqsOVn2pb1af5qd31rxOaIq5EmHRzMl7WfP/dRrxca8F+PV4LmJRziIHbvKihRWDwxODX93cUNxCN46Weyjc4BB/eNmf+2CWAeDFfzX2RTonqn1TijIcPD++axkWBgMEI7tpEstuGVPT9eMoye32bsZ+oGX/p8BrbhlGjrh2Z3eueus9z6O6OZqHmwJdZRZLmGYjphpFsf2nPvCueJt7fkReoLDAgOLeK01Rxb5MgW3B4uujNMOGsCAAe6zhXVpjlhCyGM6gmk2VPR2jzvlMwio8p6/Ka2pYYUOYs4kNgnpvADR/sXa0TOHX6Q5H2vKWSX76XFmdxO8mX1TtVSPDj1ouThVkruvUdUKqFCFgsO9JDWf9e+sALVXmS7aVCf/2BWuwhIFF4h6ub/ZOxiH0LKKwJK zxXj/B5e ynUp7WnxZORoj45te5I0P8xtq2jN5qLIQWO72uj9fEshEQYGk2Zhs5aB3sKj0VQrWtlGAznn9xrZxfAzs0X7/d2nXSvkS6O3I96X7j1RJB80MgHH6Vx+SfeZipf0uQ6HcQpxQrZHNlWKXcTha7xvxNeF5tNVgA5ZE5xcVFI/l9OmEHHi+oVFxgaPFNod3aFLt+MUEdoOGFCLP9bLQHZxisnA6EDUDz/Tl3FqDyA4xqrVfUb98NSiNMxDDd87tzR/DKp7x6i4lG6zvFSbs+SGMR0qYV0joJN7Erk4900PEGkBAtCEYEuLJ1jS48U3cB72WNXIdA6TsHvKY0XAk9iOelj/kHg1DnfNLl6IuupHM6Oz0QpmdmdqegVeq//Xpx8r2umr6ws1fJ7gENnDUKid5YfUhiQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 --- include/crypto/b128ops.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) --- 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 */