Re: [PATCH v2] x86/hyperv : Fixing removal of __iomem address space warning

2023-11-06 Thread Abhinav Singh
On 11/5/23 20:55, Michael Kelley wrote: From: Abhinav Singh Sent: Monday, October 30, 2023 3:50 PM This patch fixes two sparse warnings 1. sparse complaining about the removal of __iomem address space when casting the return value of this ioremap_cache(...) from `void __ioremap*` to `void*`.

RE: [PATCH v2] x86/hyperv : Fixing removal of __iomem address space warning

2023-11-05 Thread Michael Kelley
From: Abhinav Singh Sent: Monday, October 30, 2023 3:50 PM > > This patch fixes two sparse warnings > > 1. sparse complaining about the removal of __iomem address > space when casting the return value of this ioremap_cache(...) > from `void __ioremap*` to `void*`. > Fixed this by replacing the

[PATCH v2] x86/hyperv : Fixing removal of __iomem address space warning

2023-10-30 Thread Abhinav Singh
This patch fixes two sparse warnings 1. sparse complaining about the removal of __iomem address space when casting the return value of this ioremap_cache(...) from `void __ioremap*` to `void*`. Fixed this by replacing the ioremap_cache(...) by memremap(...) and using MEMREMAP_DEC and MEMREMAP_WB f