From patchwork Fri Sep 21 13:40:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 147272 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp837652ljw; Fri, 21 Sep 2018 06:41:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdadW8BRpDKYyqQ90A/S1fxaKgdYcQpHI/Md+poGeEE5Yv9YNRNJHSnlJKP1xBETvo4PyqyF X-Received: by 2002:a17:902:70cb:: with SMTP id l11-v6mr9398837plt.330.1537537269092; Fri, 21 Sep 2018 06:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537537269; cv=none; d=google.com; s=arc-20160816; b=Bk9Q+Sgx0BWjfsabbmoY8XpYepU5NLb7nxEVtZuZoFX4XrW1hw1yowBcZHnqbzk8wj n+enGGw90wKELd1yCs975LhQaYkXc+kvMgDmzLvaE2XO9IjRzxl9jPKTnbc/yd0BI0sl qLwf97ixnDavop0kUcigfAiN6Fx7XvUKhwD6/bduoAdWaZqlaJC+CA6/qwsE5jz8cChP ybD3EyOIg/tFYoE/jFNH2ViHMbFtbQvRuXN85nIZQtZOlDM0zTxDFdmiqLdCJlSQHbXy 6l05BKpzgrg1OfQ50xzo83i7MbKcY9q85MRIQVhiY6g+q8W+8Lzyec9o0xTGQWZMTETl V66w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=NTCthlsQ4NxuVZ0rEdDOEgk9ZVevHtsMIIbl81M9etE=; b=z8abDjS2TeXezvsONrQ2iAEtqqsmSocjdq44PFLPNBH5scRq8O04ZbvUU27/vU4RYZ lnT1r97Qesq+XxqAd7RZ2yRrhHcx6S1qTp7/hTIhkEgfqPGeVnFstpg0UDB4re0SYXy5 aq7kjZ+FXm+1gxlTLNfVsETALTG24MUOjNig//j2ciNWNMNW1UQ2wBdhap1QN3/Izzy+ oUyx10aigh3+9TSRIvJzGD56dKoA4CdsTuulj5jLx33yBsyXDsq+hgZqsszg9INAAl2F tef+DN7BJOg7nZhspV0iNMqlZU7fC/0SGGfLfQ3N4f0KFCr90S6IjOngh4sRmcZ6rrvt ryow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jKw3g0ru; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si26087992pld.402.2018.09.21.06.41.08; Fri, 21 Sep 2018 06:41:09 -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=@linaro.org header.s=google header.b=jKw3g0ru; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390438AbeIUTaB (ORCPT + 32 others); Fri, 21 Sep 2018 15:30:01 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:52121 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390424AbeIUT37 (ORCPT ); Fri, 21 Sep 2018 15:29:59 -0400 Received: by mail-it1-f196.google.com with SMTP id e14-v6so1998874itf.1 for ; Fri, 21 Sep 2018 06:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NTCthlsQ4NxuVZ0rEdDOEgk9ZVevHtsMIIbl81M9etE=; b=jKw3g0ru+DaWYGSva7WRJUIz9I38AyS8QUSiQXdb5JARDa4L6dSYn+qBebXd43z6SB QGupkSfV1+MAPKWU8bc3AB1MvoBnWArT1BKAxfAD18BL1irP599SZsrlTQAki2YnGX9b MpL/WtDAb+k99dY08vrXB4ehKqEqrYCyt8yIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NTCthlsQ4NxuVZ0rEdDOEgk9ZVevHtsMIIbl81M9etE=; b=Fk8YQsNO6db0uukKrsHJ5+OQrZtVyMU1bPn3NcCKK5bGJdTsGxYurwDDPs/Yo72ABH 2sozkTCSwE8PwhduX2CYIKjY1rPO2SZzYKlY15u51w/meq1UJaFEGQztR+w7Wi8lH0pV gQ7u+LgtEAbcZmOtkK1py7e23CUvdTbP5yWM3vBoTsU6A0o4or/Lq0HfUvdLKS6PL8sE +2xTQICIbVONeU7A9zmGbLRQbvOSL+kcL+M9bGNDIVIWTetwcLgFqrbuTkpPjqY8N26T AFAd7tY/79zvZlXFoperv4bzkzm7FqmeP+Hc/yERiPDfAAvOMPKfacKayaLAV8E5292l Wkig== X-Gm-Message-State: APzg51CHMdhlzmho7onDOMj3S+RkrBdCHem6XO025MuldN0qajqs8NGm sv6xngO0QA24QCWWnh2DD+MikUaZJKM= X-Received: by 2002:a24:de0a:: with SMTP id d10-v6mr5670938itg.124.1537537264449; Fri, 21 Sep 2018 06:41:04 -0700 (PDT) Received: from localhost.localdomain ([209.82.80.116]) by smtp.gmail.com with ESMTPSA id c12-v6sm9896298ioq.81.2018.09.21.06.41.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 06:41:03 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 26/26] nvmem: make nvmem_add_cells() static Date: Fri, 21 Sep 2018 06:40:26 -0700 Message-Id: <20180921134026.4596-27-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180921134026.4596-1-srinivas.kandagatla@linaro.org> References: <20180921134026.4596-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla Now we have new api nvmem_add/del_cell_table() we do not want users to use nvmem_add_cells() anymore. So mark it accordingly. I guess it was missed in original cleanup patch. This also fixes below warning: core.c:355:5: warning: no previous prototype for 'nvmem_add_cells' [-Wmissing-prototypes] Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.19.0 diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index ad1227df1984..cc815bb2eebd 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -352,7 +352,7 @@ static int nvmem_cell_info_to_nvmem_cell(struct nvmem_device *nvmem, * * Return: 0 or negative error code on failure. */ -int nvmem_add_cells(struct nvmem_device *nvmem, +static int nvmem_add_cells(struct nvmem_device *nvmem, const struct nvmem_cell_info *info, int ncells) { @@ -391,7 +391,6 @@ int nvmem_add_cells(struct nvmem_device *nvmem, return rval; } -EXPORT_SYMBOL_GPL(nvmem_add_cells); /* * nvmem_setup_compat() - Create an additional binary entry in