From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartosz Golaszewski Subject: Re: linux-next: build warning after merge of the char-misc tree Date: Tue, 2 Oct 2018 11:49:23 +0200 Message-ID: References: <20181002191236.0aa50539@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20181002191236.0aa50539@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org To: Stephen Rothwell Cc: Greg KH , Arnd Bergmann , linux-next@vger.kernel.org, Linux Kernel Mailing List , Bartosz Golaszewski , Srinivas Kandagatla List-Id: linux-next.vger.kernel.org wt., 2 pa=C5=BA 2018 o 11:12 Stephen Rothwell napisa= =C5=82(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 b= ut 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