Message ID | 20200820153326.4dc2eaa5@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 9AC7F14F6 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Aug 2020 07:53:40 +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 71F082076E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Aug 2020 07:53:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IFmmEJqW"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="j+oSdNVP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71F082076E 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=UZ37rboaEihXPcEKifatCFreBHzD6ENq0Y+e4d3AB28=; b=IFmmEJqW4BHDGt3cManCIHMgB a46tpd9fQzJ7Ma/zF0QmSQqtqGzJs55tMupxBAqkWcuuaeHD80OiHxPOX9m7ABKN3IP85+blm/o3Q TEOYofN7+WjRFKGSFlU175MgiHQ9cWOdSB7bqQl8tuJlHlsT07i49cT1AupJO4JxeXcJzeqmC6RUz QMoWXKlVYpn2oRgorQuXiU87cQbFBR8MHRqOCDDZM0dS4l55Ls2hs3iW5/vGmozvvXunzGkkV97uO 5RvpDRLZlkwJWX6WyqJFCe6us6EY1ThtsWsQ2oST1s7xsx9EYxkeCEFiLmzx7aprAtHs3P/SEeoyF 5R8uWhIOw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMr-0007Sa-TR; Thu, 20 Aug 2020 07:52:13 +0000 Received: from mail-bn8nam11on2061.outbound.protection.outlook.com ([40.107.236.61] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMo-0007RU-NU for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:52:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nEvax3OKoJTWma7pjLdCrjEV6VveqbSp8ReDXCGdxL7RkxTcN4PnLdMA7w3nyZcuwfVhgmhqqloNtUAxVT8zq1N0uEWZFoFPRS4FasSorRzDcT55zaN2B6fU0Am5G1XOzkQ1/wsaZTvaLmMsdaalsvQvL6qS1tgl1JkRNDoa5uNI+qytQCHTTj4G6qHr2z9pbnS6ORPjcLqevI9bxgzJqMd2SGNYVsfXw0k9R3DdtPIm82xyBm4Tu3MmXUhdCSBYPonvL0NSp+PCb0D3jM0Iv/X8YZY6lJCdha6J41lvKDt24IiDFpRpxAv23cr/728q5bDqfpk1cf+AKiB/vfmT6A== 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=Zf9elrSMrynWeCwBNS4UstmD+7omgZ5RHNj2u7wXjT8=; b=ExAa6jS9qS579gDg/61/ChrjVVR+XChcT1R9+r5hHH+r57jIkBpBPWalsQGegqnrWV+su0ZEBqEKyAPgf2AS+izRdVjFSxDg59Qa5O8SldIYz8WunEg3BnGcWm+gVhBEzbZve06yvsjHD8xoU6zc1X8MQRI8rNzdHE30SQ9yTJ/bLfmyKNcgLDqCbMIPHtpNjVJSNfqdqxVxYuay3bPzCiRpGROUb/N2xLFfZ9XwLOxKFBZHtOoH/BOjs50gMGg04G55eIj9m28Si2V0Vs1NWYTvSoOxMlk/u+EGYUcNSLptapLEOle359p2ipWnS6zfRZp+FZXyhZvMfehv8G44MA== 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=Zf9elrSMrynWeCwBNS4UstmD+7omgZ5RHNj2u7wXjT8=; b=j+oSdNVPLrtSgLY6misxjuOJ6UjayAp78mtIGcbL0Dl/gH8kroKKnC0mldi7M+Tuo9RX69qmkb2sVi80+lk/xl6G+NSEa6BCnLnVxWhHPqH6oQEQ31O6DW/Ujv3xuZi3w7XzKC+r9XFDwxYpg2bQgsd8LWQJE+MVJq+9sxCA9YU= 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 07:52:09 +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:52:09 +0000 Date: Thu, 20 Aug 2020 15:33:26 +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 02/12] regulator: da9210: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153326.4dc2eaa5@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:52:05 +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: bad55c1e-41c3-4b62-5b7a-08d844ddf0a1 X-MS-TrafficTypeDiagnostic: BN7PR03MB4563: X-Microsoft-Antispam-PRVS: <BN7PR03MB45632985AB0717FC4EEF3D80ED5A0@BN7PR03MB4563.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: 5expQg5fpK3C9cZWhhtaQwcbguhjTYvt2pe3RmmXoN/8znE/gRN7lfzQBg4KCtFhyVjcJUIsuv1HJ9txOKTQcoQeHOOawJFR+GLQRw7TPu7hvWvQiK0eZ5+GMfVX7nqU1X6RydLnQYn4gLnXaisIB96zxO8YQqvP7nDXw3YnjYNQrPkKkT1/oUGvfbLvQ7cbkrM1KWcH6BCBVHWmF88uNYNxwCtHgI9iQtf5OVFQKsa9Jj6rZh+6LpYETe1Wn8KftUqSMb3guuzUgVW79aS522XMicY83vYB6nq+aXX4JyiF7uIlOTPklug+ka6jXkRKoT/P6ouIwuugg8BI6Sp57QO6IScjOyDVhC6zzxYVPw/CI/zpoL5H/Yx5hayi+RLJ 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: k/Znn0rBnP/azwhf0RXfIqIsf9arQ6mV0//KGYY77Gj/1u4rYSTCqIYYFAtHDqd9qmtZgT8XVAHhfO+OoZl3TwIhxKOjx0w3c6dRS0toAJ1gJZ9QtFLyLjNEgVoZcXIHFbntMqXOxot6FjwX2nKgf0a/XanSyR/VUJpxIJfB8Udmh0tpGfHqQDQ+k2QA9SnT0eqioaNKS5fcNxE8rsgp1lteay2ztYof9QH53F6A5BWRUHr1Nb746uHwnj6gzo1rovD2a6yN95N79iJzxfn9tMiGHQdJRN3N64GwyUT5Zq0AO9jiQV2prJ8THL0ZEqrOoqNIFj9mt11UKW2CSdKnxHejkzzrOrpe0mG7/X6/TWEG/R5Q8palvjd5VS+P8rzlEAee1cyfw4+FaN4wvTVIgZ3Upfgc3flqPB5gAh2CZIoToFV1gy6rT6gGFujY5prGaFUx5UmqptbszS3184dIgGFOBVoO0VUhP+baE/b6ep2tlw2YTq5Ap3QbQ83UY4cX0GSxMqQ13o7hcGQUXlkZyhfc8DB4Z0YtGPZgk3A2pQX6ykK1UpE1BSZSVneaZjJBym98CH4nLe6T/FPsslr3yQVjVw7kX3Hk3uO94KpoSogVp746dn2EJHy06bGB9mfdX6vTl0yZG7IlhwRiTOskfg== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: bad55c1e-41c3-4b62-5b7a-08d844ddf0a1 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:52:09.1241 (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: yzsXlWIZBN/YNVPyjhzi4bjfdR2t+gAIvpDknmAbcJTM6L6e6u5ZlA8JSdMUtpWsmnuHBudNeELjDET4AIPh3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035210_858984_821D82EA X-CRM114-Status: GOOD ( 11.33 ) 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 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.236.61 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.236.61 listed in list.dnswl.org] 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/da9210-regulator.c b/drivers/regulator/da9210-regulator.c index 0cdeb6186529..219baed89ba5 100644 --- a/drivers/regulator/da9210-regulator.c +++ b/drivers/regulator/da9210-regulator.c @@ -125,11 +125,13 @@ static irqreturn_t da9210_irq_handler(int irq, void *data) * I2C driver interface functions */ +#ifdef CONFIG_OF static const struct of_device_id da9210_dt_ids[] = { { .compatible = "dlg,da9210", }, { } }; MODULE_DEVICE_TABLE(of, da9210_dt_ids); +#endif static int da9210_i2c_probe(struct i2c_client *i2c) {
Fix below warning when CONFIG_OF=n: drivers/regulator/da9210-regulator.c:128:34: warning: ‘da9210_dt_ids’ defined but not used [-Wunused-const-variable=] 128 | static const struct of_device_id da9210_dt_ids[] = { | ^~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> --- drivers/regulator/da9210-regulator.c | 2 ++ 1 file changed, 2 insertions(+)