Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1736426pxa; Thu, 20 Aug 2020 20:26:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN6BCV/mkMZbCnbszgfdTEdRh6rYyuUdN/eG6GpULJqwprjSUjFZmaSf32yowFzzcg2kv7 X-Received: by 2002:a17:906:f8c3:: with SMTP id lh3mr844790ejb.263.1597980381839; Thu, 20 Aug 2020 20:26:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597980381; cv=pass; d=google.com; s=arc-20160816; b=hLcaOhiQO89xApCi9UTchvIWU/7s44YtQX+aRAtSLYdVRED1vtXLavrHcRxUiU40kx 6ppApcLra4ljMY25Htg9u6fDb6Ta8s0cZAHS5UK/S7/NnZMcZotEIjcHwomNOtZtXl/A 2epdAPBjuaHinacMQKLGjdmUTP7Arxj96PaJYLjc1PKrKdwHG7AQfnNjHJ5zMxdCU5Dk LbNzH3CcSXdoojN/oJxRjPLahXGNpmieY680C/tB/hYeH4MogIlylGDQlk+N7vJbIJWh iy5VKaiMiRkMM7nlzJ0GtHT1OlvfULq4s9Uu74hIACzsAauCumGE5fy2F63nhTJMAyGk 0TFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=KHvYbXKB637tjZ3eQiUxscttQbltDndxqdCobT2il9g=; b=P/vbAQ15V3kW13P9Z24MNa/1BSWVPTNuXg/MlMECxwOFsZWmkw/BRLCk+lSnZhUb9O udsF/+MAedIY66B+DugNOb4vfzE51O3ixTUtVPZmsvE5Fy7nmo6H+ureMcjWlyYhHR2A 363d40146FlV9KgMHc7IPGadhJYXppNGc4ucoLQE6UumGpXibBV3ib4M6SXCyuOp7QO2 S15ux2OtTG+SnQWcQso4d5C+V7Qa4sFDhAi2RpJNd72MkSLasaYjwuRYOs9oBF+DGnRt 5NZ7tXT9LcFB/FKgUaKGUFIu3eFQfJ7oKCB2ZjfzsHeXsnS8UUYB/G3VuJNTheuE07lr qjhQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=Jyvd5tP+; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si308785ejt.560.2020.08.20.20.25.58; Thu, 20 Aug 2020 20:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=Jyvd5tP+; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synaptics.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727927AbgHUDWf (ORCPT + 99 others); Thu, 20 Aug 2020 23:22:35 -0400 Received: from mail-mw2nam10on2068.outbound.protection.outlook.com ([40.107.94.68]:47072 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727888AbgHUDWd (ORCPT ); Thu, 20 Aug 2020 23:22:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QISZ0iPb8ZABuePXLarwpznFt8qv8KGi0SZQ36WLy5CKE/coQByqzcEhjd/XwE+WgWZ3nfy+pNLYqyZ/o71JzuAdW8+OFElid0zvROuSSblZMxDHVk8Sadrdg+vzuOLHwx8PK1tBwN74DEZz/gfBDpqW4c34CmHpQNQxSTNol3PdI3eYOgJgKJVvdCFxAvKak+qCChDxhBVqmItzfPxkhDuRnMXoFbsywIEunNS9FGOhkftHiwldVG7eCauO5/c08DspRyhOtzmrDyuJDcj/iHDFyWwRPTPoCXNPIWvsOwW9CNauYqivY90T3U4oEOgcpMoPBE+zmEkQM3WBbGaXjg== 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=KHvYbXKB637tjZ3eQiUxscttQbltDndxqdCobT2il9g=; b=F7OU2/QhqgGDhT3p5ZVw2aVe36iarBv+qZ7yKaYMn81ByLTMxiQwjTl5bjh9ENzNPCAOY6KU+IIu+WBOjS/UnYnub1LZ27ADpRAy+kqOwalWzUJ1SFWuqqI5co9VXLOaSQssf23K2xCYZKJpdX5XezwA+wSwn5xPaao+2gfRHV+Pq3XFHGms3ofIeNYs7RjyJfpLOjmh1+/v6tvbF+Ob/fKnn1XO3LKl25W0d/81iCwqiJabBXSsCXSchTSTgkXSGlRPrsjI3NPe7xCQZqznb3k0udkjGAlFG7njpam1w4pEcFxLCfkfNLsDaImDVgaVJAQTE5hc9Bb5HvWid3eQpA== 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=KHvYbXKB637tjZ3eQiUxscttQbltDndxqdCobT2il9g=; b=Jyvd5tP+oUG3negd4+if5tPAIBcx9QxmC27IimgMVaZdIueq/yiKfNwAEO/e6qeaL6Sc6uUxpThF/vlS1LiDXor8mG4dmVIRrYpCgOTtozJHJL+yUMOH0+9IvjDqad/WmPp1dhUjueK/jee0DRuWxXnHl4sKF1lYyEbYP/Fpigg= 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:31 +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:31 +0000 Date: Fri, 21 Aug 2020 11:19:13 +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 13/15] regulator: qcom-rpmh: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111913.1096f7cc@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) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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:27 +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: 35d47033-3d8b-4a12-3b03-08d845817079 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: eQlpmQdaVw6Hpp+cBsemuEZZNol67DOvhyEmwjITU+PBiNLW6phz5m331JUhh7aCyFlw0r847PixmhAEMaBBNNv2zJ85aDKAsG7DTYTHIEYRLA8PfD17uSeUdeN3zElwIwLgsz3srSnHXBWTq2wu+h3rTUY/ljGNxasufhTNjTAGOjrTHW4dnGR6etf6nen6moDyP8h0nCCrW8kBitT7/Es3R4Abroq0ZDqbUoPrfKPZVuJtFypjyh8yXa7RDFPVbCEZyHd/KL3FYqDuIeg9ZxBb5K9wSMt+UABsnA99SX6pzIn/HyPc6oBZPvo2nCVwGINBQ/IujEqFlq1+o61Wl+o0OcJqyz/zxZl1t50+QW7D2iVRyg9bxNjAmCVufq/Y 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: ZozzH3w/rJCYb0jrRctBPEEtsmetV03d+JorS7rfxSQtncbsYE7IXZk/Cf7mRq4NumPSJ2M4D5B/hgmPwvhgWEOKUo0RKx0vIIwnkklGHVyz+Kkq5hx5E1rPVqRvNkwOzRa2IHySBvZrllu88BlE2rUFzzhPGg3J8YAa2l4sIMRMpB4Z1ZNqbUlWZUahD324irCtTrmyiDQrEtNMISlVLsi4XipSDwB9/ciacBPbP/xoRYB7/3JwW78k2kKGuWIwHoO2T/3KdXuuPHJd3tEVZroJv/zieUQGFS7eXaNZEBhmp4cTwML5WobLsd1MsHQF73ApmVl0Pl+66rY8bbnCrUxdLvN1GmWo0y8Ae19Gw5MuUHG2nx5nDEqEYx1+VwNnwF7atF9DA9+k0YcRviirA/d4wFKKE4AwTNs594/EHqmdskeUTjVJ+hv/H3CZqw/rKRNuNoELlghIGCY0bR7siRQRkEktExBBtdweufPQOm1yfM4BmQUW8BLnUv1qbuAFBJzCZWozu1XJAhmVNCOQ/C5XVo7UX12AYppECQQyMgD/f1kpHMMRJkJkksKqMMdCi+Z7R+saFWDEn3eSXZLWVe8jSopQvxSbhRiRToMu2cu9yJtjFzRCY7qcmitTxlT+59Tk6qzcOJsizQPUkFOlkQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35d47033-3d8b-4a12-3b03-08d845817079 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:31.7033 (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: xemi8rU5Edv/2oHXSRVGOqaQ3acohBTBhmzQXOBJ0AGcXCt93mIeMHtOh94Ty24MgVvnJZem8ovhiGybnTxiEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix below warning when CONFIG_OF=3Dn: drivers/regulator/qcom-rpmh-regulator.c:970:34: warning: =E2=80=98rpmh_regu= lator_match_table=E2=80=99 defined but not used [-Wunused-const-variable=3D= ] 970 | static const struct of_device_id rpmh_regulator_match_table[] =3D { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/qcom-rpmh-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qc= om-rpmh-regulator.c index 08dcc614efa7..d488325499a9 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -967,7 +967,7 @@ static int rpmh_regulator_probe(struct platform_device = *pdev) return 0; } =20 -static const struct of_device_id rpmh_regulator_match_table[] =3D { +static const struct of_device_id __maybe_unused rpmh_regulator_match_table= [] =3D { { .compatible =3D "qcom,pm8005-rpmh-regulators", .data =3D pm8005_vreg_data, --=20 2.28.0