Re: linux-next: build warning after merge of the char-misc tree

From: Bartosz Golaszewski
Date: Tue Oct 02 2018 - 05:49:37 EST


wt., 2 paÅ 2018 o 11:12 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> napisaÅ(a):
>
> Hi all,
>
> After merging the char-misc tree, today's linux-next build (i386
> defconfig) produced this warning:
>
> drivers/nvmem/core.c:496:1: warning: 'nvmem_find_cell_by_index' defined but not used [-Wunused-function]
> nvmem_find_cell_by_index(struct nvmem_device *nvmem, int index)
> ^~~~~~~~~~~~~~~~~~~~~~~~
>
> Introduced by commit
>
> e888d445ac33 ("nvmem: resolve cells from DT at registration time")
>
> --
> Cheers,
> Stephen Rothwell

Hi Stephen,

this looks like a false positive - this routine is used in
./drivers/nvmem/core.c at line 943 in this revision.

Best regards,
Bartosz Golaszewski