From patchwork Thu Aug 20 08:00:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11725851 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 864E214F6 for ; Thu, 20 Aug 2020 08:00:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F3B62072D for ; Thu, 20 Aug 2020 08:00:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iFGoIGDj"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="P1Mt5cG5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F3B62072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CyVzuNKtHdeoKGapdqSOAU12L+QtuoU8M8AstGGdUt8=; b=iFGoIGDjQwlgAlcK/g+n29La2 ypkfx/uf4LPKO+OFdQKz3x5BvpgJM0XRCr8/e+2eZVxPq98GlaV4dLRjLiu+sGVEVw/3963RaRKPr WPyiz+e+riN9fw0MChjjGKHZobeGoSH+SNY4/h9wsyEtkgUFdH2DOB/UDlvrcA9jdLgVa9iQuRsfa LcUdasrhsr26yV+R/jYKH3khC+xh7cN9YsJ+2N0qut8kB26wRE3gindBybVG2fowDqHPDZ0PlcxTo b1uOkRkUPjkKeeDxgfe9medKcabs3R6xpXXO6KD5FRfMhMYDUyi5wUhRWYkla19EIWdnfCyeT5eI6 o5++xg0NQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fV0-00034P-PH; Thu, 20 Aug 2020 08:00:38 +0000 Received: from mail-bn8nam11on2082.outbound.protection.outlook.com ([40.107.236.82] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fUy-00033M-E6 for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 08:00:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i2Fr039mhkjv0h8qZyoDZAp06p4B+2KT5AehmeSQLBRGozRFW/vurLLEOJdKrt/5gr/3kVsm16UAFcGmmn6Nc2hRwasAKe4Jth84VNwTz0IBu1hJf9v5fEIBBUrJHkyXFNpznGZ2521y7Lys4RKWmJB3eTF6WIoN/78FikCqVhqippYa+MC3Our7MeZnezwPWx5VLUIV5f0gO5ougDwcbhCQdAp/sUsAfs3U2H2XzNubp61kCigJ0avzuEiWn5JAw1G+aRPNUS0XpKxaAYChO3SYQCb0ZUpHmR+zx2lJv8UUUQNFOPXsE5eB3Wg1+kNa6jN4O2hZKgFhWNviJmmSIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEE/uf+lGN6v0rd4q1AgcaV70h711P2y/1/OScSbPjY=; b=djLWhHmfutmdGUY6XzTAov9RvO0MvnXWzj/yVTu8BmXeeVctO6DlvAllPQGPtiXsFuuVCn7YafBoJ7ScQ9kx6R5oqX18lVZlfXRR3tMe3LI2VWqFVD1hXw88DMnMADIVp9hh7EDu9wOrl+Sjtx1cK+EYOhNum5rBo8OMA7yeFXly16gz+uLshLsNKiU4PWJBD+iRt/Z8FtWu8DsTWstyiTP4zVXsW48iTq3iXM1TkX/0J/rUxfS4n9tSVGv/Yrhmo7Q0qgpxsHxd2CF67aWyd17A32jeEGJCcyfpe/R4A3SoEMD1G3VzSq42BymbTB4Rdn/CEgoJKATzt5gmeIIVfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XEE/uf+lGN6v0rd4q1AgcaV70h711P2y/1/OScSbPjY=; b=P1Mt5cG5TqJNkolzFgMkoGHrzuTvrt+f9G5/hDf1/+OhjVB8dHO3KWmgM/EtWALgzPeiyrLj4q2TOlugXl0HosT2rVB4e/FqQWPfQTAcAPxrNbYM73DcjChiZDkBxfguKEU+8pmblaVIyj9iDc7N5Jf3WOlOOgm4WwZvIgpBKmU= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=synaptics.com; Received: from BN7PR03MB4547.namprd03.prod.outlook.com (2603:10b6:408:9::22) by BN7PR03MB4563.namprd03.prod.outlook.com (2603:10b6:408:36::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16; Thu, 20 Aug 2020 08:00:33 +0000 Received: from BN7PR03MB4547.namprd03.prod.outlook.com ([fe80::3cda:7634:5802:df5f]) by BN7PR03MB4547.namprd03.prod.outlook.com ([fe80::3cda:7634:5802:df5f%7]) with mapi id 15.20.3305.024; Thu, 20 Aug 2020 08:00:33 +0000 Date: Thu, 20 Aug 2020 16:00:10 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Subject: [PATCH 10/12] regulator: stm32-pwr: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820155903.26c152b7@xhacker.debian> In-Reply-To: <20200820152926.42c48840@xhacker.debian> References: <20200820152926.42c48840@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-ClientProxiedBy: HK2PR04CA0082.apcprd04.prod.outlook.com (2603:1096:202:15::26) To BN7PR03MB4547.namprd03.prod.outlook.com (2603:10b6:408:9::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by HK2PR04CA0082.apcprd04.prod.outlook.com (2603:1096:202:15::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Thu, 20 Aug 2020 08:00:29 +0000 X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Originating-IP: [124.74.246.114] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3dd56ef4-ade7-46fd-e220-08d844df1cf4 X-MS-TrafficTypeDiagnostic: BN7PR03MB4563: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JCtfxuBy+q9q24BnXbwJuHnTz6vzpWu42shqLcJk7mvyR8YvPu5GFLPVaRvTjke8v86AWxGNuiuFl9gdzJ+LTSz3dwjXpBEqLiRD8PVTuppUbGK1vcP0OaA1R6YXm4E1szjJtR+o0FYeRNkhIp782vPHaFglPbfrxX9+Qiv73Mkf325qoOZ0X1PWESvYPcWDuKOcGhLeecD3lcMIqeZh6I4R1MSaJv6+b8UkYLu0fPGiaIhYuNaibjy8dxjCzf6hgFmcbxUztGOhgXDUbcOEgPU9xs9OQ6osgjHEEs5V9+4c7RGcslW1zCFLVQGU1bDeJJwH6WqD9/DGCmy573g/qAK5gxuSj8BA+ahsFzuyycrIl3eZcnHIuj+0iHLIzL4D X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR03MB4547.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(39860400002)(396003)(346002)(136003)(376002)(1076003)(4744005)(4326008)(2906002)(5660300002)(6666004)(478600001)(956004)(9686003)(83380400001)(26005)(316002)(86362001)(52116002)(8676002)(66946007)(16576012)(66556008)(6486002)(110011004)(8936002)(66476007)(110136005)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ySUn+f6tExyRX/6bY/1uU6UIDG0xwcdWzTOGKUR60/YGB0pZIGaf+7qT4ponQ4imirzzoynYK2BoD0dsQAlZ+vx0fT89R83l125uW7gH2V7TqREujhxVfT0zCr8BXDv10R0PuNzj4H+eRllOIvi9yoeY/pUYH2dhRNM+EjR17MZJQ1MjwBE2enRu4A+qr37Z3yXzagP23NyRJpC8mSDlDm5l0u5q2OLNCudqKqyd2/NNz6xF8GN+5x72+EyZYw+yYbLi0rcn3hLH8/c+0pBnLzOAQh9FxFlt98nhfCyuzNorZAVPThA4NZSL23iaov8aK+JwYy5W7MKZhxKxeElJ6XdFIUmPDkR37SC5vITcnCpTPCQbYnGc1c8lJiHJPCSUc4W3k1oH69+ty8mMqQzo76QPddRTNAwesTUlgA3BvNGMBJ5Rp5tDUIueCNxwLsM+X7CYxFLbHKsJlolXp3D+tJd9kidypmIiVvDRiZAN54Zog1nTKPjKR1T68Tb8zAsfsX0o5b0Hx0szUEadSMKE9j4lE6kMSe1pGuYK0xCxyHF9ueIDUqLduQ46fWc3bJ8J75yy2BitBbSXApuTk5kMkdqPo9StnVv5ULZexkTq+yyWPrz5AJcl7uy6QsngXvUJGBoMo3q3aUkWDmDfJaIA/A== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3dd56ef4-ade7-46fd-e220-08d844df1cf4 X-MS-Exchange-CrossTenant-AuthSource: BN7PR03MB4547.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2020 08:00:33.0539 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9vzWRZCaCqE2P7PQNcmsWXAy38Tb5k1O0EB18+dOYYu3BhbolcmzVp70R5ONfcssS+VeayG0iK7Tu4C2/ajmVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_040036_520980_985D4F68 X-CRM114-Status: GOOD ( 11.59 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.236.82 listed in list.dnswl.org] 1.3 RCVD_ILLEGAL_IP Received: contains illegal IP address -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.236.82 listed in wl.mailspike.net] 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix below warning when CONFIG_OF=n: drivers/regulator/stm32-pwr.c:169:34: warning: ‘stm32_pwr_of_match’ defined but not used [-Wunused-const-variable=] 169 | static const struct of_device_id stm32_pwr_of_match[] = { | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/stm32-pwr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index e0e627b0106e..3d5cd954c391 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -166,11 +166,13 @@ static int stm32_pwr_regulator_probe(struct platform_device *pdev) return ret; } +#ifdef CONFIG_OF static const struct of_device_id stm32_pwr_of_match[] = { { .compatible = "st,stm32mp1,pwr-reg", }, {}, }; MODULE_DEVICE_TABLE(of, stm32_pwr_of_match); +#endif static struct platform_driver stm32_pwr_driver = { .probe = stm32_pwr_regulator_probe,