[lkml]   [2021]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 1/3] ACPI: osl: Add __force attribute in acpi_os_map_iomem() cast
On Mon, Aug 02, 2021 at 04:23:57PM +0100, Lorenzo Pieralisi wrote:
> Add a __force attribute to the void* cast in acpi_os_map_iomem()
> to prevent sparse warnings.

Err, no. These annotation are there for a reason and need to
be propagated instead. And independent of that a __force cast
without a comment explaining it is a complete no-go.

 \ /
  Last update: 2021-08-10 18:47    [W:0.230 / U:2.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site