Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1734778pxa; Thu, 20 Aug 2020 20:22:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxisvrvqJSEKVDscfZ2D4v5Q8WH8gXtNcO5AwS7RhXE9n6MQgeTPUT5eWfp30C5L/Q4L41r X-Received: by 2002:a05:6402:33c:: with SMTP id q28mr758274edw.275.1597980138056; Thu, 20 Aug 2020 20:22:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597980138; cv=pass; d=google.com; s=arc-20160816; b=aVkj+2H8yzdrI/8Njw3qIK9dhmX8IJqVKqFJr8SkvpwZsE4XMQPn14GVk4jkQor729 jCF9fxrIwq6iNPOhxAO62uFdVcooQgKytejHW+v+ik8bNT/2QPvJdffxfPbO/lj7xCxF tqvpUUHE5H/Q7L0gkgcvuxM3yOfelNccSr7zzVkKPD0FvuD92VOaRlnBHmnih2I14Gcm 3fyzYEGJI58Y+1cdvMcx1NQHm0VlU+6l+XH/3c7asp2xOquGQuaQDiEYSxtfKSiBrpG6 j5I5/ab0iG80f6PQbVit4sp+C9J0Hrv7aq7zahJ3P7YPCo3BLZQk1CeAwvLD+00VKytn 8OVQ== 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=S7JS/7BXnnRuPn0zPKlPB4EE+b4KH7GRiE8Sl/r6Ixs=; b=FNvzl03NXW0Nc+/u/1JdP9oIVva+FwYTOf2lVcAMbmW/hc3qZ3RyA8O1K2el0kgw1P wgN5QVTQPxegi8bXiUQJsN6mQ+GaaGG4E8pcLsDBIZzshqGFafnuuDPSXht+Oz/LPz2f sTAnZ8OkNzRp/HefkAq4IlWX5mqref0YeRZm3fUxmDk2+gs5KimOJm238a+KqlR0RujZ W6ubz0XLkcQKybLEud8EphRS4uJtfeZwMp9PPY5kmHwH/zzdGU+W0Mglh3NazkzXKIOn LqOzwNUEC1iM28ckOSIzMbtySf0rcVWEphK8hutRzpHWc4tMWFX5IcsKvACzbzHKjl7a iCwA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=fy8OA3hb; 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 91si380012edr.457.2020.08.20.20.21.53; Thu, 20 Aug 2020 20:22:18 -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=fy8OA3hb; 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 S1727066AbgHUDU5 (ORCPT + 99 others); Thu, 20 Aug 2020 23:20:57 -0400 Received: from mail-mw2nam10on2076.outbound.protection.outlook.com ([40.107.94.76]:49057 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726844AbgHUDU4 (ORCPT ); Thu, 20 Aug 2020 23:20:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KEDfIX4AeMZ8IbT2mPBzUOyIObbHADZdWw85/eIFwzYzJUW+uU3nioMA5V1NkZS3c77VPbYLzmP6JCAn4VMnUm+E6l0qUE85G2DPDb5qp0IHhOSh5Q63fWDdOb2SVeG45pOE9xpSfcN2m8iXsY88R4ac8KqXYFQRtGAQv7T0fLcjvbOjX0tnoIUuKpfIJ2CX83WgSoClh+B+hCjqLhzTo3Ykn+8+C4HPA1RVOzklKI+UhAaXr/LTA/0y/w4gtxVmCICi2CNH3h3kuTiQZsyLhGfGyBFibVasAm/d0JCrJfe9DBD4sYBiTjSqVJRFUBhb32RfIsy+cYdIEBDarPfR6Q== 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=S7JS/7BXnnRuPn0zPKlPB4EE+b4KH7GRiE8Sl/r6Ixs=; b=PcAg2552w8w09fzGPscYTtVhfaSGQ/PUZRM0U5rdKgTf4coP1gsRnrFRvuKwGoeO326OIk9vLQEmAKWmWGyoh+nnWBTIJHCcAn9PnvqdkIrO1k9O0ygThYBEi5qDC4UjpwmaFx37mfEsh62tbHBjJQqaqgXuHmYGUbvDbLWA+lxxwuMHF/yqijXnMIfzEmTfL5CLN/z4pKtH+Wz4cc7CSAgFUhN8M3OrMzfTywIarK9a2QzwNCApsi0JPp6Jga1l7G0P1dFB1rsK5uTGMDyBWoofRO4+9qQMXxqagfW6k0rVs169Uxkjs95x2ueaM1+MQouhGu6Xpru8oTaGS5WfoQ== 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=S7JS/7BXnnRuPn0zPKlPB4EE+b4KH7GRiE8Sl/r6Ixs=; b=fy8OA3hbmSQSUE+wpmaqWXMGvi0CkHag6FTAY5BB2mAvag/40OqVmqvk3T0xJYX9PolEIbwviKRIl6zQvtGmbBTYlhW39IkpTRoZ8PByTxcqwsa/DHA93XT1iuZZUyZ7N4dbFtuCJwLn54XABtiQz2K1FR6yq5IeI8BxBypEFDY= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) by DM6PR03MB4617.namprd03.prod.outlook.com (2603:10b6:5:15e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.25; Fri, 21 Aug 2020 03:20:53 +0000 Received: from DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38]) by DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38%7]) with mapi id 15.20.3305.025; Fri, 21 Aug 2020 03:20:53 +0000 Date: Fri, 21 Aug 2020 11:16:31 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Andy Gross , Bjorn Andersson , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 08/15] regulator: max77826: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111631.4e799c86@xhacker.debian> In-Reply-To: <20200821111135.0b958d3a@xhacker.debian> References: <20200821111135.0b958d3a@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: TY2PR06CA0043.apcprd06.prod.outlook.com (2603:1096:404:2e::31) To DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by TY2PR06CA0043.apcprd06.prod.outlook.com (2603:1096:404:2e::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Fri, 21 Aug 2020 03:20:49 +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: d591de87-faab-4e2f-34c9-08d8458135d6 X-MS-TrafficTypeDiagnostic: DM6PR03MB4617: 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: RolNriHAhyRdVr04zS4Fl2G1nPIkMOpndh/iiA4VpM1lARB6s5xUWeWw9UNT1mizxE6HJIRXbJ3ADtgx8odl3EmzNM2uLU2VyK0z9/5FUDphVbdzrXfS5jgIM0MrA2dPEnYQrqYZYjQgEoh1riK1Z8Uh78gmoToE4rT8dySGAvRNe3bii5yfhAXv4yQQxof971/S0VNVex2ASIh9Es71ETVLx2/Xs7vRnGVybKdZBJBFGLbSLOo9nY5Mxtb0KXDPP/xdtUT3lDd7OXt/q0rILHczNCRTrJDeoz9ZXT6tM6vFcj0tmmZoZkzc5UhUGPZ7MyIJgT89BMVdxB3OfZUP6qVWhrwSqRmjTb60lbC/Aa7poTOCRlxyNRtue5azJBTf X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR03MB4555.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(396003)(376002)(366004)(39860400002)(346002)(66946007)(478600001)(8936002)(1076003)(7416002)(66556008)(6486002)(52116002)(110011004)(9686003)(4326008)(66476007)(8676002)(6666004)(5660300002)(86362001)(956004)(16576012)(186003)(316002)(4744005)(26005)(110136005)(2906002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: RyKx2bA397HLCEsFjkJiF5mBhoKdu6SSxebZloGQFm/8KV5tP9hhV4LkRppJZrJJiAJtgu7gJyR7kVkO5691GszHnNcn8RzVD7WQn0JJWu44N6WWisqCcgJHndx5Hm9ca1+45jaR2NQStxCuneW8fuzMK/xehYhz/PpwUdApZfr3BJ/44YLxBsjyk5NlPu+mWFXy2UFgt/n/x/lXYnuVyS0/dig0RxJeaDuDSxMDYZNAolSmN/u3cT5PUY8tlTUqSRUcLYWiYgEyY59tvEGApZtX81GAdqaBsbHdXHml5n5EBh33Wf6pbDvYpMjboAQQ0iRJ2tbpgl/sP41cFkNZDj0L1wBtyyy4A5d9k1tyuJWDHTIz2+9LijdVIb5HSCg1etSC55CH3h6VgfaQckg6D3C+hVii1C1xW0zBFE3l3qJmd8fVlqxQh2ghGEXgndNKNchSOrpMpgLGljSo7voa/eGeNGeGzIa5X9HvDSl2vTgxjzxcweiHBln9pjIbM6f8/iS963/UmjDdaEi5e+otPL6nOleh1h00Beup2mSZNyov62Swe9qDJc5vu+7XpXyWAtcZkwqVsajHZEZdHg7ye+t9FO7Hb7SjUVrvXIEXFv56em6DwFn157NuF9qfsYnnkT8fgNbK4XWyzkKkWPHm9Q== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: d591de87-faab-4e2f-34c9-08d8458135d6 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB4555.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2020 03:20:53.2641 (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: oZLs6Q0zoq40uoPPZpfifhSa5M5miQarNzRiD2BoxHcbZCvJtxfwp33xlGoRhSJtPNGwikhgnx1fHto4fhXcXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 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/max77826-regulator.c:277:34: warning: =E2=80=98max77826_o= f_match=E2=80=99 defined but not used [-Wunused-const-variable=3D] 277 | static const struct of_device_id max77826_of_match[] =3D { | ^~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/max77826-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max77826-regulator.c b/drivers/regulator/max= 77826-regulator.c index 502ab6afc814..f9e2e884ff54 100644 --- a/drivers/regulator/max77826-regulator.c +++ b/drivers/regulator/max77826-regulator.c @@ -274,7 +274,7 @@ static int max77826_i2c_probe(struct i2c_client *client= ) return max77826_read_device_id(regmap, dev); } =20 -static const struct of_device_id max77826_of_match[] =3D { +static const struct of_device_id __maybe_unused max77826_of_match[] =3D { { .compatible =3D "maxim,max77826" }, { /* sentinel */ } }; --=20 2.28.0