]> git.baikalelectronics.ru Git - kernel.git/commit
IO resources, x86: ioremap sanity check to catch mapping requests exceeding, fix
authorIngo Molnar <mingo@elte.hu>
Fri, 26 Sep 2008 08:10:12 +0000 (10:10 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 26 Sep 2008 08:10:12 +0000 (10:10 +0200)
commit3f2f52a127255532ca860b831fa79bf1e024de2a
treea416aa6f6a8e6d38aadd9b3a7976e048a385eea6
parent87717fe1a75f19cfb05170cbdbbce00b98c4cde0
IO resources, x86: ioremap sanity check to catch mapping requests exceeding, fix

fix this build error:

 kernel/resource.c: In function 'iomem_map_sanity_check':
 kernel/resource.c:842: error: implicit declaration of function 'r_next'
 kernel/resource.c:842: warning: assignment makes pointer from integer without a cast

r_next() was only available if CONFIG_PROCFS was enabled.

and fix this build warning:

 kernel/resource.c:855: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'resource_size_t'
 kernel/resource.c:855: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'long unsigned int'
 kernel/resource.c:855: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'
 kernel/resource.c:855: warning: format '%llx' expects type 'long long unsigned int', but argument 5 has type 'resource_size_t'

resource_t can be 32 bits.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/resource.c