[PATCH] irqdomain: um: use irq_domain_create_linear() helper

2025-04-15 Thread Jiri Slaby (SUSE)
um_pci_init() open-codes what the irq_domain_create_linear() helper does already. Use the helper instead of open-coding it. This needs retval checking modification. Signed-off-by: Jiri Slaby (SUSE) Cc: Richard Weinberger Cc: Anton Ivanov Cc: Johannes Berg Cc: linux-um@lists.infradead.org ---

Re: [PATCH] um/asm: Replace "REP; NOP" with PAUSE mnemonic

2025-04-15 Thread Uros Bizjak
On Wed, Apr 16, 2025 at 7:53 AM Uros Bizjak wrote: > > On Tue, Apr 15, 2025 at 7:56 PM David Laight > wrote: > > > > On Mon, 14 Apr 2025 16:55:57 +0200 > > Uros Bizjak wrote: > > > > > Current minimum required version of binutils is 2.25, > > > which supports PAUSE instruction mnemonic. > > > >

Re: [PATCH] um/asm: Replace "REP; NOP" with PAUSE mnemonic

2025-04-15 Thread Uros Bizjak
On Tue, Apr 15, 2025 at 7:56 PM David Laight wrote: > > On Mon, 14 Apr 2025 16:55:57 +0200 > Uros Bizjak wrote: > > > Current minimum required version of binutils is 2.25, > > which supports PAUSE instruction mnemonic. > > > > Replace "REP; NOP" with this proper mnemonic. > > > > No functional ch

Re: linux-next: Tree for Apr 14 (UML [2])

2025-04-15 Thread Randy Dunlap
On 4/14/25 12:15 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20250411: > on i386 defconfig: ../arch/um/kernel/um_arch.c:480:6: warning: no previous prototype for 'text_poke_sync' [-Wmissing-prototypes] 480 | void text_poke_sync(void) | ^~ on x86_64 de

Re: [PATCH v2] rust: helpers: Remove volatile qualifier from io helpers

2025-04-15 Thread Miguel Ojeda
On Sat, Apr 12, 2025 at 2:54 AM 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 CONFI

Re: [PATCH v2] rust: helpers: Remove volatile qualifier from io helpers

2025-04-15 Thread Miguel Ojeda
On Sat, Apr 12, 2025 at 2:54 AM 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 CONFI

Re: [PATCH v2] rust: helpers: Remove volatile qualifier from io helpers

2025-04-15 Thread Miguel Ojeda
On Tue, Apr 15, 2025 at 6:54 PM Arnd Bergmann wrote: > > Rihgt, I tried this last week when it came up first, removing the > 'volatile' annotations in the asm-generic/io.h header and then > all the ones that caused build regressions on arm/arm64/x86 > randconfig and allmodconfig builds. This patc

Re: [PATCH] um/asm: Replace "REP; NOP" with PAUSE mnemonic

2025-04-15 Thread David Laight
On Mon, 14 Apr 2025 16:55:57 +0200 Uros Bizjak wrote: > Current minimum required version of binutils is 2.25, > which supports PAUSE instruction mnemonic. > > Replace "REP; NOP" with this proper mnemonic. > > No functional change intended. > > Signed-off-by: Uros Bizjak > Cc: Richard Weinberg

Re: [PATCH v2] rust: helpers: Remove volatile qualifier from io helpers

2025-04-15 Thread Arnd Bergmann
On Tue, Apr 15, 2025, at 18:28, Miguel Ojeda wrote: > On Sat, Apr 12, 2025 at 2:54 AM FUJITA Tomonori > wrote: >> >> /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) >> |

Re: [PATCH v2] rust: helpers: Remove volatile qualifier from io helpers

2025-04-15 Thread Miguel Ojeda
On Tue, Apr 15, 2025 at 9:14 PM Miguel Ojeda wrote: > > Applied to `rust-fixes` -- thanks everyone! > > [ Reworded for relative paths. - Miguel ] Also: [ Arnd explains [1] that removing the qualifier is the way forward (thanks!): Rihgt, I tried this last week when it came