From patchwork Thu Feb 2 14:50:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 13126376 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 F354CC636D6 for ; Thu, 2 Feb 2023 15:29:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EE6986B007B; Thu, 2 Feb 2023 10:29:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E47766B007D; Thu, 2 Feb 2023 10:29:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C4AD66B0081; Thu, 2 Feb 2023 10:29:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A3F3D6B007D for ; Thu, 2 Feb 2023 10:29:22 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 767C8160301 for ; Thu, 2 Feb 2023 15:29:22 +0000 (UTC) X-FDA: 80422735764.17.B59B063 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf02.hostedemail.com (Postfix) with ESMTP id 1CAD58001C for ; Thu, 2 Feb 2023 15:29:19 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=f3v2Mpvq; spf=none (imf02.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=1675351760; a=rsa-sha256; cv=none; b=IgUmSmHKj98z/oYhjTrRejztx3q02wO4bfsBQF2o5Db1MG6Pw2P1VGb3PcRDlRoRPEf7gz 3RY2EpciPCVrpa4xQoTwUh6tJG9yLkfqU7Pum92DueHCRRqLso8v5SgEgYTpRK/6fL5eog MhIgLFy18CLFeOUx3c9BOGUQltmqOrQ= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=f3v2Mpvq; spf=none (imf02.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=1675351760; 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=AFQjxL6FdWue3VoSO9GOqL1Z3JAaC/3umC2uphU3EuaQ8zJRDiPZ8i6owsL78vDbZ5jGhY P1Rv9VPU6+iCffwflkwrXtPuOmtumQGDzX4DAeKtvh0ywZsexWs1rr/WLNs/uSW9Z9wMtR dyiF2EVbx5Bblh7ynC2VduRXoP9wj2c= 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=f3v2Mpvql11MUtfS2akSYxDAG8 Ac5da3MJnPyezReQuN4422epSgtiTYlOzqFuLziYo5jZeTrm9iZPT5QJe+fFKqJwYW56ZUpGr6HnN Jw/4Md5ktVKhlOKxTGSjiWtdNcPeZvnsfgFEC8IsK3XWjhnC1R0p3zqW529oo6T1L+wdRSNvX9STe 449/8ucwS1cVcvCHuhBOmCM9ldEQcPLoS3Q5cA6/BR6V5oNZGr2xuoUNuwbYsv6IopHfJEcW0eLuT rgfknVDH6HJm2BPg+cXG0OAiLn51lYPVxMn5CAgHbJsHd7GF1ZtruDek7QZeeDh5qqO1xYt7zWrEI /6jtD8KQ==; 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 1pNbVT-005CFh-1o; Thu, 02 Feb 2023 15:28:12 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 077F13010E0; Thu, 2 Feb 2023 16:28:40 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 8330A23F31FB5; Thu, 2 Feb 2023 16:28:40 +0100 (CET) Message-ID: <20230202152655.250913242@infradead.org> User-Agent: quilt/0.66 Date: Thu, 02 Feb 2023 15:50:31 +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, 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 Subject: [PATCH v2 01/10] cyrpto/b128ops: Remove struct u128 References: <20230202145030.223740842@infradead.org> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 1CAD58001C X-Rspamd-Server: rspam01 X-Stat-Signature: 94mahfw7p8dkyfdnkr1n8dejabsbx373 X-HE-Tag: 1675351759-962675 X-HE-Meta: U2FsdGVkX1/Q8hJbdNSYkXr1PTqvYHKQIxmmHIQdW7fxb4d7+teE7okZYaagZLsilnh8im0pViX/+PEPhYWXrhZHgZpFnamzZRirMvWcNw9qxcQo88uetGziqus0oYIPxz7Y2K4ms5DYEotF/bf4+aL6VDF+RvwrNrhqZZxJ0hu503fheSbatTAIPHyawOo0ruV6hNc6nxiTgkWVp7by2nU2XYwAsaTPiGzMpzjmvqcWoP8lbDlZRxb8916njynRjS/Bw/KGVFZWT05acgwM5dwH1zHHJSpQ9f8syYxCy9amZ3i6H2aqEROCxEsZjWPL6ecJjmcw3Yy6Itmqz+fuOH8pzuZJYogGZqFycuwyKoMBbn4Uaga14P/INYuzGUho+dGM3TWUZID9efTNmtslaB7nFFTUuGqOFwu2On8+JLp4nKKatjs49nYUYTGY8ZwjpOMHGzGQRYv3jmo79Grx+boOpguVgt/WP8JZghbZ0zEwsEyNKk3uyhbjhUwuACXjzAmdmzoedbZVOSeskhUkOaWv92gI2leUkal8D74tBt/rDUg9d/k9WyQxqanrPmMBUjrQzSYu1vSJJmzR1mCij4qO6nhdAHD6DHUo597/+xIE7yT1RjBMMXj4SeZ7RFq9CQ9gqeLxUDUUmczqXLI6GfYqwP+034lgEJC8W/3cMTlNlyHiOiVRGshDyw65mXWYKa8I+NpAr0OgKDPtmyQagjE73SUTcCYF981Q7XGUWHqD7SnzhDTOnSr0XIAbRTr3/6r7oXWo9MA13YBMm+Pgpdw3x1+lMdZojvFnxXMniKsvavjWTedUUpFWXwmYRNb466halLSHWsIRhzPqqxNr1Fg4GlBJQ2YgDCFrBi6X5+i7uOvK3EAGRPs0/att8fZxKMFIrb2fGQnbbZQ9igbKYT7tov1BA/siZbVoz8gthche9OQB0kMh6TaBImeScUeR0oHjw0JxpWmhIjNUTnh 7l7+8qoa /TyAiggWAzytchu0SV4mqVJ9A8Rqp0sffiLHO/v1yvgdtidL8a/+GC2IdhFmEoedcuaMZVOROcPjMs8Ja7kzIoq4c7Rfco9W2KrZ+7FYUEpq1vZuoscQPOT4X+SZNRs5EW/Yi2zBnTIZ6EhRGQjehmDAyrMWNLqhizvzXmKJ26xzMTP8bF7CuEth8DCV1wBx/fUvHTZOV8JiaMP8sFWDz8GOQLmQaHvMWN+02vBF9bvmKkGOb/FRkdb+I4SCbVrFYwS1c57MIJk7+e/HwuwyOAZ1NyuV5v0w0MgZ4Jz217rciAhtSOcHmwI2mzxkNk8DOgegGRH2i4POpA0JPI9351jCPGC5ONEAp2foXfhCS0rHWehU= 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 */