[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2afab9dc-e39c-4399-ac5a-87ade4da5ab0@app.fastmail.com>
Date: Wed, 19 Mar 2025 22:12:49 +0100
From: "Arnd Bergmann" <arnd@...db.de>
To: "Ignacio Encinas" <ignacio@...cinas.com>,
"Paul Walmsley" <paul.walmsley@...ive.com>,
"Palmer Dabbelt" <palmer@...belt.com>, "Alexandre Ghiti" <alex@...ti.fr>
Cc: "Eric Biggers" <ebiggers@...nel.org>, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-kernel-mentees@...ts.linux.dev,
"Shuah Khan" <skhan@...uxfoundation.org>,
"Zhihang Shao" <zhihang.shao.iscas@...il.com>,
Björn Töpel <bjorn@...nel.org>,
Linux-Arch <linux-arch@...r.kernel.org>
Subject: Re: [PATCH v2 1/2] include/uapi/linux/swab.h: move default implementation for
swab macros into asm-generic
On Wed, Mar 19, 2025, at 22:09, Ignacio Encinas wrote:
> Move the default byteswap implementation into asm-generic so that it can
> be included from arch code.
>
> This is required by RISC-V in order to have a fallback implementation
> without duplicating it.
>
> Signed-off-by: Ignacio Encinas <ignacio@...cinas.com>
> ---
> include/uapi/asm-generic/swab.h | 32 ++++++++++++++++++++++++++++++++
> include/uapi/linux/swab.h | 33 +--------------------------------
> 2 files changed, 33 insertions(+), 32 deletions(-)
>
I think we should just remove these entirely in favor of the
compiler-povided built-ins.
Arnd
Powered by blists - more mailing lists