Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1300118

Re: [PATCH] staging: most: add __iomem for io_base and registers

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] staging: most: add __iomem for io_base and registers
Date 2016-01-02 21:40 +0100
Message-ID <qMB7X-4lr-5@gated-at.bofh.it> (permalink)
References <qMAbU-3Mt-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jan 02, 2016 at 08:30:21PM +0000, Hugo Camboulive wrote:
> This removes a few Sparse warnings.

> +	g.dim2 = (struct dim2_regs __iomem *)dim_base_address;

> -u8 dim_startup(void *dim_base_address, u32 mlb_clock);
> +u8 dim_startup(void __iomem *dim_base_address, u32 mlb_clock);

Umm...  Why not have it take struct dim2_regs __iomem * as argument, and
to hell with that cast?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] staging: most: add __iomem for io_base and registers Hugo Camboulive <hugo.camboulive@gmail.com> - 2016-01-02 20:40 +0100
  Re: [PATCH] staging: most: add __iomem for io_base and registers Al Viro <viro@ZenIV.linux.org.uk> - 2016-01-02 21:40 +0100
    Re: [PATCH] staging: most: add __iomem for io_base and registers Hugo Camboulive <hugo.camboulive@gmail.com> - 2016-01-02 22:00 +0100
    [PATCH v2] staging: most: add __iomem for io_base and registers Hugo Camboulive <hugo.camboulive@gmail.com> - 2016-01-02 22:40 +0100

csiph-web