Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1053901pxa; Thu, 20 Aug 2020 00:54:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUS6WGm3aNKe7u2zL15I5jVt9+50GMLOno1YjDh/WWNrD9RhfPkTqTlR7XY5BrYgpIf5Gf X-Received: by 2002:a50:cc92:: with SMTP id q18mr1701165edi.159.1597910047122; Thu, 20 Aug 2020 00:54:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597910047; cv=pass; d=google.com; s=arc-20160816; b=T3FmAaK0IOWJKY4Z+I72RkqM2SyWTpIz3dcjDJWLmGhQ2Gw3PBW4Xh1O1KWLJSToRj SkJC7lAZ0PSLSYbYSH7paSO6jRSyLQM8hvhZoWGsAYXhR69qmJBPWYnXO/hrI34ZMes3 U1M378wbmmKoo/u4+d2f/QSkibTwfANxPSZ2YrnCpXSSkZfWS8CCRnoKt3gwrHPiOnjb Tw5QQmrZeZx0RZ/7mslV4Rt+OStFcKmEk75acK6ESOYNoIb/Xs1/5+U8bH9eUoP/7VdQ LAFmLBFM6q3mgc3PsGKNXKULN4JS6ptVuAB9yGUx0eKClXFR7S+dO5uEYSWIbsfdm7GZ x3Ew== 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=Jnf3nmAMf0jniAlfsxDeUj7QFOtbRyfP2ALd/gz7Q3I=; b=RvBJ4lqIbkGQAuujRy5wvEjR5dL0EC1LliD82i1F8AO/g88lNJlqUfvsglyFL6dCeM twyUvvt4P/0h1N8ES8kt3A/ysZ7ufxt5JUf84tp2ENMr5dDuNoIS1oVxsefPionuzD9O kunq+Pgi9lly6L6l2rTiNJGSUdnpXihDQRH0unRhHepGW6vIt2c9lrGgr+7Pv5Al8NKO VvpCkNxsg0mMiX/9+elqK7YpkFaB/EBqRZXMyhknV/1Yl2K89S28yXbIw3L4YTaJpUQV KTDhGBOkRqKDN/6b8EVIO1FVjAgpXyokMa25w8megVxzX3K5hdGBgSOURQOuMIMBgMvm xUTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=Ok07fS94; 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 gx14si783890ejb.99.2020.08.20.00.53.43; Thu, 20 Aug 2020 00:54:07 -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=Ok07fS94; 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 S1726985AbgHTHwY (ORCPT + 99 others); Thu, 20 Aug 2020 03:52:24 -0400 Received: from mail-dm6nam10on2058.outbound.protection.outlook.com ([40.107.93.58]:52487 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726754AbgHTHwS (ORCPT ); Thu, 20 Aug 2020 03:52:18 -0400 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 To: Liam Girdwood , Mark Brown , Support Opensource , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Cc: linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org 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) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 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 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/ltc3589.c:460:34: warning: =E2=80=98ltc3589_of_match=E2= =80=99 defined but not used [-Wunused-const-variable=3D] 460 | static const struct of_device_id ltc3589_of_match[] =3D { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/ltc3589.c | 2 ++ 1 file changed, 2 insertions(+) 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[] =3D = { }; MODULE_DEVICE_TABLE(i2c, ltc3589_i2c_id); =20 +#ifdef CONFIG_OF static const struct of_device_id ltc3589_of_match[] =3D { { .compatible =3D "lltc,ltc3589", @@ -473,6 +474,7 @@ static const struct of_device_id ltc3589_of_match[] =3D= { { }, }; MODULE_DEVICE_TABLE(of, ltc3589_of_match); +#endif =20 static struct i2c_driver ltc3589_driver =3D { .driver =3D { --=20 2.28.0