Message ID | 20200820153529.4c658b61@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 2059B1575 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Aug 2020 07:53:53 +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 EB1E02076E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Aug 2020 07:53:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qaMih/g7"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="Ok07fS94" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB1E02076E 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=/I9X3BbqcEbuvaXGuQDwg+xPhXDO3aeoNx+g6C+EFOg=; b=qaMih/g7VMv1408BfV5TQpY5m eYBPNQ5kbZ6q2B50X+ca+N0NO28FQLmJ34WNkx5ikv0rZBHsMY4TPGRwSEBnb+7GOtHXTaVjTQRhZ wsKUGrwCUM7oXwy3BsSMQNmHLm+ogeX4G1gISvSWlCzxb3+e+GmjB36bTCK5JeaFSHLGnGD8Y+0PM 7GUyv4m8KnsP3/NlnxnLqiDMNBj42JAu85boN/YTYciFzDaVvYKRjO3Rc3lYeXfKT3qinYAJ/UfYv cqQj1u55ro1tfjxcG5SlX2xg3HR8OOWqjpEWmcyzWWtHS4J18MChZvfGtg96nPr1oAQm3WVHn7Okj kPoWzkV8w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMz-0007V3-Dl; Thu, 20 Aug 2020 07:52:21 +0000 Received: from mail-dm6nam10on2073.outbound.protection.outlook.com ([40.107.93.73] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMv-0007TX-Oh for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:52:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cIo0ukr/tZi05K76JZSmoAXDJM9l/GxXnneXpHxlt0Sv4/f3lDEWf9l/SSpNtzGJ3XgsgbPI6psu36lUaFjKJTezwnXwORlnLx2mRyiPoSImFtoFI78sKk6Ydvb1rqJ2Z53zQzd5lyR5Yw6CkN6okXreYaphLfnUlOXm4ES1VptgxQzUFHMtSiSYDFV0vxjtUCi/LWcA5xTJcwXNcHI4c7dxSqMu/pkaCusxH/EzLmHRT/iOMGThgo5PNZ4E6Zsl260H8aThuIkNGIIhflVAcSpfSeG7k2pme9vKNHNRYxpdS4nlLDaMjXyVwvR8/2D0qfFVkBNnEtVanONgOiQcsQ== 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=Jnf3nmAMf0jniAlfsxDeUj7QFOtbRyfP2ALd/gz7Q3I=; b=Ch7De4FjAN1XBEDUQWsKEpCcMunS97E80uPIiPCQ2ePVOv7+wIlCJaEprx0YKi7RnyqF0+8nuVD66xFVsRGLuL/tEERVTv1K5GWwcLKDfIoA49CrUezzfbrfTQ8nru8w/tb+AYnfzAZYXUUhqGD2OnWHa+wkyfta//OuJ+Bti6FYNlAupfoFUyM7vMr/3hzop/FTTdqZ4IrAPCJPaVEXm6sTghQmZtUyfySup4QHn6JK0YWVQ+8omeWLyv9fUluiJ8KHpGsGUB6a52niAXF+quXhjugcap8ndoEDgV+S+g02IgNuNLv6Lt64N5V3m/7JvSoJ+QzEd6OM9pT9WDoNFw== 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=Jnf3nmAMf0jniAlfsxDeUj7QFOtbRyfP2ALd/gz7Q3I=; b=Ok07fS94C5yZiSRQ4f+F/M5OpLbpfIEuEY5B9Th5fvWxX9HMOSriVwaHI+o1C0KPyivHSRspDGpHGWFxw0ORv2do1RMAucsTwKtBqqSicYxvNXLLdhsVkQ6TpqHbu/tI65snHCmvI2bsDOGDAU40YY7mVeKneFXlYXFz9L2DhV0= 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:15 +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:15 +0000 Date: Thu, 20 Aug 2020 15:35:29 +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 05/12] regulator: ltc3589: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153529.4c658b61@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:12 +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: fe96ed47-9148-4f02-b77b-08d844ddf486 X-MS-TrafficTypeDiagnostic: BN7PR03MB4563: X-Microsoft-Antispam-PRVS: <BN7PR03MB456311CE913E16AE319CE9F0ED5A0@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: Q6RMGkcdO4Wi2Riv2nUnxv8ch/SxXlz9lYN6KnOusJnuPoXy13aZzw9Xdw1G9dZCjYRdgmJ+05deI/9jx44bbnhrf7EhAjNJotB5c5PY5F5rbfoLlx629DUBtXQzS+rhEtHXf0PrjZPj6UrZshWEZPLEMMfkPDYYCKoWtmrgGdsMSSZ2H/ybLXVfdUo3MVowo0ECBNd31aJtV1CwXkskOB6bpJGeM8X/Gm9mq5CGG6Y6Rgd94ynsu3yYIfStY4VxmuWDgz6F0er6GNHXM3WfvHPnPZ3RmRPq/lxBTcnvCTUmb/EM3xPlH5cDObUfg2vw9EUL7MBR5hVDOaQQGqzo2VdK17tmIq9J+FMfjsm6n2xVfpYjGxA7ygN79nzLbjK7 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: WlMz3vbJRachqM7TKXPoRtWPPzuD4CA66FvHZ/0yKGdMBvsYFZGyXn3eL5xD/lYj1BVpZs7CoQYFgkyk3i3RFgzQgCRqcBwZEIMQZHaI822FckSPoZ3jSBVaiwbTrqx81njRlhu9tzfbmvKVEedzz4fJx3qGpmuPNvtdxLRE9ZlGJvVg6hX9i/MtQLXFefP78hJaulDwZ3LqW3LsfyKP02BZ219oFJ3bKDvyq5YMlcSv7XU4Q0EFT8QmV4uBPHKcEW4eA4Ns36+SC1ZzlcwoXikUvbAs3PyXCFtL3a4Mh1xFESDI0+piGKAWjw6szEo06DXeg2v5dsOmDQonO18nn3JliHVFq8CbNbllf716tCBzXZAZxa51s1qZUoG26a6okA5zjwe+IgP7+cqU2DBs3x3qS58JUJX5+JsiEjI/urSzebxqhaNk1/x4EnkkwsPRLRLJUgp+ydlbYAn5IvAJlt2LhCU/0FUsVO2mAnzkeS1fbvk5ZMx0jrSCSFkgdoeb+UP34Uo6oIEAKpBWWlC94KjBS4390z9jC0bwGhNV+1zr88YKvvbnOsTsCDJbAt7813Dh92s1ZYrG89CUeX505Mlp41C00v/qMbITiax2nsPfsJMK21e1GdscFamN7ZTGANwHQXqNBFM7VUuWKTmQOg== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe96ed47-9148-4f02-b77b-08d844ddf486 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:15.6784 (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: iQbEZZXAvKkL9d0Pty4QjXLw1IwMzUlKDBSUOKTwiiuUQ+Hg5ZdqIAvFgC1tRTh8HwIlJ7lwALbkgv3ilKGrrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035217_845762_6E34AA33 X-CRM114-Status: GOOD ( 11.69 ) 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.93.73 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.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.93.73 listed in wl.mailspike.net] 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/ltc3589.c b/drivers/regulator/ltc3589.c index 9a037fdc5fc5..c73010bb3b41 100644 --- a/drivers/regulator/ltc3589.c +++ b/drivers/regulator/ltc3589.c @@ -457,6 +457,7 @@ static const struct i2c_device_id ltc3589_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, ltc3589_i2c_id); +#ifdef CONFIG_OF static const struct of_device_id ltc3589_of_match[] = { { .compatible = "lltc,ltc3589", @@ -473,6 +474,7 @@ static const struct of_device_id ltc3589_of_match[] = { { }, }; MODULE_DEVICE_TABLE(of, ltc3589_of_match); +#endif static struct i2c_driver ltc3589_driver = { .driver = {
Fix below warning when CONFIG_OF=n: drivers/regulator/ltc3589.c:460:34: warning: ‘ltc3589_of_match’ defined but not used [-Wunused-const-variable=] 460 | static const struct of_device_id ltc3589_of_match[] = { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> --- drivers/regulator/ltc3589.c | 2 ++ 1 file changed, 2 insertions(+)