Re: [PATCH] x86: start annotating early ioremap pointers with__iomem

From: Ingo Molnar
Date: Wed Oct 29 2008 - 03:05:56 EST



* Harvey Harrison <harvey.harrison@xxxxxxxxx> wrote:

> As with regular ioremap, iounmap etc, annotate with __iomem.
>
> Fixes the following sparse warnings, will produce some new ones
> elsewhere in arch/x86 that will get worked out over time.
>
> arch/x86/mm/ioremap.c:402:9: warning: cast removes address space of expression
> arch/x86/mm/ioremap.c:406:10: warning: cast adds address space to expression (<asn:2>)
> arch/x86/mm/ioremap.c:782:19: warning: Using plain integer as NULL pointer
>
> Impact: some new sparse warnings in e820.c etc, but no functional change.
>
> Signed-off-by: Harvey Harrison <harvey.harrison@xxxxxxxxx>
> ---
> arch/x86/include/asm/io.h | 6 +++---
> arch/x86/mm/ioremap.c | 22 +++++++++++-----------
> 2 files changed, 14 insertions(+), 14 deletions(-)

applied to tip/x86/urgent, thanks Harvey!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/