Thread (14 messages) flat view 14 messages, 3 authors, 2015-08-13

Re: [4/4] cxl: sparse: Silence iomem warning in debugfs file creation

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2015-08-13 01:44:25

On Fri, 2015-07-08 at 03:18:20 UTC, Daniel Axtens wrote:
An IO address, tagged with __iomem, is passed to debugfs_create_file
as private data. This requires that it be cast to void *. The cast
creates a sparse warning:
/scratch/dja/linux-capi/drivers/misc/cxl/debugfs.c:51:57: warning: cast removes address space of expression

The address space marker is added back in the file operations
(fops_io_u64).

Silence the warning with __force.

Signed-off-by: Daniel Axtens <redacted>
Acked-by: Michael Neuling <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/83c3fee7e78f5a937b73

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help