Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1056054pxa; Thu, 20 Aug 2020 00:58:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzygXlC+wtbdekr7kG6olmFTqzdCAJu+kE5JBCLx1WYSAB/VqWtFy2S15s285BQm53KzASi X-Received: by 2002:a05:6402:1758:: with SMTP id v24mr1754075edx.274.1597910322893; Thu, 20 Aug 2020 00:58:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1597910322; cv=pass; d=google.com; s=arc-20160816; b=K5gIUJ/JxoCJQg4RwD394Lqvr4DAely43vQ/DYrU+ohHKrT7iYrS75Qg6LPhFL9aaB +yNt0K6Zwk9jrjao4dAWdwHZZyZU7z/YSqeFzjPfjxzHGPfYFnGp9F7rAQVjLmJw/Kas vDDpHtqYqLWcFFr17ja/MiZdVmITVxMgrVFs2HBQXkOnE3k7yyj8GUulNDTo0iB5IufK gYTYGQwqnLOPnsASj08QPCP3UbnCH3nRwan8jJ9OUl16I+R+xnSunMX+tsabZhkAutQO 4GsgRSGSNq7D0nZdk48F6fAsMOCgib9TkroCQhlpfGBnce84D44/KT56HH/Abdi9W1M3 uDIg== 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=2kanzZz1aFkEpsO38Xf9fvG+FLxN0hTM8qu+uLoFHXI=; b=RO365icpmGwGb8/YVEbICLSYomHAHDO5eDmfkuf+8BjNFhzZ0wqyJP08w6mMMKrkj3 YeoVVEMRr0EYM31vxW1k7CFI7yVLe83+riExbgQSYJ1BmWCP1R9nk92OoYD26A/TzS7m Ykl09cBppKcJUET/ITxRvqQ7cFfqLCtlRDUhTXQeFWO6mwujYslozhiEnqriTY2FivQB 7TIsKZ4AV4UxR6Zl/vgIcJdHadWbye4aDv01GJOf1txFFSgAKiCwrXBuV+tzVTAxLoJ1 OjBeNFkX4MO2nSdWXQ1f4lBC75nWJe8rZO2jAqZNKqv1CTxRzZ5cpSDBgVST/GH0tZmp QifQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=TJf2C65v; 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 l14si926367edv.603.2020.08.20.00.58.18; Thu, 20 Aug 2020 00:58:42 -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=TJf2C65v; 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 S1726912AbgHTHzh (ORCPT + 99 others); Thu, 20 Aug 2020 03:55:37 -0400 Received: from mail-bn8nam11on2068.outbound.protection.outlook.com ([40.107.236.68]:32960 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726861AbgHTHze (ORCPT ); Thu, 20 Aug 2020 03:55:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JsNOZw3eItSyeWBMEc3tfat2Ihd3G85n7L1TZXH6/ophHx2EootJD/jZ2jCob/slfn+dBXxXNWBJ1TRDFDea+t7CYbZGBtgFpr5DjigXEXMUpq7Fq5jwuAloWH3WEuhp6Gb8CGlgbsq/3zkj04MYaZYIpsgl6MWbKwh/Xa64qEkQ1r1yeTJsBudYkVdpbVNwIh2RCtXm/xN5HwnHyM4HmQ09mFsmfvkCcbd8p90+m8hJw+1gfO4jSIwehzUOeemqpkkTUwFDRwTDOCkLYh23KzhF3onuVRn1jT/w4E11joSs38zszKi7aaN1zSFCuFfMgNDSs5mdmKcs7seblFjlmA== 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=2kanzZz1aFkEpsO38Xf9fvG+FLxN0hTM8qu+uLoFHXI=; b=JVu+H4zEOb3thscMklQgpYcsGYRdx0JWpTvXTHEi60jyiBSVnDWX03BEYPd/vY6V8YcsZuJTXJ3peJjv/MEP+iNz6bEt0ySA/7CF7MbMi477AGVYyXkYp4aIn1ZWzXsuCl7dPB+O/DXmGIOLsZuBUNczyQTyn2ZgGRmoKmKLFPf3o95UOYhi2X4XgtcQmoIexCfihfmo9/jpOx03uHweSvWFvQ5T3ci9Yea90waPilGQgnZrFxg+HMt7u/0Cbp5gyen1sn40xbsV88MeSgAtrJTWD4z40VDFlpVCg0IDEZbPbQUSYsRSCYob+n7HXk2W549mgeICtOIUkfC2x1QL5Q== 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=2kanzZz1aFkEpsO38Xf9fvG+FLxN0hTM8qu+uLoFHXI=; b=TJf2C65va6FweqIWsZAf8VGJaysW8bNYB2eu4wJWJiM773weLwGaUxTUae1tLFgEroWy+1uixJxZKOr7sxH8om27n9ZvPmj9pQShj4OZmo/0mWB+vQq7MA/m+V5eLkMlDDVnw94TYtrG63Cmx9hbRjABIAHwOiDfES4hW/Z23mE= 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:32 +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:32 +0000 Date: Thu, 20 Aug 2020 15:46: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 11/12] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820154626.79d83157@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:29 +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: 9f47b96f-e2d9-496e-71e6-08d844de69ee 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: SL3fq435P5DMu+vnDOPIHovKEtBUHiJDf8MHuDIvU54BzNMr8wXvRzeTDoFnwasQQAe8bklSDHniZyBH/IxieuXgKyfAVmq8JJnpMZFeLdcnFgW//a10Bxp1HNh+G0VmZnG/YSWcq54C2P+y5cSn7N/+E8+umJJ0RHMtXbb75WeFc2pG3fkFeNO04CiSy07LO7kPjAnbf+q+FfCc7+t8XZyAlEwPytSgaqhF7VXKLwsNDm2L3qfxuaMltp7C1Cq+uHDW7N2a/088+sUaHFCNSsElSUFo+D9vSRYI/ZIP6S+nxQxik+fqMEq0a7+d73le7Z8UMVtGIjv8uPdIONXnzx54hicdpnqYgf7uV7lEIPeICG+ltw9gTjUCojLfyJoD 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: TN+waXo8hfC7kS4ggs5cd7Yq8P74Wx2QMm0LF6pcStDx1v6sAQ/znKWIkoLnM712ulCf8iMq6k0DcCZCepS10S9CoOPGteAKYb2EbOb9iHmOsnU+0/cOoTpBLtuPR16g+Dq4eeZ9CuIHEo9u3fkiLFAlL40c5mDm9FRPztQeOVxN0PwzSNj6BSfeS9IN50W/PNr0IjSDxaeTxD1CByDV0ddnEG4u7JsPbi9QicLwL3mANuKSsIZjnm75IckIl3mLWM2YSdqjA1EOShlk9tQWSAWSh6Vmg1ATwQx5rIPvmUFthSkLOKsAr1N/ImaH/4xKMxKg7mbjyL1NaVxmkWuwjrVhOUBpqWYC5Wm68CVmvlEPsNUEOsAXrfZX5HmN6PYHfebUhnVvAJ8e8WofB/L/xE+DFGhLv5HtYe4VPc0j4noetmvhRg+nYRlZhaPgyn4e5RyuYhOqnSa09bHfl24vhX7DZUbVwON7lkrdsbO8EgXnY9cN9yr8xbEJE+D2h8eZZL+CeSgb7rmnpXf5bGrKktah5Py2zag7SqiL6BYF9m/QHAcAUYppf0HRtbsMutABCPhsUy+J+2Gzcafu0O+2HCzG44tfIk3mXc/AHOOwPS2/spkKyXFX2sC15cmopOnL2STjoJCYyq8kAT1wh1SUCA== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f47b96f-e2d9-496e-71e6-08d844de69ee 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:32.6336 (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: cL/OqZ6p8gsW/yfyey4RFu5tQhBwlv+Na5IAL8KzM+ggjFjN0TCFy/YCg4fAk/ak1CtVcHMiISq3mA7RVlSX5Q== 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/stm32-vrefbuf.c:287:34: warning: =E2=80=98stm32_vrefbuf_o= f_match=E2=80=99 defined but not used [-Wunused-const-variable=3D] 287 | static const struct of_device_id stm32_vrefbuf_of_match[] =3D { | ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/stm32-vrefbuf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vr= efbuf.c index 992bc18101ef..5a5c12d9ea22 100644 --- a/drivers/regulator/stm32-vrefbuf.c +++ b/drivers/regulator/stm32-vrefbuf.c @@ -284,11 +284,13 @@ static const struct dev_pm_ops stm32_vrefbuf_pm_ops = =3D { NULL) }; =20 +#ifdef CONFIG_OF static const struct of_device_id stm32_vrefbuf_of_match[] =3D { { .compatible =3D "st,stm32-vrefbuf", }, {}, }; MODULE_DEVICE_TABLE(of, stm32_vrefbuf_of_match); +#endif =20 static struct platform_driver stm32_vrefbuf_driver =3D { .probe =3D stm32_vrefbuf_probe, --=20 2.28.0