Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1858344imm; Tue, 2 Oct 2018 15:28:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV60AgO2ISpLhJiEPms8ImC2MZ10m2yWvYzEyC99p708oR2xiQeYzNQ/RT4Jlk4Grmu4oVdq6 X-Received: by 2002:a63:f448:: with SMTP id p8-v6mr16112325pgk.124.1538519332506; Tue, 02 Oct 2018 15:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538519332; cv=none; d=google.com; s=arc-20160816; b=NK3GODp9zCUrZFm+Fdi52yrYKiHZWZYXFOcVOOlEj4FJQgYCs89yesjbDC+OESCU8U RXa4Ex6YJm5/rDZZcFLV0hrdV7qGQdiMUpUX2byL8RycZC4EE8WOMdbwz1mmsG4zKqQ2 cVx0jt2uCs/trtt0QcNuvHihPqIlLelrROXhup/4H/3AqHoSIkeis1+ml544JR3xbUly jejkWDDUQULr0BC3sqatTAaq0NOHsvRS1gGUKL3M2l/Nw47bnLxRxSuDq+7ffzlL7inX vCTDeAkmDYvOIHsYZM2bK3uqO58dt4OxlTfDMomwBhmN4wmuqv+5EppxCUcY0v8/tXvq V0NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=iHLdukaGrASJo2mSFXoagCfvXj43OAQHRO27Vpx/vTE=; b=q9YfmDcxxh8QBwe0b58ZsKKLqSzyTHVq3IyNyXUc02WFYzifg0NBlxW4wm1RNlqAvP ri3FiwPwYhp/Vl40CBBEMvpv8aYRq30dcWDCGXMESnjKFOppQPaADC8ma6gxbSVFtP+p +qi6AkYo5TXZYpn1Ma3HyQy+t1SVIthFiu87akAZ/4MIrLuqXW8gSEes0vaDE8e4yM++ 5eVb0mTEu2uCQNuPVSApBa/tDSPjQ+uayyj0awAZpfHq4PwwNpWjIzxW4oKDIQp/iHWd 93mz+L7ayfe8DZ2oRxARKuOqj4c9vHolISeTuJ2ImEeNuGFau5CKS+FGzMB/su6saGAg ucNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=0SH+WWH9; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="EBLlTX/q"; 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 m29-v6si5134303pgd.361.2018.10.02.15.28.37; Tue, 02 Oct 2018 15:28:52 -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=@kroah.com header.s=fm1 header.b=0SH+WWH9; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="EBLlTX/q"; 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 S1726918AbeJCFMX (ORCPT + 99 others); Wed, 3 Oct 2018 01:12:23 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:44425 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbeJCFMX (ORCPT ); Wed, 3 Oct 2018 01:12:23 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9DF7FA99; Tue, 2 Oct 2018 18:26:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 02 Oct 2018 18:26:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=iHLdukaGrASJo2mSFXoagCfvXj43OAQHRO27Vpx/vTE=; b=0SH+WWH9 SpqdMZHLmKqOS0BhMsbWBdZIFhhgqb1MRzMFYLMo3ZJmLrGv1ElazAakwyTytCVW 0R61GWTnldRSTHbxY3AoPm5o9NTDWxkavYutJR4jQ1HrPBijdvekkqg8+5JwxQii 7qm9cph7eDtMLhmK9Q5n5OwOLH5wyMT/hRjksjMS4YR9NeBa+d0n/lKEgmb6Ocxv nx8itSrKNZM8filGrzNDjk7ttiH3JOAyQI5cny4ZjFvx9IkfQiMQcYKsNEzvVcuF HV4g6EEZgcQlOFzOJ98i7URagMhZC78VXRSAE28Ku9rW7Cbd1gv8xq/To9E/MkM8 x9g6XQRB1CmVeQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=iHLdukaGrASJo2mSFXoagCfvXj43O AQHRO27Vpx/vTE=; b=EBLlTX/qRbL+Ytx8yCpy7TnPAZjnDC02oPQz98rQTAjN6 011ft5drF7sMgDxDLF/0kcvOFeW+IzRu3E21WYKxFm8P/nJq73KaEvQ1uV8C4yrW n1M//dmWRgK6IiRvwlRKpYDjL9kVt8EKmT9nBaCEruUZyRUlpiUyy6HnnfZO+kNs bp9JKo4Q2TjSxLxu+g4jcFUA9FlAlrYbF1l/Zvi/fe8ZcWTaxvUyQS2xrNXw5U2v mIilN1sQmVowsE+oa27Kp6rGevaUqOJKBUJHAFOjqijoRJxUAeaVdIjMl99RxlVh YegVRIlCMwoMHR/XIQgPwbiSggTj//1sGjpfx2EvA== X-ME-Sender: X-ME-Proxy: Received: from localhost (unknown [64.124.202.226]) by mail.messagingengine.com (Postfix) with ESMTPA id 178F7E446A; Tue, 2 Oct 2018 18:26:44 -0400 (EDT) Date: Tue, 2 Oct 2018 15:26:42 -0700 From: Greg KH To: Bartosz Golaszewski Cc: Srinivas Kandagatla , Arnd Bergmann , Stephen Rothwell , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH] nvmem: only build nvmem_find_cell_by_index() if OF is enabled Message-ID: <20181002222642.GA19204@kroah.com> References: <20181002110246.3175-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181002110246.3175-1-brgl@bgdev.pl> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :(