Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2243284imm; Wed, 3 Oct 2018 00:21:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV60xOQOUkCf0vAte6qdnJ2kRHIp3i2x03DbDm8/rXAVDyWUbftqUtKgVh9eEjdvjyCPHQbwN X-Received: by 2002:a17:902:5a0f:: with SMTP id q15-v6mr171009pli.253.1538551262039; Wed, 03 Oct 2018 00:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538551262; cv=none; d=google.com; s=arc-20160816; b=lj6CYyoXEnquCM/CD1qJ+br0mqq6poliMt5j7vzvjUNg2Y2cTR+KHcLq+tl9VB8gst SHTfmQ9eZDcEC7demfk4dAnjaysDMfnMEbIHNRarlKCRsYKyyuFdWCoc00CxodkPJdYO xV4sICb8lXvtNN354blCTPZmmJM7jmEBiZcQ2lTo4MWLLGudP1exYEtKfv+T69y2Itoq HuFNzVpOWnwepnu6+W/xWzC3wrGm62zHJKdJILgIo9trAi9pEffWQOePk9ga8CMUkelw G3EBznR+Rgy9+Wev7jtqXCGmc7+nMcH6I9T5cVVpqPeo3l4/SxWtsoyqwVlFphQd03KZ QLVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dk+5GMIbCAeOVq2ic0sJhFpiIFoj4BpxUB2q5E1Rfo4=; b=z+EDWlqvQbOuIj1DdHbT+eD/+bgJAZx3JRJuWaIo3d2TpezOWV35DD92UvRE5RDv0H KpIbUQas3DT1iFTwRxFZiBl4tSaZkBA4JmM7EE3nHrrikLoAk9ENfhfW4LZAhBGbFOnb PaON/AI8Ph432DmsKAXzx+YjVsvpyAeiushhfS6i6BLgRdoytop9zGE84lT40/4bJBmL Rlc7AbKebUIgvnaNNusHh11wIE7d52xegYI5gpPTRkR7nPzXX3/zcJ9wY9qB5eHvKTHq iRVb5N579dCAUneHLT9tkd1o5p7Np0snxZREa5w1x5iYZCP7jd3y6X1RheEN926LVq5k DV0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=HlwdzP8I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38-v6si632860pln.129.2018.10.03.00.20.47; Wed, 03 Oct 2018 00:21:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=HlwdzP8I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbeJCOG0 (ORCPT + 99 others); Wed, 3 Oct 2018 10:06:26 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:34751 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbeJCOG0 (ORCPT ); Wed, 3 Oct 2018 10:06:26 -0400 Received: by mail-io1-f65.google.com with SMTP id k19-v6so4224607iom.1 for ; Wed, 03 Oct 2018 00:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=dk+5GMIbCAeOVq2ic0sJhFpiIFoj4BpxUB2q5E1Rfo4=; b=HlwdzP8IysocVtiQi3swLgQ8VCqLjSNMVdWxE4FqhoSTR5CNnANecTM7wqzh1REIc4 AO1YRW6HX+3R5to1n1anlAUGUFAwlqgR9DHsKDnV0H2cfdkuMC1aKZt6EQvcTg+RjZCT UuC+mdyFzJqHTyeSK8WRx9X9w8gs7bXMEI0mxlYwBcU0jmIegwVCxh5D6i3RU7YCTAGQ qegk5vohDl+4OHaqLVdkY6PSK/G3GgPV1cr2i/JfP7TG7rDZb/7eEgsR/Y6ksClOcJFk ZJiHezLKj1wByT8f/E5Yse1yXmAUMcQecneiYnWtA7UIY36fi0nK9uIb5eU0+hDLu6zk K3Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=dk+5GMIbCAeOVq2ic0sJhFpiIFoj4BpxUB2q5E1Rfo4=; b=XCeASxAUcxVIQrj4aONc0M8pr+n7bqIBK3N4URBNiClH00pcCl23cShd44+3vaMSmT TKg32AW7KY3YBMsNiZPlUS5ca8gZbaOj14kZdiQcga44J5TULMenrFvMVfLkBNePq4j9 rcUosuqTAV8P9q7StDXIFjIfwzuEnaQuoRXdxVWmkuLUzjWpEns3hx8wbp7U2oygFA2J PgciCJehK8M9bdhkxe468Y2wOdhUTbdGWFR3MEZtHZuqQTX6IQAl6G9nC145w4s1QuGe LycTKq3tb0IrC/97tHfhQ29Hv6U0aD6tkhyHUSoprk6nt3MDYQx23rw4ZhsTp5EG+UGU wKaA== X-Gm-Message-State: ABuFfog5ojOeKGyvwURXtnXRrRRFiXltVsacaYdltrC7/N3O16lTa4zQ G6051H/7nwgBDlUvjZMYuNaAMSYMy7fxJp6ujzhbrg== X-Received: by 2002:a5e:9e4c:: with SMTP id j12-v6mr100495ioq.111.1538551159065; Wed, 03 Oct 2018 00:19:19 -0700 (PDT) MIME-Version: 1.0 References: <20181002110246.3175-1-brgl@bgdev.pl> <20181002222642.GA19204@kroah.com> In-Reply-To: <20181002222642.GA19204@kroah.com> From: Bartosz Golaszewski Date: Wed, 3 Oct 2018 09:19:08 +0200 Message-ID: Subject: Re: [PATCH] nvmem: only build nvmem_find_cell_by_index() if OF is enabled To: Greg KH Cc: Srinivas Kandagatla , Arnd Bergmann , Stephen Rothwell , Linux ARM , Linux Kernel Mailing List , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 3 pa=C5=BA 2018 o 00:26 Greg KH napisa=C5=82(a): > > On Tue, Oct 02, 2018 at 01:02:46PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > The following warning is produced when building nvmem core if > > CONFIG_OF is disabled: > > > > 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) > > ^~~~~~~~~~~~~~~~~~~~~~~~ > > > > This is caused by the fact that the only caller of this routine is > > under an ifdef depending on this option. Fix it by adding a relevant > > ifdef to the function in question as well. > > > > Signed-off-by: Bartosz Golaszewski > > No "reported-by:" lines on this and the other patch? > > Not nice :( Sorry, I normally remeber about it. Anyway Arnd sent a better alternative for this one. Bart