Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2354311yba; Mon, 15 Apr 2019 09:54:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIYyziB/CemGLpvmGJMYrzGdiT4J8/yYgRN/xi3xg5SiOm2IjpJQr2weE2jVqxmMSgb399 X-Received: by 2002:a65:4341:: with SMTP id k1mr72040295pgq.88.1555347260366; Mon, 15 Apr 2019 09:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555347260; cv=none; d=google.com; s=arc-20160816; b=q5dSHMJ3FxKtyLzjoQ0c5C7BNan89dAAfjWyAPx96v41vVvDBPHtrulYUnwPvO7xb4 zBYvT/Rj3RtU++nysJA7/vQUunFLRX53VyHWyrcrsirixoOe0iXl3XmE1/pa2Ye8vy1p T1f6wHuo83G9pic8r4IXPOWZLhXIiwmFNC1xzocke0msfhrqJDgwix42fTlnUKykcjfe SQKJxkhKqy88SN9xePnNT5/kWPc9Vzafjj+iiJh933PTxZhvvSyevXhjZ7hp/n4909MH EaElbiZ0eZwBAIltTU+5k05qu7SBG5A1XMc68u4OMXTCXnHFOApi64WWV8U+QUQh7JVo PHLA== 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; bh=Hfs4wymVQVRwBKgIIOGock7YuyS/GH/dQ/dJ3OoBB18=; b=ETNbazOV90cFFuM9hCMVQ5/hZVHb8gGh+9YxJLW9kvyA1ybJuouYRTRmbxexZAF8Pg VNUz6wVGb7WX7ZXwxlRORJ4ErrBGBdnUeE+vyt4vWVHy97ihSSnZFhlSBa4ZVrqLEo7Z dZ+nnoW7vHKS/xpClq5P/38inZD9fP5CE+mfh5Zz3EMlQcO76wlof/ybdXJrER39rBsY yH4lXHTpCTZYWVZZrFTtrWjjTG6UfoMLepHFl7Y2VhLTMIkv56ueM5+cdaSXekFMUB2T iBY5AG80oyjkVxc+9QUU6vE0yZ/eTQ0uZ4e0N1mHyaba+RxUsum3oqC3fzjD1QOpf5IG 624w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si12218944pgu.31.2019.04.15.09.54.04; Mon, 15 Apr 2019 09:54:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727699AbfDOQx2 (ORCPT + 99 others); Mon, 15 Apr 2019 12:53:28 -0400 Received: from mga12.intel.com ([192.55.52.136]:29404 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726313AbfDOQx2 (ORCPT ); Mon, 15 Apr 2019 12:53:28 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2019 09:53:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,354,1549958400"; d="scan'208";a="291747302" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 15 Apr 2019 09:53:25 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hG4rE-000IrX-K0; Tue, 16 Apr 2019 00:53:24 +0800 Date: Tue, 16 Apr 2019 00:52:38 +0800 From: kbuild test robot To: Pascal PAILLET-LME Cc: kbuild-all@01.org, Mark Brown , Liam Girdwood , Maxime Coquelin , Alexandre Torgue , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH regulator] regulator: ready_mask_table[] can be static Message-ID: <20190415165238.GA71613@lkp-sb05> References: <201904160046.ggavw2OV%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201904160046.ggavw2OV%lkp@intel.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: 6cdae8173f67 ("regulator: Add support for stm32 power regulators") Signed-off-by: kbuild test robot --- stm32-pwr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index e434b26..222d593 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -32,7 +32,7 @@ enum { STM32PWR_REG_NUM_REGS }; -u32 ready_mask_table[STM32PWR_REG_NUM_REGS] = { +static u32 ready_mask_table[STM32PWR_REG_NUM_REGS] = { [PWR_REG11] = REG_1_1_RDY, [PWR_REG18] = REG_1_8_RDY, [PWR_USB33] = USB_3_3_RDY, @@ -44,7 +44,7 @@ struct stm32_pwr_reg { u32 ready_mask; }; -int stm32_pwr_reg_is_ready(struct regulator_dev *rdev) +static int stm32_pwr_reg_is_ready(struct regulator_dev *rdev) { struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev); u32 val; @@ -54,7 +54,7 @@ int stm32_pwr_reg_is_ready(struct regulator_dev *rdev) return (val & priv->ready_mask); } -int stm32_pwr_reg_is_enabled(struct regulator_dev *rdev) +static int stm32_pwr_reg_is_enabled(struct regulator_dev *rdev) { struct stm32_pwr_reg *priv = rdev_get_drvdata(rdev); u32 val;