• Ingo Molnar's avatar
    IO resources, x86: ioremap sanity check to catch mapping requests exceeding, fix · 13eb8375
    Ingo Molnar authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    13eb8375
resource.c 20 KB