]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: start annotating early ioremap pointers with __iomem
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 29 Oct 2008 05:46:04 +0000 (22:46 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Oct 2008 07:05:14 +0000 (08:05 +0100)
commit1d6cf1feb854c53c6d59e0d879603692b379e208
treea5cd3e669ffd66f3b5b666d44dd2ebd6227600d3
parent9352f5698db2c6d7f2789f6cd37e3996d49ac4b5
x86: start annotating early ioremap pointers with __iomem

Impact: some new sparse warnings in e820.c etc, but no functional change.

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

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/io.h
arch/x86/mm/ioremap.c