Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1054923pxa; Thu, 20 Aug 2020 00:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCRKHoha0Cbyy+ap+hRbMdRRlAX3qqJEwMBvUxcEQuuZ7oCI5zcX8gOBwNxBi/eJeUS0FB X-Received: by 2002:a17:906:7104:: with SMTP id x4mr2124360ejj.417.1597910185955; Thu, 20 Aug 2020 00:56:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597910185; cv=pass; d=google.com; s=arc-20160816; b=O9PViVthcO2jAmU8SrxHTpLNNeLomHL400mzNcpsjxlTMAF2fYTL5DiP7M8dDAcAdE JGWWXJBbZtkRVDu9cDfSbKfnN2B35n9M8wSOiJuZf6cmAa5tcYOsr4ngE4T9roYGVCGv JFX5Nx+7IliKEO71QkCtGoIUQy/4mDng4htTlKFgHXD9rgRhANpVA7zshdThHc7mCeyR GoyaV8qJXE5Cqi0hgXScaeuIV/qmCDowF9971ExTC8g8Vrx+eKf20uqK+Ri5KiDN8Lx+ LkkBPPWQDrbXQfoDCd4XGvnMHhpI4w3SUewvTwE5ptGOAwgZGfK0cBdSBaXyZ57cTY0f T/tA== 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=O3zdwZEIEY3QYW7SGpQYmAMFrLLvTDP6gpCky+gDaWE=; b=oYfcwJ0OF5DR33jZqnlb6X8+NVtobpfRKggvJs9LBNCT7PfePS92Fs0tudzGHzhA/H T9V5Kl57MEG1V6/n6OkFCWw10hz3PhaDEiiBn23/huodYEscSPenfBHoacjTnFiukq+2 HW5YAf/uOJaIJ0uFY4eZ4DZARPnjIzGIF48j2zMR5y0xZ8+8pbn5p/yb7V+B9Q6cCWN1 nELdtA/C8ORyQDdkTqeijsTLCEiRNzP8B1S6pX93NDbfXarr+gHHWkDC2Z0wV1KPEWL3 7mgRmkimBkQ/wKT67FVO6sQVxJ+A1miuMC+z6F022x+qB4KgGzlD524mureffH1YYq/H 3CMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=hbfQDW7c; 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 ly14si783950ejb.369.2020.08.20.00.56.02; Thu, 20 Aug 2020 00:56:25 -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=hbfQDW7c; 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 S1726750AbgHTHz0 (ORCPT + 99 others); Thu, 20 Aug 2020 03:55:26 -0400 Received: from mail-dm6nam10on2083.outbound.protection.outlook.com ([40.107.93.83]:24237 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbgHTHzW (ORCPT ); Thu, 20 Aug 2020 03:55:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VBW0Qm/523wbbtMxI4KWgnwZmWElDfDIk4DAmAmn9l669E5lc3pz7nB8X4eyTnM1ix6D7NSblM8LWjdNMKXZ+GTR5TQj5IWLCzRhqdU28/eDrZShcz22c/sabSNV4c+0ZkgbgYvd7uLNYdZb4DkhZcrq6HO+I9EbkcNqN+IhWasXZ4+9P/BedJi+fmZfj1LzYcBhLWTkmz9MFGB+N2JGMMXIx0OaQZR+D2roaxYVD10GV2Bl7bRCb/gK9TTwA8w7JDr+ir3Rb9RGEbR9p8tObgGfbRip4qwRhKsSNCkttAUtwQLlkjR0/w2k3q+cmt576U4xaeAngQmbRF6W2635xA== 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=O3zdwZEIEY3QYW7SGpQYmAMFrLLvTDP6gpCky+gDaWE=; b=Wg7gtw3Z7YilNOZQeAchoVAojKo4BbPxc+re0CQKzRid/3Wgq6SElGOYN4vq1Ql9XJRZw7Oaop7/jAaGmUTmHdag7fgfyTSYNJAgDAYfvxccpXCtTHgH/5Rtf6/G+vxfk7YRqPWP68cY2klX79EPc7ECSNmNDgjSp+bAN32KyZA+xOwRHMIWM7B+3cGS/+joAQRgANpPg0zm2W/N3V9oInGro1f8kAJfyjwTPp37HtUkB0j/mPH0zoCQCGg/Apu/g0ho667TcUOP/z3ip2h/Ac+LOkdASmnolMxFe2GeVp+OgyPDSt3vyhTcQHXpUkQEhZmU8qVcaL89lcXyki5Yzg== 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=O3zdwZEIEY3QYW7SGpQYmAMFrLLvTDP6gpCky+gDaWE=; b=hbfQDW7cck1d6pmGNKRxjX6twkLJG46OAs7MVO9RfFKOJDMSmbgjwU0BMqHiC6djT5W79FvfYQ5YtuoAweoi5O7Er03SU41Fgf5moHV6JCZsaznUX15NgEY7wdwV33XHOeO3pUPdJtuGNM/bijJwJiOmG5c5C7o0SNTJC1VVxz0= 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:55:20 +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:55:20 +0000 Date: Thu, 20 Aug 2020 15:37:00 +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 07/12] regulator: max1586: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153700.21be8ff4@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:55:17 +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: 53f4a4b4-d5d6-4990-5fbf-08d844de629a 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: g9le9ZTYwdlgs7VKCacD0J7pDyRyw81FV+y3OA1OJGtlD1zwgHJ/HvLH6Kh1E6Nmivkbs59RglAzyQhBMeC+5ofxqkBYaoBycsCXzDrBOojt/XJ3sSZBgGfI9FBdAUN0Kkjm5XBo3geL1kN6rsjOepD40x8MDKnv+Xbop47CC+kchDADE6p6DtM5Oyrg3JsEo7R1i6R1GK9iK2qY8//EwuFVqoUO+zQzwfVa+7lWgIO7QVzxZ//iNia+TV2dAXJjndm3PmcotxB4A06uZgKAuGNrg4Y340IbH0wYa2rYBSWpeTq/QG+4KorVV7/SGD9hKo1HEr574mKOLLCOsIw285FTYdjiFnqO1ptqDs99/K49FvhiNFdNqP7JOL2iRsz7 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: UmCF4udFDTyQmvRodyyfDvvVOHlhVOIZhgPfZM2bg92dryaXfHc3e0s36YdP3FbCDhhhiE2D72kwojG1ZzCB/CPO6efXYJDEyCOafLEMW9THFe/Sct3/sxOHzdBmkQcMJD07Blyh8HYXodofqN3HQ4vM54zJBx0pTFti2kDq4EdGBIcsQJfD1ONIoFO9KNjXe/j0AfUWCD7WBcXfOn5eK7KDVoMDx2gG4SjDnIp0TScOET+ZPByu0KO7bHBxn79JhRFZF/knnJlOiKLqoaqsKAfAWOqMI1Y00rU8YaeZKhxQM2kFLPT+Idt+Dd23LiSeHX7+xatgVmfJROxsTaNMuyqWruf9VAwfezHUJO3wchtx/RdGfScdjx7ONfKme8RFkCb6iwMbp82lqEmERx+pRD1jmU47P8ySQnveB2PxJ9P0xTFxDeYSagcK5UUk0QBVLfn9m8/elGgXqJvOhH1ZMcpaE8xEMydPedrfcPzsEglUqfyy+G5/n6nYt8xq5dH58SMlFM7XpYNRZmyYdXalghTR69ZwakxVLim6p/RPLiGqibFZfpTe+HdKRoz2JaYrF3jga5KvaE21rvCtNOmraaj8Ok2/9QN+rnI0VTWWV8zgmf14P0XLKYW4CMyuFhbLwC7PqXY0uHExkkZb4NT1dA== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53f4a4b4-d5d6-4990-5fbf-08d844de629a 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:55:20.3336 (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: TvrZsZjJnH3ozfg+uNQrEf/0de8fEhL4r0dglJg8DOBpuyzip1EKDDH6iOweL2sE0oCOq4sL+2ouS1pj9M9vWQ== 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/max1586.c:204:34: warning: =E2=80=98max1586_of_match=E2= =80=99 defined but not used [-Wunused-const-variable=3D] 204 | static const struct of_device_id max1586_of_match[] =3D { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/max1586.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c index f8941025780b..2ddcdd2908b1 100644 --- a/drivers/regulator/max1586.c +++ b/drivers/regulator/max1586.c @@ -201,11 +201,13 @@ static int of_get_max1586_platform_data(struct device= *dev, return 0; } =20 +#ifdef CONFIG_OF static const struct of_device_id max1586_of_match[] =3D { { .compatible =3D "maxim,max1586", }, {}, }; MODULE_DEVICE_TABLE(of, max1586_of_match); +#endif =20 static int max1586_pmic_probe(struct i2c_client *client, const struct i2c_device_id *i2c_id) --=20 2.28.0