[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z_19DaVwN2TRt_nG@cassiopeiae>
Date: Mon, 14 Apr 2025 23:24:29 +0200
From: Danilo Krummrich <dakr@...nel.org>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-um@...ts.infradead.org, richard@....at,
anton.ivanov@...bridgegreys.com, johannes@...solutions.net,
geert@...ux-m68k.org, logang@...tatee.com, sbates@...thlin.com,
dinguyen@...nel.org, miguel.ojeda.sandonis@...il.com, arnd@...db.de
Subject: Re: [PATCH v2] rust: helpers: Remove volatile qualifier from io
helpers
On Sat, Apr 12, 2025 at 09:53:41AM +0900, FUJITA Tomonori wrote:
> Remove the `volatile` qualifier used with __iomem in helper functions
> in io.c. These helper functions are just wrappers around the
> corresponding accessors so they are unnecessary.
>
> This fixes the following UML build error with CONFIG_RUST enabled:
>
> In file included from /home/fujita/git/linux-rust/rust/helpers/helpers.c:19:
> /home/fujita/git/linux-rust/rust/helpers/io.c:12:10: error: passing 'volatile void *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
> 12 | iounmap(addr);
> | ^~~~
> /home/fujita/git/linux-rust/arch/um/include/asm/io.h:19:42: note: passing argument to parameter 'addr' here
> 19 | static inline void iounmap(void __iomem *addr)
> | ^
> 1 error generated.
>
> Fixes: ce30d94e6855 ("rust: add `io::{Io, IoRaw}` base types")
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@...il.com>
Reviewed-by: Danilo Krummrich <dakr@...nel.org>
@Miguel: This originally landed through driver-core, but I guess subsequent
patches should go through the Rust tree.
Powered by blists - more mailing lists