From patchwork Fri Aug 21 03:16:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727497 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 DF789138C for ; Fri, 21 Aug 2020 03:22:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C13C520738 for ; Fri, 21 Aug 2020 03:22:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="CmgjocVF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727087AbgHUDWm (ORCPT ); Thu, 20 Aug 2020 23:22:42 -0400 Received: from mail-mw2nam10on2080.outbound.protection.outlook.com ([40.107.94.80]:61236 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727888AbgHUDWk (ORCPT ); Thu, 20 Aug 2020 23:22:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TU/v4+ejdy2hDH23Cj2W7XQRaDwfR267aoJit8Xa/LrPiUNfZ6nKzwMwFpVrHN3Eelb9Z5ZpjhLnI2wMDpDC+RB7LQ5EgLUU3P2h4JkUFsXVAYLMyaLKuaDuTM5HP0Ot3asl3gVxWiuoLmYv4SlQ/dk91EPVISJ5TEYI0JT+9bwtmz4dCZHgXfrxoo64PE5cWtZb91sDjGiYZ0xw7PD2fSojRvv042NK9q80DJv1C+FmzbjnD36AVy3CTGgd6jI2Aj2+/qMxqHahyLAu7CDSkk1rOyj+9p6jZ2Ox2nVZ0uXyS+XX49OsdegJwsugAivN5J43Lkpf66iuy/4hHplLiw== 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=HzyTzVhiEHMv4my2kE2lC6bPRtsbB0+inniXkUx51ck=; b=czMEbeG7wgvVRt/o5tvvGwHH7bP9U91rEUa1xbOf+qo61+Tli6q15Kp3fD6c3koDmz/sDsLZFoNQDQ/GvyM8vinsIPG4ihVleUqClJfswQMmiEiZLxQhq28X3SLNAUGCLtqFm3GNd2t4DQslK9GZekT1WcE3sQ/S/exE1Gb83FQ4GTIdL7ora7MxoUaJM6u4LZIPWKNATJ2Vy014zJu6q7jsIkeDAI+S4cBdUduzWupp90230BqSUD+CDdiGOWDq7urUQyolsEYed+r0VELmq9YlS9GpbwXjO1dP1ilkdzVkEZbMKE8lilo/w8iS2cX7ScZAeahSkhoHn1YhCKam3A== 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=HzyTzVhiEHMv4my2kE2lC6bPRtsbB0+inniXkUx51ck=; b=CmgjocVF6OFRcCwDNC7xRb7BEZXu4j76udrgpBfksOA6BYuJQE9WEReswW4Zyr8wx6kySCyQ49OPiRGa6vZU05rhYhgPcglD6qHC0vjzKIort7c+YP0W/A+cxSxcEpfG7Wm6STghahkukaLmXNgNoVawPdmNEblCAwZ9FBdPOBY= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) by DM6PR03MB4617.namprd03.prod.outlook.com (2603:10b6:5:15e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.25; Fri, 21 Aug 2020 03:22:38 +0000 Received: from DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38]) by DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38%7]) with mapi id 15.20.3305.025; Fri, 21 Aug 2020 03:22:38 +0000 Date: Fri, 21 Aug 2020 11:16:57 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Andy Gross , Bjorn Andersson , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 09/15] regulator: pwm: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111658.59a7218b@xhacker.debian> In-Reply-To: <20200821111135.0b958d3a@xhacker.debian> References: <20200821111135.0b958d3a@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-ClientProxiedBy: TY2PR06CA0043.apcprd06.prod.outlook.com (2603:1096:404:2e::31) To DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by TY2PR06CA0043.apcprd06.prod.outlook.com (2603:1096:404:2e::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Fri, 21 Aug 2020 03:22:34 +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: f9ca4c6f-8114-4774-114c-08d845817491 X-MS-TrafficTypeDiagnostic: DM6PR03MB4617: 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: C0FYzlZTmPc0ronJbIiquUiT0w2X73x4J9NRQiK70kTis6JjsF6I5ntwzKr5Mqb+ahEmvkMBnE2KIFjoZaDNB56EElbjv/GuYSaQfVxmsDIgwM3ip06roy/qze/wgbYqmINe2RMenEWpXZPgp4ENv2QVGu2Jpx31iJNRpWEMcBFsK0rs4Q2EDf4afXGYK/2c8JwxqiJtGlczeZmOZ0v8xE8fIkDMYThs1T8UTj2QFWZ44eg40fPsv3PEcBd/Jv1QtYLW0OYsBR/DLAf6M6oHmWzGNsNPE9tGmde+qOFMNhQseFEy7n3s15Z/ESY/C1hxUdIloeLPBnJSb6tmUk9WjHsaAC3AB7Udbn8cK/ijLBXgQZf28Cso/BTjCTRIEDJD X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR03MB4555.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(396003)(376002)(366004)(39860400002)(346002)(66946007)(478600001)(8936002)(1076003)(7416002)(66556008)(6486002)(52116002)(110011004)(9686003)(4326008)(66476007)(8676002)(6666004)(5660300002)(86362001)(956004)(16576012)(186003)(316002)(4744005)(26005)(110136005)(2906002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ijMc5iUsNL34IOBeoME1zJBjxXOMPDZh7CK1Z/35sjRGGp5eKhWooHc7Ty4F+1finr1WofVWeA55KduvguPT3uWBCb98WLMCH71HgsN+z37YJ59LgnTZHTK/YVW7iFFcB0uoEkRLrg2NP94PDzKbYlw6sfkAwr9Fhi/eW/YVa4Jo6mxWVHZ48k+uOr8I+ECjb4Gx7Dkq8puIp8kNTQ5pfapuOWe2UbNtvb8gNVNIeaM2r5/ZH1UctHZTad2SxIxOi7fm09koHh+DkEs9qIRrHM6bFCQvPjZvWES/sJWcud63XSgY1UI1WaTsw9K3KyRnuKERzvRle2pEXIDnoAsbgFbW37OGVucr5C5nkxY9XNaQ2qHAwwCG9MgB/G/MMdIsXSpL/bk8QN6CLoT6pQIgrZH1OXUQGUKKgfx/W4Vx4gkEjn7mVHmzmglA8ho+DT93VjJXzhFCUHeiJ2jMs+l27XfMubWE7LVTGltM1d4FJT3kwyVeumkyq5FQdfi3nKIBh34F3rG0Kdx6cWhQulxsTYgy2EtOzBqzqpgN/wqQUVA9sZWsGYqvTaqpwM8tewtDSRI81e5yA/O7fJa+CHNIA7Gjn/qToBNmkw9wGICL3X+QirS83ccoBJ24RRmKmvcw6Q+NqSKKl3AvEtIEwxCusQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9ca4c6f-8114-4774-114c-08d845817491 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB4555.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2020 03:22:38.4405 (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: iLmvTGegR4EP6Ow7U0zawR+HYRcH1PAJjaOSKrqjI+92p2ewJ/v8WIM98WHqrqXapFFVg0XsgvtvIfZtGKy1IA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/pwm-regulator.c:393:34: warning: ‘pwm_of_match’ defined but not used [-Wunused-const-variable=] 393 | static const struct of_device_id pwm_of_match[] = { | ^~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/pwm-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index 3234b118b53e..d250e60f1625 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c @@ -390,7 +390,7 @@ static int pwm_regulator_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id pwm_of_match[] = { +static const struct of_device_id __maybe_unused pwm_of_match[] = { { .compatible = "pwm-regulator" }, { }, };