Skip to contentSkip to conversation

linux-next: build warning after merge of the akpm tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Feb 28, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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(struct mm_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: add vm_insert_pages()")

--
Cheers,
Stephen Rothwell