From patchwork Mon Dec 19 15:35:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 13076732 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 4F894C10F1B for ; Mon, 19 Dec 2022 15:43:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E446D8E0005; Mon, 19 Dec 2022 10:43:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E1C858E0002; Mon, 19 Dec 2022 10:43:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A9A8F8E0002; Mon, 19 Dec 2022 10:43:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 936D18E0001 for ; Mon, 19 Dec 2022 10:43:44 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 72354AA063 for ; Mon, 19 Dec 2022 15:43:44 +0000 (UTC) X-FDA: 80259475968.11.C3A8DF7 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf20.hostedemail.com (Postfix) with ESMTP id 64D561C0018 for ; Mon, 19 Dec 2022 15:43:42 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=C89SVOTN; spf=none (imf20.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671464623; a=rsa-sha256; cv=none; b=fbdtQa17ym4M+KrBCyS/Nl6+xGW+x/xFQr22oCkZ7xdt1t7OL/SjLP2MCTyq3TmyO+xB6+ TCfQGrgGpZbKCAfdfBIPAkUp5t9bLNkTXCbrADM3V1IrBp66vBYPP0zTLtuq9tuCPQET+v pgLq8exV9k/0d3SwZsl0xE+/tXjjn24= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=C89SVOTN; spf=none (imf20.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) 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=1671464622; 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=HwKpSq8Syzt9wYk5/qyQZy9JqJElqdY1XVTNG2HpXaA=; b=VEgI9awwFAHlT3MtDkb/a3eeS5DM+mDVkYH7w2BjCv3K7GyimtoQIy2xjmeanSdSHd/N9D 7r6xKWe8NTTS2vP2vvKXMI1jQg4l+Lpd0Au8elh7VDvB5xg4dSU08tOIhEnn6ieswxvb5p 8KUgf65OR/5UnY29RvBMuylek24D0uQ= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=HwKpSq8Syzt9wYk5/qyQZy9JqJElqdY1XVTNG2HpXaA=; b=C89SVOTN4frRfghMH72mO24iYJ pVkZGAAkMqRxVkuH3fpqA8/0D1aFHW6y76H1YnF8kEDFDm33E8UubQcUKhJKpWZG8jDggtq8uBBzW U+SxkTxM4g0Q4uVrYdyNJqtyBLrQ5J7iHfduxeojqYnxDrzaSPCi7ttbP4Dg/mEyo3g341YNDQ5Bj 8CplCFReZ3n2JbDGVtP5MXOFW56RblTJKRv8Kcn9PDdv6XD/jCDzjQgWk8Jwq7PfTGyAOmvYLBOrd tix3uV9D5+yfntLLV6oTkPEC51xWm3pii6k4b1Pg03G6ocA15Z1RIniFBXvpIunHhG6jU70qH5Akn jgEqG5Xw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1p7III-00CeDm-27; Mon, 19 Dec 2022 15:43:11 +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 A20AD302DA8; Mon, 19 Dec 2022 16:43:06 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 6BFEC20B0F89A; Mon, 19 Dec 2022 16:43:06 +0100 (CET) Message-ID: <20221219154119.022180444@infradead.org> User-Agent: quilt/0.66 Date: Mon, 19 Dec 2022 16:35:28 +0100 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, Herbert Xu , davem@davemloft.net, 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 , 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, linux-crypto@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org Subject: [RFC][PATCH 03/12] cyrpto/b128ops: Remove struct u128 References: <20221219153525.632521981@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 64D561C0018 X-Rspamd-Server: rspam01 X-Stat-Signature: pee9pmdwrn9oouyupmtwej6rdj3syo84 X-HE-Tag: 1671464622-364079 X-HE-Meta: U2FsdGVkX19+4ElLBV4f/gM1mNvZtLddqRl5HLpJqzs0dSYzoFyKXAO3lHmZit92gLpCL/WUD2HmkrJtG+ljXZwaiLAXrpCUTeSMTvXm8Z0IchhyK+hgmWyddgDW8Hi5fz1LOYehtFAv/580Q3P+XqY3zlyTUuSXqCyLVGD/mmGYEVQKO/up5ejtc3ZvrDupusmfl+NKjlKRq0i91qdQDmgu47SBE7uPI20sQ3eo7a8P+QFVZLUK3Uu+iVQYA71Utp8tGbjFfkZdVhILKpz9Zd/SjEPKadgs89e6AkZAKNUhKqVG4puIIxSRvgyeKbpldysMJVkqmx59Y/e/1+D5R8rdWD/zD++0MWG8oT0Ikaw09PZfgWnGSwlg/SNHlfCVxIwSrgw2J+IjUWtw5tLMNhBrPP8IuhjvMBpHxxBkWgGHNHNkyAvX8Aj+4cG0bwqnrQZmZY0YH9yY8DPcy85DsSMVA4YxCwYMj7pO3N5kFh0DC+WrpsOUrQDaImvGT+uKtBYvfV/uf5iN7YjdBxAkgbTJl+7gHMUoV6KFH9cNHM0UKH7UKUF6pmjx0X3KsXC+uvQaQWHw5kvU5HZTBRRosA6r5wrkOnNxo6Vmh8UrFq6qI/EY4PjN6bT+kgm7nLg0tJXAT0ZwGdOCjCVi9wH7OVJYprZR8cWxj6mY2aWpi49qgXnSSYp2OsXS+CG96o2NlJV15ZkmkiaBLSSHXiCLMyPh6S6qVyW3YawAr421Gz/OzprYZ1fV7cZ2XAOd3LO+zM1QackqfeZhgJQfA3zh4m5TMlRKf2FYeOwZtGoq1uA/2aJ3+bOZ1xeFZ56AAr+DjKUhJDIXBU0VNsSFFFUeDGlIVQxxRz3gctyAJnNlDmE45EcAgZ7MAPJtllnPYKryWMR9lo5/KqroD72wIlfsm6i/HfFOxRlyTRojExgz3HweRRTQn+uZqL2eTIW3XO+a5aiduhmftNtRaiB0j+j ANw== 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) --- 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 */