Re: [PATCH 0/7] Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes

2023-08-24 Thread Stanislav Kinsburskii
On Fri, Apr 28, 2023 at 08:40:51AM +0100, Arnd Bergmann wrote: > On Sat, Apr 15, 2023, at 12:17, Stanislav Kinsburskii wrote: > > This series is aimed to address compilation warnings when a constant pointer > > is passed to virt_to_phys and isa_virt_to_bus functions: > > &

[PATCH 6/7] powerpc: asm/io.h: Expect immutable pointer in virt_to_phys prototype

2023-04-28 Thread Stanislav Kinsburskii
From: Stanislav Kinsburskii These helper function - virt_to_phys - doesn't need the address pointer to be mutable. In the same time expecting it to be mutable leads to the following build warning for constant pointers: warning: passing argument 1 of ‘virt_to_phys’ discards ‘const’ qual

[PATCH 0/7] Expect immutable pointer in virt_to_phys/isa_virt_to_bus prototypes

2023-04-28 Thread Stanislav Kinsburskii
‘const’ qualifier from pointer target type The change(s) is the same for all architectures, but it's split into a series on per-arch basis to simplify applying and testing on the maintainers side. The following series implements... --- Stanislav Kinsburskii (7): x86: asm/io.h: E