Skip to content

Commit d3ce0e9

Browse files
David Daneyralfbaechle
authored andcommitted
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>
1 parent 91b51f3 commit d3ce0e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/mips/mm/init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ int page_is_ram(unsigned long pagenr)
324324
void __init paging_init(void)
325325
{
326326
unsigned long max_zone_pfns[MAX_NR_ZONES];
327-
unsigned long lastpfn;
327+
unsigned long lastpfn __maybe_unused;
328328

329329
pagetable_init();
330330

0 commit comments

Comments
 (0)