Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Fix GCC-4.6 'set but not used' warning in arch/mips/mm/init.c

Under some combinations of CONFIG_*, lastpfn in page_is_ram is 'set
but not used'. Mark it as __maybe_unused to quiet the warning/error.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2033/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

David Daney and committed by
Ralf Baechle
d3ce0e98 91b51f30

+1 -1
+1 -1
arch/mips/mm/init.c
··· 324 324 void __init paging_init(void) 325 325 { 326 326 unsigned long max_zone_pfns[MAX_NR_ZONES]; 327 - unsigned long lastpfn; 327 + unsigned long lastpfn __maybe_unused; 328 328 329 329 pagetable_init(); 330 330