linux-next: build warning after merge of the char-misc tree
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")
Signature · 2 lines
Cheers, Stephen Rothwell
wt., 2 paź 2018 o 11:12 Stephen Rothwell <[email protected]> napisał(a):
Quoted 10 lines
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)^~~~~~~~~~~~~~~~~~~~~~~~
Quoted 7 lines
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
Quoted 3 lines · Bartosz Golaszewski
this looks like a false positive - this routine is used in
./drivers/nvmem/core.cat line 943 in this revision.
Note that the caller is under
#if IS_ENABLED(CONFIG_OF)
so this warning!
--srini
Quoted 1 line
Best regards,
wt., 2 paź 2018 o 11:56 Srinivas Kandagatla
<[email protected]> napisał(a):
Quoted 15 lines · Bartosz Golaszewski
Quoted 3 lines
this looks like a false positive - this routine is used in
./drivers/nvmem/core.cat line 943 in this revision.Note that the caller is under
#ifIS_ENABLED(CONFIG_OF)
so this warning!--srini
Quoted 1 line
Best regards,
Right. Let me fix that then.
Thanks!
Bartosz