linux-next: build warning after merge of the akpm tree
Hi all,
After merging the akpm tree, today's linux-next build (sparc defconfig) produced this warning:
mm/memory.c:1463:12: warning: 'insert_page_in_batch_locked' defined but not used [-Wunused-function]
static int insert_page_in_batch_locked(struct mm_struct *mm, pmd_t *pmd,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Introduced by commit
4a879e02dd49 ("mm/memory.c: add vm_insert_pages()")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 10 lines · Stephen Rothwell
Hi all,
After merging the akpm tree, today's linux-next build (sparc defconfig) produced this warning:
mm/memory.c:1463:12: warning: 'insert_page_in_batch_locked' defined but not used [-Wunused-function]
static int insert_page_in_batch_locked(structmm_struct*mm,pmd_t*pmd,^~~~~~~~~~~~~~~~~~~~~~~~~~~
Well, that's certainly a step in the right direction if it compiles :)
I guess having this function be within the ifdef is the way to make this warning go away.
I'll, er, make a v3 patch.
-Arjun
Quoted 7 lines
Introduced by commit
4a879e02dd49("mm/memory.c: addvm_insert_pages()")--
Cheers,
Stephen Rothwell