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

Michael Ellerman mpe at ellerman.id.au
Thu Aug 13 11:44:24 AEST 2015

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 <dja at axtens.net>
> Acked-by: Michael Neuling <mikey at neuling.org>

Applied to powerpc next, thanks.



More information about the Linuxppc-dev mailing list