Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1735964pxa; Thu, 20 Aug 2020 20:25:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpKyBM9GsbWFhT5i+YYWNtQcqWjmY5w0EDyXteKMwBiyaKvIHD70Q4vugJi+3eoEUkVMdN X-Received: by 2002:a17:906:3e06:: with SMTP id k6mr939110eji.37.1597980308459; Thu, 20 Aug 2020 20:25:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597980308; cv=pass; d=google.com; s=arc-20160816; b=S43zDOqY/wH/gozzKlvXLW/SGy+a9g2q3lWVHAEqEb9ng4BYtldHF0mhoiV97E16R+ lxXwlv0q+C2wEV2qjmKaAVQkwlY7Wuq3i/lJPTnGw0OXHMV0geDCjLwQeN3+0wG7832M kLrLf4GZDLPAN+T+EbVsjJHVPoHz2AN3DCCC0Z8t4K3fuG3KVKn9RSR6RpVLI4fZ0b2Z xu1TLys7yUs/Tfq3lJt/JmF2ohSQpOyqsyWHSXoUcOqy+FDAAJXPdBzsNYF/nOXHlF7w 0dXqbw06g973S1jWFZrqprm9g/CRBJAtkwPmzLdp8E/3Gedx7D/LNkSIvkQfyBpjoGVC UhaQ== 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=dTw5Ibbu23x/dtBOWV3YGwBoBdt3BnnI8d/c5cCYjSk=; b=EX9rQ4QX9a13YDuWFKn2JKbU/plE3p6nTunO2L6B6HdZgx9HrZupHgINd2qPMGbaKr PKEZiuxhNXLfk72j9o7Bcd8JFRSd+1e6A+2lwBz1u+qfW+16+OTile9GceSm9E4EMN1L Y/LzMyYrEUWxfdfQi07SkYU/2MXCz6H0xXte2ffiSIBenEz3GmKemH0qSxXedZ8I5F8P oYtrJIoUvP0TwU/2Ve5B3KpkdFxwU4KIOUtlyZWvbtUipwYeghedKYBYzqAQOS8TZX8i brzVp2Tn+wm7oYiBTNuxV3NjVuQ8n21KWlJWSr19K47KVNQKzoEj08P61dF3B7YF3lQQ KCaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=nNzG8qHo; 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 s23si431528edy.158.2020.08.20.20.24.45; Thu, 20 Aug 2020 20:25:08 -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=nNzG8qHo; 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 S1727104AbgHUDXy (ORCPT + 99 others); Thu, 20 Aug 2020 23:23:54 -0400 Received: from mail-co1nam11on2048.outbound.protection.outlook.com ([40.107.220.48]:10640 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727040AbgHUDXw (ORCPT ); Thu, 20 Aug 2020 23:23:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kFLu/EnS0AIJ/RREclTkb+IGvDfqheetzvrO18Hq3GXMMSvHzBgYpUZHwuFJJxqab81m1EcXhDXAAJ05FhhXxznS6Xa/VfGCtEmgi54567rlsDmoXpoSwPfV7j/ZAESJo1+gWaWJ4+1rb3lCwoX3BxxHoqbsvdfzQ+8Jqz9h7oZtlTuGtbduJMHMYmj3L2bysn/pAR0kp1gRH12Ss5hO9PfguC+4XkWir1OjsMYc8xf+aEr4XxLqRQY7/ZHtpJPjFE6fr0aVvU+opsppkGC5TI9MfJ3sUZxd3OMsZ14bOTsEimSrLwi0nLnx36GAGUTmMcFfbikSbAI+jAl7SCjeFg== 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=dTw5Ibbu23x/dtBOWV3YGwBoBdt3BnnI8d/c5cCYjSk=; b=Gy64CZoNrjlAfHXDyc1TnuCxFwgjy7hKsdKwl660POB3sAGgStvp1JAyKuKJ3RN5pEVOV5ypkozejca1Wmz4V+YN4dY/U0fL4uK1nGem65StKzOciLyNuBGPPDeFQQ0CMR31J+fjMknTrffMIFVbInCEXrhSJX+wJXIuMlHX2hQ6Q6/qfCGwIjMW6GVphorucdnk1rMhXjfPcWYIMTaGadKfCRSjDd3U+UBXKySsSb3h65Pq7+uuIZub30/LvYoMNhzZWaeq2uBLkoJav/BNueK8DMYnrn4expeG/b9uaWBPzPkd71W6cLyM1nSdRGZqe/y4hp74st4Wa65tz3/J+Q== 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=dTw5Ibbu23x/dtBOWV3YGwBoBdt3BnnI8d/c5cCYjSk=; b=nNzG8qHoFwt87uctq3olGvI+gip7hD4kI/ezbSoLfmcjmYSIQrjzQ+KCVC1lsngS/x2kD4NmHEKcYm0J+SN4NEqBDY0UHE0sZ+7WEMJVSPK2KnVb6Yjhft4n3o7g5HUnC7pcdTDx5gBI1WUcoYFof3Zp5CNGMNkdnqA48TRBRt0= 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 DM6PR03MB5308.namprd03.prod.outlook.com (2603:10b6:5:242::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24; Fri, 21 Aug 2020 03:23:50 +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:23:50 +0000 Date: Fri, 21 Aug 2020 11:13:24 +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 03/15] regulator: fan53555: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111324.430fe1da@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:23:46 +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: 999b66c9-f971-45d9-4ddc-08d845819f65 X-MS-TrafficTypeDiagnostic: DM6PR03MB5308: 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: vNCevzQNzizapUuqTeLogCDEzwaFP7AuB8o+wXELnILOLnN0SXpLHWL6zpyE6TO7GMIOpn6qxct/qfwYhuEPLQ326V2UUYE0rfLkmfWOwP83zqET8McMj80qRj7SItr7ddBmWatxNZhIzYrw/4d0NxVJVJ4YrzeYs2xxVrf2ks0+GDO4JurZXqTq0vfdAk8996OiTu/1RckKHnZl/aRsNVjZU0JVIcW1V1cOVjfo1WdoytgOjQI97YZkQXEYhp6lDxOWuvKoy8b5LrPx0NRbC1P1dqrgLbd16yWifbbppcwZFwrI6vl8XvoPjnvkDMHNkAQ7wS+3ttsjTU9pyBbPWgB7R2iYTdvSq12IiW1Xmp92v5UmiI0OijU3PY0uAQdk 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:(376002)(366004)(39860400002)(346002)(396003)(136003)(9686003)(2906002)(478600001)(5660300002)(66556008)(66946007)(7416002)(316002)(83380400001)(16576012)(66476007)(110136005)(8676002)(86362001)(956004)(4744005)(4326008)(6486002)(6666004)(26005)(186003)(1076003)(110011004)(8936002)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: xSXpR6ywMBNQHXatqY0UW6YvkqdfZKvfmZ+bgYDFQqS+otHdzqnbUrfJswEdGaO8znEjwwBa0n6sZ0rSwUdKboOyPKKrUtkS+FHQsl0BHftUBIIK16yG9UojYzdkIwJjoedufbT/zBQ+iMVzMNy+jkkNw0J55iHGkjTX4ZFXTxjhyWBl5rTf/OAf1ryLSZyztKBzBCsVSqeCvgLOsyFaWn0hX6S5iCX23/pTCQ0gKky082Mz5E393MDx2U/GDWt5H73jAgk/p39DzoWY7wHkvEsLnUa3a2A7ukts9B3tuwJ10YQxUvC6IukNxjrTJAFX3ogffX+LWTr5FwKZRv63gVnVLqBlliF4TvJUFxzeh9/NTEPIIfu9xdC4dvUGb5PwQv/pXaaMbxT2CUnqFnxaMi9ms9t+ASUbybwq50Gry9gl4jE842GZ3iV4EFvyTa4yTM8WxriglNo9AeTy5ys4tDVVRuKY6k+VILbbVQ8SmS9bQlPdYkYL/l2agmA1cJATlUsvQMPMb9iZOcLCYyeM4Nrj3JihFkxx3zs0n9cYArjRELnteRl7/COb9EHzO6pMZA2jPf14WAGbw30nFqi9cTeuu7J5AxPnUkK6HF+PXwFo0lm4UWcWg25G8gbocSoPXVbKYGBTH00TufKwQtFsAQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 999b66c9-f971-45d9-4ddc-08d845819f65 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:23:50.3197 (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: BU4uvaOAkG3OAmSDjhzVquzjwYm3/lIQANP1fO98dDIPf7kzF+qYJuZOmEvZ3lFojIh28jQhFwRLnfUVc+FASg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB5308 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/fan53555.c:439:34: warning: =E2=80=98fan53555_dt_ids=E2= =80=99 defined but not used [-Wunused-const-variable=3D] 439 | static const struct of_device_id fan53555_dt_ids[] =3D { | ^~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/fan53555.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/fan53555.c b/drivers/regulator/fan53555.c index 00c83492f774..aa426183b6a1 100644 --- a/drivers/regulator/fan53555.c +++ b/drivers/regulator/fan53555.c @@ -436,7 +436,7 @@ static struct fan53555_platform_data *fan53555_parse_dt= (struct device *dev, return pdata; } =20 -static const struct of_device_id fan53555_dt_ids[] =3D { +static const struct of_device_id __maybe_unused fan53555_dt_ids[] =3D { { .compatible =3D "fcs,fan53526", .data =3D (void *)FAN53526_VENDOR_FAIRCHILD, --=20 2.28.0