> It's basically not supposed to be visible on UP. Perhaps a better
> approach would be declare it in pgtable.h as you did, stub out the UP
> case with an empty function, and un-#ifdef it from mem_init().
That wouldn't seem right to me:
* in the UP-case, it is explicitly called in mem_init() [mm/init.c]:
void __init mem_init(void)
{
[...]
#ifndef CONFIG_SMP
zap_low_mappings();
#endif
}
* in the SMP-case, this call is delayed until
smp_cpus_done() [kernel/smpboot.c]
These two cases are fine however, as the UP-case defines it in mm/init.c,
and the SMP-case has CONFIG_SMP enabled and includes <smp.h>; the warning
comes from this function being called from acpi_restore_state_mem()
[kernel/acpi/sleep.c]) in the UP-case, in which case it isn't declared in
<smp.h>.
Bye,
Jasper
-- Jasper Spaans http://jsp.vs19.net/contact/``Got no clue? Too bad for you.'' - 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/