Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1143297imu; Thu, 20 Dec 2018 10:51:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/VvRHLT5pWmjzXRQBgUAYxDM98eA5GId2AVy/YHhCVZvdU3nOAMUs9SRHqqnzG/+p363mop X-Received: by 2002:a63:981:: with SMTP id 123mr7650411pgj.444.1545331913726; Thu, 20 Dec 2018 10:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545331913; cv=none; d=google.com; s=arc-20160816; b=DjXVSq4pgZVZodJltBUDCRTUoCTFuQqoc7iYsYkbCT9th0uZ+Y8R5wptrpFs5JCIB2 2rDD7LJy+pJBaSZRaOgpoZzgcE+bMrRcNbeIIs2igAWfTQd7vJA3vMoG2f8bQqQbGWVu GNlYjnZ7lt0wKCJBSwyiGHVNz6EVhtpbGzgja7/S7xosSYfxKFkAgDIM3d055ALHc3IK LMFtBO01ymNfqv3cqM8DCeoLCCNEI2z8nvz124jpC2onWU+0yuVZ2cO6eyJPHYOAxC9i jap+WZTfSaT4edzLMwHroiQXLBNUJczxjyeOFX8B/il83ngTogZzY7Nba6uXmGsErQ+s Szaw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ibFP6lAuYGl4nDA2I7UFisRfY8UehT8mjNgvyLAJ3so=; b=Q1ScEqlA02NZoR6KeypQfpIJIJGpgRQ1PVg/36KqF4WULdpVxFqQ+e+gkjX8lyoejG 2dWcAmGuqc4Cetu0ZrmJXUl98l8W7Z244xIC35P0xiP7DX2NT+uRkFILUKGktsOF9vs0 oBPzCqNuw6VwEDII7A00BNZRLN0YjE8oDOZy5cZr6NBaPwPjSNqV/DI9Fhp1VI413mLP RWadg/dSO6xph4iFEvugxOmk+2OHZ6HRYLJZ9jFUj4cZMUW+tymkoutaPxM8D3kiDWIF T9Gr+eONQNehOML0Kl7adxKzcPyXZWBVbo1UNEDR/7FGeWcpJuPUlBoSRXnTiXlPBKIo B/Jw== ARC-Authentication-Results: i=1; mx.google.com; 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 z5si18469355pgh.469.2018.12.20.10.51.38; Thu, 20 Dec 2018 10:51:53 -0800 (PST) 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; 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 S1731103AbeLTKqP (ORCPT + 99 others); Thu, 20 Dec 2018 05:46:15 -0500 Received: from mail.bootlin.com ([62.4.15.54]:58916 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbeLTKqP (ORCPT ); Thu, 20 Dec 2018 05:46:15 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 2812C207AD; Thu, 20 Dec 2018 11:46:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (aaubervilliers-681-1-38-38.w90-88.abo.wanadoo.fr [90.88.157.38]) by mail.bootlin.com (Postfix) with ESMTPSA id 812172086A; Thu, 20 Dec 2018 11:45:50 +0100 (CET) Date: Thu, 20 Dec 2018 11:45:50 +0100 From: Boris Brezillon To: Wei Yongjun Cc: Liam Girdwood , Mark Brown , , Subject: Re: [PATCH -next] regulator: act8945a-regulator: make symbol act8945a_pm static Message-ID: <20181220114550.782cdddc@bbrezillon> In-Reply-To: <1545117021-178814-1-git-send-email-weiyongjun1@huawei.com> References: <1545117021-178814-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Dec 2018 07:10:21 +0000 Wei Yongjun wrote: > Fixes the following sparse warning: > > drivers/regulator/act8945a-regulator.c:340:1: warning: > symbol 'act8945a_pm' was not declared. Should it be static? > > Fixes: 7482d6ecc68e ("regulator: act8945a-regulator: Implement PM functionalities") > Signed-off-by: Wei Yongjun Reviewed-by: Boris Brezillon > --- > drivers/regulator/act8945a-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c > index 90572b6..dc3942b 100644 > --- a/drivers/regulator/act8945a-regulator.c > +++ b/drivers/regulator/act8945a-regulator.c > @@ -337,7 +337,7 @@ static int act8945a_suspend(struct device *pdev) > return regmap_write(act8945a->regmap, ACT8945A_SYS_CTRL, 0x42); > } > > -SIMPLE_DEV_PM_OPS(act8945a_pm, act8945a_suspend, NULL); > +static SIMPLE_DEV_PM_OPS(act8945a_pm, act8945a_suspend, NULL); > > static void act8945a_pmic_shutdown(struct platform_device *pdev) > { > > >