Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1053807pxa; Thu, 20 Aug 2020 00:53:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZFwDNJ0VZhu/Fo1Df3iuwkjFRSLYRiZEdxAek4McXFekdn3lmdaBFuPZ/tpkzexs35cGA X-Received: by 2002:a50:d80f:: with SMTP id o15mr1739222edj.156.1597910036352; Thu, 20 Aug 2020 00:53:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597910036; cv=pass; d=google.com; s=arc-20160816; b=YHV53Nyx26uCC8rZUg/Q9UKARBl1IqM4oLMymlZn522Wv3P1qXKCw12BvFlKRP6uUM t1+oj/BfKtPXuKbqM/4Ayk35ftdE8uA4N4Wvcv1DvcuCLHFejHQ4lOxEAnKj2HlhtfL9 DWKvP/Zu0lmtJR/SGsWQnJR5hh2xxCIjx9fbiVfcnfdzkdYqUJ+cIkU+HtBuMMI8lSmM SDhjqQUU1ORL1lNo434joYKg4TK/mxeIlm/raVBZapG/zUNMCymQDT6W41wMSysJsDHZ Vlh5SAtaNbLAUhGvQEN0+Es6SitmoCm2lsu7J40m0997Jb/QCHi47crSmCqhW3GqU/1P ki4w== 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=Zf9elrSMrynWeCwBNS4UstmD+7omgZ5RHNj2u7wXjT8=; b=J8/NkUiVunWgYgfhNHnLXO31Q0jQR20wr2af308XOc0Q+sW5sFmZx0XBmESlZfssEo jY/kZRT764pom8LzXf1y78ukKzU32EpVXop4pNZMkDNvW+AdA/Cx9Otfda1bt+m/2oRq fm34WI9JQsM/aO/OaMlxa+CvZXP1tQBt1++o8Y5kmk72GG+wtKvEHunGlZeuOOgecA2J CgjjMVo82aQVx+BW2Xba1HkTXFfT01J9OK2WuHYS24f00S8ZQ7ye3nG8EfQM8jca/mDi u32kw7l6i9I+kuLvx50qnwxkOZRUPoYqBjYo9AlRr+J291wzUe4h3bZIyaIPxLPJ01mF r9EA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=j+oSdNVP; 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 n10si699839eja.145.2020.08.20.00.53.32; Thu, 20 Aug 2020 00:53:56 -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=j+oSdNVP; 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 S1726975AbgHTHwO (ORCPT + 99 others); Thu, 20 Aug 2020 03:52:14 -0400 Received: from mail-dm6nam10on2049.outbound.protection.outlook.com ([40.107.93.49]:45647 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726911AbgHTHwL (ORCPT ); Thu, 20 Aug 2020 03:52:11 -0400 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 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 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) 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: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: 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 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/da9210-regulator.c:128:34: warning: =E2=80=98da9210_dt_id= s=E2=80=99 defined but not used [-Wunused-const-variable=3D] 128 | static const struct of_device_id da9210_dt_ids[] =3D { | ^~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/da9210-regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator/da921= 0-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 */ =20 +#ifdef CONFIG_OF static const struct of_device_id da9210_dt_ids[] =3D { { .compatible =3D "dlg,da9210", }, { } }; MODULE_DEVICE_TABLE(of, da9210_dt_ids); +#endif =20 static int da9210_i2c_probe(struct i2c_client *i2c) { --=20 2.28.0