Message ID | 20200820153410.498aa9d3@xhacker.debian (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=CyI3=B6=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> 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 319DD14F6 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Aug 2020 07:53:34 +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 0B1752076E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Aug 2020 07:53:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ga2JeHrj"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="ZkEU/HJd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B1752076E 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=H1P666VLnH/7uqZvqd+crwEA0B4iaKhieYtsbdWeGMI=; b=ga2JeHrj1NcaHbnL3fOrvDmv6 rHJeVCPh+AFtyDzDI+9yOS2sbRevTNW/WCgnvrCF164JdN1ZsZMuLzztHoadL9kgjV6NGLdwbrFM6 3NEObX4+GsyHsrtYBQp84dXAdt9UATagzM/EiIYyd7Db4VcB0XqDiL0FQe1lrgRfBfRugIhAVouDs uo7N6csd9jlOA++GQdL1y/dJnBQ2yRQt8yKJzvM0i9qx+7a4JbdhmXkoC9nelaHS+hHiyJiKjlAn2 EYDu94kORymmlemtb4j6TJ60+Iyre44LgB0OkIWNuOPhbNCBAADpy32S8L9PkQjILlFiz8PGTSN3k bgQt1swzg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMf-0007PG-Oj; Thu, 20 Aug 2020 07:52:01 +0000 Received: from mail-bn7nam10on2040.outbound.protection.outlook.com ([40.107.92.40] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMb-0007N2-5z for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:51:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hRtKnEHC3Iv2dI96XoqRGArxUw/mxXMQvlCe3sDJVRHgKYeyGUdyuE51q7iPy+/54EIe2RFrlRU+st2rA18ttoSq2i7pwheXhC0Nxcy1r5fJHuaCW5V3T8wZy/R3KXY7y/BXtVeaF8RAFD+faLkk8pWNLkA6X/3KBlsXiyV+JBDWcBoEj5a/4AnL2GUafMmNmRn8gbipsb1WtEiA3R12XgzyHN9LxmFNt9GWz4R6zRIQ+ukTnalDyhum7b0umFsXDZ+B6VGqbwQU1EJhz7Pq5Z2yprDS9//j7OwjUrGli5hhtNA1iUABrvY2pZ/+ANpBS+MMV+E9OJYAFUjzLvj+fw== 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=5B2/JNzCKZKLjBhv6F3rxJW1sECk3G2yv+iD/ySGx/o=; b=Lf6C97bePYPcDh0+IymfXLxHiYEF6FiDcpMF92tounc+yHWk7/DLLvYL8FkHE5msTH2DFeOo2TD1V39SPyzPdfBLc3kazgH3d0/yrr3SaM6qtcnkDhjMCbne/yH1TFGn1IRFA0M7BHMZKV/g55J6XXzqM1Lv3VS0Pol359FrpS3CTqz0o1MS0WiOAyEiF4yxl5KcEtmFBSN4ren2kpFdT1GKNKMFFXjR9PS/tykqxg6wynYMhXI2DpMiIogRgwfTLUDtwv3sh4t3dlac1Tx2BVvGElx1isCkU3G2ui8knqtZJsRjzT/Ig9BVlYQOvkfA96Bet8e+DZe8BqqFpxjhNQ== 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=5B2/JNzCKZKLjBhv6F3rxJW1sECk3G2yv+iD/ySGx/o=; b=ZkEU/HJdmu6TxXcvMFD1K3u4ow+4t7pmlNSoVcyuUFXVm35563KeCjffYDvPpgVpXBg/HB5LzYCI96NrNihdPDA1G2navuhZOmV1rgvwqCQ7SZ4uaJzEYK6Mt7VJ21gXRdAIWcgGUkRcKVT32KMpyh8mXnAf3quVDpPIn6bSAro= 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 BN8PR03MB4834.namprd03.prod.outlook.com (2603:10b6:408:68::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.20; Thu, 20 Aug 2020 07:51:43 +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 07:51:42 +0000 Date: Thu, 20 Aug 2020 15:34:10 +0800 From: Jisheng Zhang <Jisheng.Zhang@synaptics.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Support Opensource <support.opensource@diasemi.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@st.com>, Icenowy Zheng <icenowy@aosc.io> Subject: [PATCH 03/12] regulator: fan53555: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153410.498aa9d3@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: TY1PR01CA0194.jpnprd01.prod.outlook.com (2603:1096:403::24) 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 TY1PR01CA0194.jpnprd01.prod.outlook.com (2603:1096:403::24) 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 07:51:39 +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: f9458ca1-456f-4953-1bed-08d844dde0c2 X-MS-TrafficTypeDiagnostic: BN8PR03MB4834: X-Microsoft-Antispam-PRVS: <BN8PR03MB483469D92A3FE545BE5DD9E8ED5A0@BN8PR03MB4834.namprd03.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U6JXlAfTs0hl4HgJuoMucnY6VsLCO5WWyJ0Lm0p1/qpzqbUi2I/Q2o9vmpoERCJt6zZ0O3EDKtpxqUD8BigJdubArMZxgTdv7nIo0T/rTnXu3/U86yjF4UGOwPdZykXHNU8qQcoKLymYoOyeTVNFktwMdZdYzb1biVcCkP/03SHq8f//hgQ994OtPqjkoeXFDPE69y9iLMPvH2utL0foKDiccH29ElTxRhBnWYjQuIXlml6DPdQtKmTS7XoA3nfJY3odbh4MsiWKpDXrMJTWkkHpRcfP5s+5ACy72q1rPW8jVAMYrECum5OLY+H90OyAo156vvJZH5zhlBPmYiuzqsYaIArGqpk0gYg52bfDS7YdYfI5CtyWQyZjo1G8pPzJ 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:(346002)(376002)(39860400002)(396003)(136003)(366004)(478600001)(956004)(5660300002)(186003)(1076003)(8936002)(8676002)(9686003)(2906002)(66946007)(66556008)(66476007)(6666004)(4326008)(16576012)(110011004)(4744005)(316002)(52116002)(83380400001)(26005)(6486002)(86362001)(110136005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: mdvqFX6mYF99jP1RtZ7kfAFD4Tr4HelpiZFAf3VWzu9HXsitIxVc38CVfBD070mXRZt5yjy678Nr8e+5AmmvWZnLd8mIGVilwiCe67qgXvJJLVlTm4TXVBqzinBbpRTfE14zVGUFdoS0tUDTquV4otD+ywFHeQlU+oBwlNcPWSCxQ4Lb0MQmukVc5sc+rQNni5CpIT2lLQmkbPa8m/Xy5sYmA8S0kcW5UdBWmoLhaViCDbMEe3heKb1IlTeWfFzaFOjgVRBvedGjc3rOhcyRAiaqXcjhCVEtW5UVDMctl3KkqCzdNg2+47SQKnqsJBVFl1gCi5xtdPPVt/OZC7rJH6BcBS6b9AQBf5RVM69u7UQgNJGemJI1zzgGkAY4ffhE/Nsa2vnshJX+SZwMtTha35g6zNdQXnQEuL1SBNzeiTGbq3PW0DoOdQmVgVgXOY1UvUWsC4IlqR1pptsWLrpE6KvIkMRdGOqFQLsX8JTCzj1pgDmNvcSOKuqfKAJv5k9N8Lguzm8t4V2ZkBY52lxYjv1C1jctOwFMGVIdUArG0kqd3HsgTFJMA+KC1OQTxrSphKFM0OEthdeZqcnxXAuWA3FujzqKtMHnUg3iEzghZlhBDMDYsC7KmPZemu/O0tx4aQi3Ndw1w4ckaTs+fmEEaw== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9458ca1-456f-4953-1bed-08d844dde0c2 X-MS-Exchange-CrossTenant-AuthSource: BN7PR03MB4547.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2020 07:51:42.5861 (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: AHSkNnhI99pmFWOCK2dvsJx1tIMZXzNzf1MEHFmzeCex9L2h/iULGdKlGX4NSIMo4AUTp5ACqXMm3Hq+bA8b+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR03MB4834 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035157_316138_F15D0134 X-CRM114-Status: GOOD ( 12.01 ) 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 ---- ---------------------- -------------------------------------------------- 1.3 RCVD_ILLEGAL_IP Received: contains illegal IP address -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.92.40 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.92.40 listed in wl.mailspike.net] -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 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
[01/12] regulator: 88pg86x: Fix W=1 build warning when CONFIG_OF=n
|
expand
|
diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 00c83492f774..387c53f387ba 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -436,6 +436,7 @@ static struct fan53555_platform_data *fan53555_parse_dt(struct device *dev, return pdata; } +#ifdef CONFIG_OF static const struct of_device_id fan53555_dt_ids[] = { { .compatible = "fcs,fan53526", @@ -453,6 +454,7 @@ static const struct of_device_id fan53555_dt_ids[] = { { } }; MODULE_DEVICE_TABLE(of, fan53555_dt_ids); +#endif static int fan53555_regulator_probe(struct i2c_client *client, const struct i2c_device_id *id)
Fix below warning when CONFIG_OF=n: drivers/regulator/fan53555.c:439:34: warning: ‘fan53555_dt_ids’ defined but not used [-Wunused-const-variable=] 439 | static const struct of_device_id fan53555_dt_ids[] = { | ^~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> --- drivers/regulator/fan53555.c | 2 ++ 1 file changed, 2 insertions(+)