From patchwork Fri Aug 21 03:12:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727499 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8FB8F109B for ; Fri, 21 Aug 2020 03:22:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6BFFB20738 for ; Fri, 21 Aug 2020 03:22:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="jgSZs45E" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727936AbgHUDWt (ORCPT ); Thu, 20 Aug 2020 23:22:49 -0400 Received: from mail-mw2nam10on2050.outbound.protection.outlook.com ([40.107.94.50]:61505 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727075AbgHUDWr (ORCPT ); Thu, 20 Aug 2020 23:22:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J5fryBS6zXa41PRphOMR6X/0+6Ja618ChGjFUxLD6YQXWPzLEjwUnFePJHnsaHOt1B/EczbVk0mn2pTfNcHAaktdiqv9yZaCohKRntJVyF3s6R9zsY5NPMdtufBjnUo+B/ksNmaCR2mPjgR1cOIpExRI1v10EhnC36qzTO0FPptlaz2kcIM19fBzKzTu6u7tEug4Esq4h8KecV+tmdQ/gDqPNebOhljEnI57IL3bhLGq1GjYTtjvNJnldE/kIN8KiSqJsYWUpJsRdqJ0osEgW0dXoBUDloJAihMFmJ/Nk6S03rLZ8bcMMcKeVYYiRA/ExigsfzUkEaOnMkSjl6o1Dg== 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=F4TkbuXwJ+GIOsk8gxUaGl4+aHu7taJ1o09t3D6xLP8=; b=gNugHD0TYNfa5ci6/NyR4rxk3gbCcY3LQj+E+p2hDOppZwR3CO8w5X7VeY+OHICepbxvPiS/AMLcZt9t0GbJPZGnTZ4WWi0exrI2Zqdpd9LBGOSx2zD9N4qFT/EjTk3IShtq7xaHl4U5+MubH40PNNnLlr532xohKvqAnlm+hEbbM5vPhUqOKvuewt7dzPeerBiCgMPd27+rhcOjAGYo5TiTgjyhBUqWYfM/bdyLtY6ZxVuYwHfffZtlp1JIAkitYACBRtE5poj3FApbCGijPP6l43d2yrg4PsNgu2fDTHybmKxl2f74xvUztntG39XWGKcZCYZjM2cmkziBkwz2sw== 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=F4TkbuXwJ+GIOsk8gxUaGl4+aHu7taJ1o09t3D6xLP8=; b=jgSZs45EzoIp2vzp84IL9BdHGoOpWYMktNgFNIq4DFWT0I9ekQhkJEVmJxhH5qW8GpQDsOPzbdoU9fCfgNSh8nkfnIi+bvMFxpbrrPnWpnMaGDytXN25LadtFmHS1309jn50eFFJPybB/8p2i8C2R6U/e8910TMpqgtsBqUyjDw= 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:22:45 +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:22:45 +0000 Date: Fri, 21 Aug 2020 11:12:10 +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 01/15] regulator: 88pg86x: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111210.0a0bed94@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) 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:22:41 +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: 86f78c2a-0058-4906-d308-08d845817897 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: uLhYUulhkRgyNq0sWyTKGwEnj60koL4Re7aN8G0RxX+1mWxpz75YJJeZX48TCG64J1e7lJjkJw/zLU4WLWpCc8dUPPH9wdYDnrZfEPmg4puJF0i7ekgncHyxVnkVXiu2GKBMqLHyBaystEcVhJBW0xRsdg2Yv6/Xqgt0P/ib+x16Inp7drEaBa5NJyW9XV4++c0Eqru6SMcV2ngVfFOzNXxWVXOV4p78fAipgWL++xnBQqJdjcXJq6lZmzK2VyPbKP+SIZo+Y/c90le6XxiLAkZrzmPxcQZnNIvN0ckqR3PW22s+daI8T9EcCWimVJAmiV+5lX6/rNgwr5bHH6nPw1DzQzOMKTkjcxl1Y3Hg9jTNEZg7QA8vsZFgqaaX1B1K 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: d/EzE77ZHjjq05LdNIT93jtWiKc46AHtIwhPFtnNzok1AojEn0MqH9Drcf4503L35IdkodPtnXkxrQcngPFA9IsD7XyFIV4ma49/8aJEOK7/8GlToWFa14t8hdzVvcbQCyogZljbapL9sWpPqiPgI8dMkv2BFWvp67FTTEQLCEYfLySLsBnygIr0iuk7gXtxlIIKGlml/v1CQElmk5fNx6nosVHQiTAHdZ1qqBmLvbeh0eogNgKlwaU7DFm3Cxu62nhyMu6XEsf6mtz5mx93qadnkxZLs42Jp49SIe2u9GMnM3G3qR6LyrFm5p/sTkdOv2K8aHCGMCAEfjO0IuezAZCwuMBgNcn5CLU8KhGcMIRToF0cvEGeAEQ80vdogR0jSDtRcVBJbzpP5A3rZ8HYmF0pRe9vmOpD7wPIglgztBX1ws+zzatFh2hJK1ip3S6TLZ3ie1Eh3WtRKf1CK5MCT2C6BdfXxlTGAF7YLJX3wCqDAVopwGxjgHDCafNJnIUQVeldAGzJXhkSXZHEomhUI5MZfTDY4NuttsegkFRQcxgOMfmRQowoSQlMeSHsJP1RP3aYN6WVrQ79k0kyHTes0AIYw39femhaeX7mq4sIUMWxhIRpthN/g6tDYk5tsSAXKXTDPm50J33dKcqfJK6q5g== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86f78c2a-0058-4906-d308-08d845817897 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:22:45.1957 (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: khxxMgVT9Sj0aCJ4Yf8HZ8SpUJxVOQAOLVilUK2J9kmU4c3wW7QmkNEonvLrqClky54YjsixvvqXexmRn21zcA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/88pg86x.c:87:34: warning: ‘pg86x_dt_ids’ defined but not used [-Wunused-const-variable=] 87 | static const struct of_device_id pg86x_dt_ids [] = { | ^~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/88pg86x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/88pg86x.c b/drivers/regulator/88pg86x.c index 71cfa2c5de5e..e995e7379a04 100644 --- a/drivers/regulator/88pg86x.c +++ b/drivers/regulator/88pg86x.c @@ -84,7 +84,7 @@ static int pg86x_i2c_probe(struct i2c_client *i2c) return 0; } -static const struct of_device_id pg86x_dt_ids [] = { +static const struct of_device_id __maybe_unused pg86x_dt_ids[] = { { .compatible = "marvell,88pg867" }, { .compatible = "marvell,88pg868" }, { } From patchwork Fri Aug 21 03:12:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727491 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 81D7D109B for ; Fri, 21 Aug 2020 03:22:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 697502177B for ; Fri, 21 Aug 2020 03:22:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="OJ42hnMz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726844AbgHUDWR (ORCPT ); Thu, 20 Aug 2020 23:22:17 -0400 Received: from mail-dm6nam11on2086.outbound.protection.outlook.com ([40.107.223.86]:13665 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727891AbgHUDWQ (ORCPT ); Thu, 20 Aug 2020 23:22:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i9obGZlwptm47gYhr44j+h9JyMSU0i5J2pRb0n7mIer9cz+UlOEhFg0rAZV3bAR7kwG+1Z0BhDv61uP/48bJLcxMHjVLV47M85eSKJM3+XHCM7KostBCk0YDfT/jSaRRbxkfQmutjS9an6fBVd1J1/RbhA6aOwsytxFg0FGbUzcFxutKcHCh2TAJX2MguSuVui/Gt8pARRxQoP0qJllISpQeQ79JU1ev7tz6Z4SfxCNWpcOOgK95e40JkKbIfruHoNFOLwJUMHkkHOIqgRZt3HjkfHnZq4KPG6LJnYgn0gifCJQAgpLtOo7IbVHZsfl/W0gHmIkZcqk4JIGFGH5xQA== 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=XTmvjlVtgfq1yK2IitGGD8aYtPi75tv4zJFYz3/H+Ug=; b=meT+x6AJlrofhtrR9UPLVCj0IenXUmGQzX+yAcukBCaj69FxQnQf8tdQefiOcZut9dpl2Udxl2xownAe3PxrC9qMmcpRPceU7bpd6sNt+VlD/WOIHbBvxJRQt+qBsaefnBUIBzHixxsO56WmvZkHqe8L7jwVLkHF4K4FjFMNMCbQ4FenvbDCMiEINCXNtV2aKQhY/+mpU74gJXiKlhzFGFpmlV1rDC5eiNwRMQmXirod0lm3qSr5vAl3xxMrylV58V/V7ZF9RnAsXvFy1czv18CMvomql1G6m+ktnczKOufxS3R9BvdgecuZ+cvu3Ba2LxgDaatb+cz8hS7dg3Zh1A== 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=XTmvjlVtgfq1yK2IitGGD8aYtPi75tv4zJFYz3/H+Ug=; b=OJ42hnMzzdtYhMyBS8+x5iPtcJ/ikvmIaZ5P84Bw/2w1M0xVgd//eXcf4dMxXCJ3BTwS2nvjyld5NJ/+9roBlsFnOpRfNa0RM48cl2iD3S4gYGtfI4uPveLFSppD4mMvJndeci5OUSSM2INvI+C7eAYWIvDJb8fPXDUcTHlrJks= 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:22:14 +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:22:14 +0000 Date: Fri, 21 Aug 2020 11:12:35 +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 02/15] regulator: da9210: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111235.14473a88@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) 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:22:10 +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: 23f29cc4-406b-4063-b2ef-08d845816636 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: VeQqKZdW4QaoyzP1jfXdBHeYt/9MuDvoiO1ikCcGU3JDJlNBarrM4Bk4GQYxIvIUtqeCLwqWZEz8DRy15+eudHfYMCp1WT36lKw/bn9Bo5IHKT6crGozOXN83xKSS8I9a5BXrfCgEVIKWVv91UYev+0QWNig0jk6cpZEcalbrve/jIKbkWlpdlboMp1932UzYHCsClc3YgmjLgg3pn7atCNYFtNBTXE3A4EVVAMoCwBSKBkbzZHq6oL20yfXsrjE2Or+StAzSi414Bz/YkswptlvW0BUvHcBYvlMT7YDhOdHpwYtZtGTL/lRtzzoYFCTr0c6u1hj8X87zjnRY442nLIiCwVvoPMjPHyjri388l78W7tW2jfCI1T9Wkv/0+UD 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: KHCHJuOXlakqF2+bK69ydyD27i5DzpcONE6hHHVWWh4RSKuhEerhJ4LWIns02nBF8QMjeJ5fADeUhYYANrStTPAE+gOLf3MNmgofjrodoqNo0++YRPdnOUkBYwftkZtQ3f2lHNmSEd6yzKzR/QoYSeJpNS0sqgiSnDaGz14DzVweruRI3Q0+nHZhZh3+zXqiF+ITDDwQdL8hOTnMYV2MfXsDv+7uGv0k8lhTchzKWhUb21o8D6ywtoAWcEzXBhvwb+/9PuFKg9F9TeQH1bT4SEWsNbbTauiUPrhN0v99t/MMA9gB4g1aXOSx2P/t23wUKxkD3/4ahlcW5oWULwiN0yk6WC5VNdXJ1xFlk6iKPRnZ7nrELJGHnilCbN+J4/VylSIz74j+1Xi9yRFDwZmPpzvkjkKDCvPVNLvJPuNWSXbltosCXQIEBfmd86Gztm/0lJaaywoG3bGEsakoWQdavnN+VwdXkUIqJliaqFUC3X1YLMUXjxUpLeFznloRHvIswucumUqrE6AJIG8zB2s9j1E59aArprtFz3xFH701sMpdOX7LSY0BROe+7RIvroSeri+bbCUzO/w8HCk6DPJSQQx8AAST0XftovPMiNEbLyMbvTJGnMER/hf5VFxi/dCI3ui4IPLwnRgQDBxV9msq0g== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23f29cc4-406b-4063-b2ef-08d845816636 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:22:14.4271 (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: UOflTQWWlL3g18qIyxRMpvZ2MGn22M/plAzYV4RB7fGnQrtq3GSapcY/hQM9XAj7vnw3wxxhQZ7GNYn7fSwTWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/da9210-regulator.c:128:34: warning: ‘da9210_dt_ids’ defined but not used [-Wunused-const-variable=] 128 | static const struct of_device_id da9210_dt_ids[] = { | ^~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang Acked-by: Adam Thomson --- drivers/regulator/da9210-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator/da9210-regulator.c index 0cdeb6186529..2aea442b62fe 100644 --- a/drivers/regulator/da9210-regulator.c +++ b/drivers/regulator/da9210-regulator.c @@ -125,7 +125,7 @@ static irqreturn_t da9210_irq_handler(int irq, void *data) * I2C driver interface functions */ -static const struct of_device_id da9210_dt_ids[] = { +static const struct of_device_id __maybe_unused da9210_dt_ids[] = { { .compatible = "dlg,da9210", }, { } }; From patchwork Fri Aug 21 03:13:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727513 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CF7F5109B for ; Fri, 21 Aug 2020 03:23:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACC57207DE for ; Fri, 21 Aug 2020 03:23:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="nNzG8qHo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgHUDXy (ORCPT ); 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) 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/fan53555.c:439:34: warning: ‘fan53555_dt_ids’ defined but not used [-Wunused-const-variable=] 439 | static const struct of_device_id fan53555_dt_ids[] = { | ^~~~~~~~~~~~~~~ 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; } -static const struct of_device_id fan53555_dt_ids[] = { +static const struct of_device_id __maybe_unused fan53555_dt_ids[] = { { .compatible = "fcs,fan53526", .data = (void *)FAN53526_VENDOR_FAIRCHILD, From patchwork Fri Aug 21 03:14:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727493 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA4F4109B for ; Fri, 21 Aug 2020 03:22:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9BA452086A for ; Fri, 21 Aug 2020 03:22:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="h7BDphG3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727901AbgHUDW2 (ORCPT ); Thu, 20 Aug 2020 23:22:28 -0400 Received: from mail-mw2nam10on2083.outbound.protection.outlook.com ([40.107.94.83]:42081 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727888AbgHUDW0 (ORCPT ); Thu, 20 Aug 2020 23:22:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GOA4VSPKU1ktgNDwkaZQfKIX10GTQInIDanr1eGJ2nzJlZHLA/VPALTgYRC/273Gf29GlKNjty1aK3bTh0tTIlNhHj+z94Xa2ERKEnV/ObyZ108SsBXMuh9YyaKzl+tsDscrV2NLsw/czEPosl+MPzmGz266U/cRqeAThINULOQvEQy5ndjhfuLBKsHWPo3XO6T4DS6LbYGNI3phUY4iawUSd85FLuEJTmEICh6ojauoYA3MYSZiTUGw3/d5e8pAZdb68VTucUgRDgSt1qVxxnOIKzHl/dQvcqOhWPciRP/I6+E2ta8aZKK4AxorfNnryWJutlOBgzqiC0yeLBLoFQ== 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=+KFooVM9k3BXdfBcjsr9k3COPM2XXtXOyUae9hfhpww=; b=RxUlQyhN8Fvwc/yu8E4TMlUlt3LPzmIR8qYVAG+he9qTI/eee6b6vwkLOcowpqVhhAG0/tlysp4fsFBscSRCP/NjvRfLv3hmi4bO8a7RW2esDfADfdvYF73GO7brG784c44yiUKjjEUWY5xGsisULZbciKvb3b8RmtP43gZFNZooxsBGDD0/xpWojJq36DxowOEaUjZ9c0MhfjTgLvyBtkwqGw2UJir5easlhCV5pD8P+HsRiQojx/ZyNU2cqnkavpEa1eLxwrr3/j6pPrbbtxStqH30BTSnug3j9KOXv6g7XKxxh061MInf2HtSJPyPQpn98eNYK351JHRChaU3SQ== 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=+KFooVM9k3BXdfBcjsr9k3COPM2XXtXOyUae9hfhpww=; b=h7BDphG3HmHaTsAM+U2LsrIL47TMxUpoFXEVzk4cfKX3RXc6Cbv1g+9+hMrBrcZEHxCq91jtxyGE2BKPidYWALYLNb736jCWphT4edu7Ym0IzPZJUWNJCHgDQQ2dSTRqbRaOKXMXHFbo24aFDob8GKA620l8wVa03R0dAp8G0FE= 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:22:24 +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:22:24 +0000 Date: Fri, 21 Aug 2020 11:14:03 +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 04/15] regulator: fixed: Fix W=1 build warnings when CONFIG_OF=n Message-ID: <20200821111403.3e8b58a3@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) 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:22:20 +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: 17f285f0-c33c-4833-955a-08d845816c54 X-MS-TrafficTypeDiagnostic: DM6PR03MB4617: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:530; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NgbT0wyE3/QKJES+Qiw70MKAkf5Ksx/ZtCNb4kuBJGjYqtfMaPHSLsCPUAs747lsotaM89yIleT0TfZlJGYkXgRLll31Aj5CBl27v0WRwLqvb8yb16cg1vONXiNNd5qVafi7ZJDf95+77Q6ruJaFtslWJpKuJjoELxMGivn1hKHEd0l0TDs/QzYN1E+5ISk9Q72jhhjuRB/ta75e3k5doci4/V8IbTuDbyM3+bhXxFgfSqU4wq+qhjJr4WK1yC5mNp3QkhIoWjZZxX95mgeOSQZkTYweehlRXWjkUcq8JdiH74YaCtQBhXE4qOIIRloW0AAba5hj9NabakBH4ddiy6ytPgwvfKQ5DMAaw+EwwF13uVGqIQhuH2fjWbNo5qpk 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)(26005)(110136005)(2906002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: AU5iz4Xi3lCSfGJR/zbir2YV7p8OyXCgy86bUeEvsBLM1KRedcllnH0xO01tdp1nRedztZO9mdIb7Iuii5i2G61t+ZULOIgBMrhyGos2Sb9dJnE4jVECoX6C1Z6Ujt1HTm66Lj5xV7CMMD9UJkfb1igDo4rFgyyps+N5KvhE9+0fpSyaj8jWW9FAkTFH2jnaWACTs5Hp0RzS908+yg5S2ekaHSnwamx/AyYOsL1rdQhldiXDPwLLN7DFc0lySI29rjV1dWapj8ct5DAPq3SkPQFP38ghjOk/KeQXHwu9rWoVelIKJ3zrpfTJHG66rnwlfjEDuFKKjCkN/AJqTpHYEMwFtglj75bbBc9InRuyqeEktN7Rb/m1PywGZX6XJXU96fmTsJxkYEgr2kyxxSIcfuNsfWW3Xa5KIjeTJcZRSio6ivYsfgwu/nUAvbP6W95UrFgh9qaS+5m8VPjMtQZghUp7zhssFqt+33EtAkdbJGe+WzxAxDsaJ0uLDWXHZN4SCV5HFoUWp/VCTiVOcRq3QIrimBnRKUYJdDTvEhLG8Q2wYA7z8NxG2u2YuGScr4Sn8QOgSmMcj/s7DGdtqsbwwznjE5eS5mex0lTIN/HYwRqqdj1tibHeS7AL6aWNwXd5jAs9r3x6O4IA7eP3Yfos2w== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17f285f0-c33c-4833-955a-08d845816c54 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:22:24.8562 (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: LhYPbqWDQf/J9BXAJRZUpzEL+9rw7XlUyEDvGeH+9v1lN4FuHv6IztGPon3MyhCABntKqjYZMzkf1yqmKlRDDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warnings when CONFIG_OF=n: drivers/regulator/fixed.c:48:36: warning: ‘fixed_clkenable_data’ defined but not used [-Wunused-const-variable=] 48 | static const struct fixed_dev_type fixed_clkenable_data = { | ^~~~~~~~~~~~~~~~~~~~ drivers/regulator/fixed.c:44:36: warning: ‘fixed_voltage_data’ defined but not used [-Wunused-const-variable=] 44 | static const struct fixed_dev_type fixed_voltage_data = { | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/fixed.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 142a70a89153..5a03fd86ad0a 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -41,14 +41,6 @@ struct fixed_dev_type { bool has_enable_clock; }; -static const struct fixed_dev_type fixed_voltage_data = { - .has_enable_clock = false, -}; - -static const struct fixed_dev_type fixed_clkenable_data = { - .has_enable_clock = true, -}; - static int reg_clock_enable(struct regulator_dev *rdev) { struct fixed_voltage_data *priv = rdev_get_drvdata(rdev); @@ -260,6 +252,14 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev) } #if defined(CONFIG_OF) +static const struct fixed_dev_type fixed_voltage_data = { + .has_enable_clock = false, +}; + +static const struct fixed_dev_type fixed_clkenable_data = { + .has_enable_clock = true, +}; + static const struct of_device_id fixed_of_match[] = { { .compatible = "regulator-fixed", From patchwork Fri Aug 21 03:14:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727483 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5708B109B for ; Fri, 21 Aug 2020 03:21:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3943A2086A for ; Fri, 21 Aug 2020 03:21:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="i9tjzEzA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbgHUDVk (ORCPT ); Thu, 20 Aug 2020 23:21:40 -0400 Received: from mail-mw2nam10on2071.outbound.protection.outlook.com ([40.107.94.71]:18209 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726844AbgHUDVj (ORCPT ); Thu, 20 Aug 2020 23:21:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oX8HxtDksP6FSrt9g6eeWqvRkA1y6UxPnDlA00BmWxCpzVOECU4mpFWlGElTQsmo2YiruiUAHwGIj0s8lYhQM+2w24CjH8ywI8KPLL1kbXSizbt/wu+MPqXc0H9oKPtNK8cvTzQNIK+MIl0wl/lt/z7FN1Lz6uxkXfKBflhM57STrd8E/YKHgVj8n5vnGv21vR0ORmF/I4tKbOURRGQaBlj3mfM33BTYkn1ob71NYs8BPwBFNYPKkhlOXmXBvAeZhUotXILYKtKAv+6EDcmHWOO/7+HmexpC44QidbVCu30ZTDR5brvssPeO/agrjwn/JkpafZNlHS6tWrVeBXkK9Q== 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=dpvEYFtVwBBiu6bSpBBjt2MxfhexRDUy3HobQjYfXHE=; b=Z8oRX+bW83zjcxSgzI74efOdqNG0OEhyeWO/YQ6Hq7VDYynHJIBDJrZE9KjCOniZvU0PGvPDcDRmCa6FzJqjXeDY4Il7Yqj3xwcu71Yh6FXQrUVqiV02lHAuOmCxw9taM21cn5qryReTtilIhJCsp/1IO8uyLTFygkwrUNZ3mCRPjxPI03BfzxngUCg+qRPY8t6tx6hOLHjqeTO4WDTj+o91PrOw7D6knbwYFkaCR3dXOY/IhA7Ps6MBLtjgZcHTMS8bpjT602PzcILy2QuP/w1ixT0+qfuUTjlRhIZWw5wMTO6uLuVXv2bSeV9it8Ho4FVXhbhV0oDNo5+Vu5RFRA== 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=dpvEYFtVwBBiu6bSpBBjt2MxfhexRDUy3HobQjYfXHE=; b=i9tjzEzAjm5o1cHLpWxbebuwHbtGCwexYiZ3sw04wMOQMVOPHRSlVeD1ac09eoLGTthVtEFCnq1773RhViVuIArd/tHRTzC/4StLAAHAW+MuHQZi1xycmakU/niBwuGlPRG/AC0BlA170BDF6H7v3GBDDnbw6GolNf43hri1TpE= 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:21:37 +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:21:37 +0000 Date: Fri, 21 Aug 2020 11:14:49 +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 05/15] regulator: ltc3589: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111449.7cf580f2@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) 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:21:33 +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: 4f36b334-ea89-445b-553d-08d845815028 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: 3pZv7C7gEbTzYBDAAW1aqGiVWuqBnOqTW2UyBqfpExkHWwXGcPkD2bG9j1V524tYsoD1jz7joQs41crFYaXN18umnzh4T5JUJS1FuvXhTcTSrtYerMfQlmo6DkMGGnAzf5/JUXBe5GWWtG5hTouvqomg9FR8ffR6Ul+PoqNsRogwG6/3PWVmQ+7xKlQx+h73JAtX3NkDroRl+It3vWl6sR8Z6xY29hs9idgIFWeJ0nJdnWItzyzgJiPrCUug+az48+iDv3ak/MeCV1XwVh8qSCw9Par6rsu5WxpFLozwxaAmsjtXIyyl+SoqrXPrFkCMqlqe9JfPAhgQrTlPAFfOWKdNlY7/HK+GsLHQVnG33XrrOhendko0momQmaV7LxwR 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: nLfNFiBsNdTAL6TVxLWekW6elfzVstuIVt8vlebCbvJK9JS16EmfVGA4SbWDCOWUGdNIJ9VgMZl6gBcmistCQUEok57h7mFrhhC1sV9LBuqf61vTq/5IR7kzxrkgIkhx6VaKSdq7qnHw6YdwjYtA6DNjHcnzW8zt8Me0aMdeYlf8tQY/wKWpQ5aLqvD5xbVKwhHVlDAbZ6jj+FKpg2dkKEmx3k26z++ijwJQM6bIvyqyNVB9sDspaYOow61PJ4vT/baEa+b7mMZkh2m8DoPUmyef6p0f09MTluMxOkHkIZu59cYUQwMeXDIMhwQ5zuq1ALpQgHNm5OTLKvQvTMmVd1YJI1fhNQ4FA9qmexdvd+l8vB46BuxxCwqK/QuSuvc+cGch5FuJhW90+4E0Slywm3in4hyb+Um9/Fy1vsbUX5C+uQRUU9xTRfSD4h+gymzImCNIcy/YE0cy/S4bMtMRpEQwkB99Guhhy5hXRXwoYyRqf4GmLgIJxx9RsLDHKyBxmym0XC+pFZU+GCid5vmf5MIQv/121cTEwFTykanUJAMV3r7s6tHauZcj0jN0nVf3kZ483KZm2SCsOdBI6lCOkUN/1u/4ZVQfI55r0E34oupymD56iUV3aLb/xy6LXZ8PKOb1mmFyU/KNeRJcJLdNgQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4f36b334-ea89-445b-553d-08d845815028 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:21:37.3761 (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: pP3PWr9vVfDjgcbVoPpmLGtVwzMWSmGB3vrSpXX8SguIvWCw+n5GAo3XydabYpe0M08ZVHildOlzBAd5fY3chw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/ltc3589.c:460:34: warning: ‘ltc3589_of_match’ defined but not used [-Wunused-const-variable=] 460 | static const struct of_device_id ltc3589_of_match[] = { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/ltc3589.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c index 9a037fdc5fc5..fa563aacf742 100644 --- a/drivers/regulator/ltc3589.c +++ b/drivers/regulator/ltc3589.c @@ -457,7 +457,7 @@ static const struct i2c_device_id ltc3589_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, ltc3589_i2c_id); -static const struct of_device_id ltc3589_of_match[] = { +static const struct of_device_id __maybe_unused ltc3589_of_match[] = { { .compatible = "lltc,ltc3589", .data = (void *)LTC3589, From patchwork Fri Aug 21 03:15:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727523 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9DFC3138C for ; Fri, 21 Aug 2020 03:24:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8211D20738 for ; Fri, 21 Aug 2020 03:24:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="GCO7bnB0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727839AbgHUDY2 (ORCPT ); Thu, 20 Aug 2020 23:24:28 -0400 Received: from mail-eopbgr680062.outbound.protection.outlook.com ([40.107.68.62]:48956 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727040AbgHUDY0 (ORCPT ); Thu, 20 Aug 2020 23:24:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jfeBoEFgQ4B8LIRh+ieSJNRT+kbm6wxu4oJyish8Bd+4PiFFMp+bBT5ruyQgHy2SqQH2UdGsGUN4wBgvywiK/QRYLwLTb+vaOvkW4tlmdXJn1F/0UobNEjRpFFvrtIgFgvRTdllIgyeHgKliG9UFIMpX6CibtUQPosKD+jZNEfDYi/TSy19+qQhGXBUEBCqjr54kN03YghlHDruatuYMFprJaHCXV0bJ9WEMufZUKQkmeABR62GycvlYjK9BMpXvvia9+LGTeTXd8YC4hQWsYs+ZKVEOCUp7EUEe0nwREpho3Z5jmgbsgPMaHS6OcFF9IiN/x9O1S/nB1WSZ0z24Zg== 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=kkw4dB9IiV+rPmNqEqYqojyEqT98ovuqVPXfXu2DO4s=; b=jxaUY7XaEmYAHoMX/jiRLUFPfhDV3nwripKhSIL0AfZrhCqkPOEqdQ7zHg045Wvw9d/D54FrJNwGLoWt+3B0q2bUvV+SXFirulQO2wua+Jku8ewiVnnov3dINGozY6Pp0KuzkfXHAx6oqirLGv8ThMDUWzCgvU1LBIGOPHjGT1632gsyMEkq5Z68avYnLfSIFtbNJtAHCHiHlW0hMiRm++1ZQUEv4Yl+No9jx7oXwqILlSVnakqQelHw9wCXAMOTtL4o/mu+ZAj9QN2pu31ZHBvIqwTGSz7wvSdJ+y+ZKs3hYdN/cD9d8jSUMbv1RvPzLxG4addCww1IX1v70vlMUQ== 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=kkw4dB9IiV+rPmNqEqYqojyEqT98ovuqVPXfXu2DO4s=; b=GCO7bnB0esyx8QDS/IY5BZU5Au2IbzTJOAEIVWDYzPa5sbW2Dpi/Lo+nunok8DiwZbDIFskAmX7mKmDkWgP/PlgIKLdIQCKuXMKk8feJCIeD6OTaZnnYSBLiry4ff6r1Qcz+tkjGMrdbZJAXktmfelfpYRwzl1XTIGATcamZlpQ= 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:24:24 +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:24:24 +0000 Date: Fri, 21 Aug 2020 11:15:17 +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 06/15] regulator: ltc3676: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111517.59d7b8c8@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) 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:24:20 +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: 865f662f-d9a0-4557-3f59-08d84581b3a0 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: ressFtiWj4+8J6YJ1onjoOuFbnZFpXN73jSNrzSaTXNLL8GhpF3tZC/SPzpAG/SIrlOhuLUT0/rdudBf2AL1XYShTkY14AXCPjr2wgs6sufa4ekmcHswxdXPYKfCCHIXgYOe/4lWA1B8uT4paVzeQuFbD5VoMQjjkpiEH1ij8hIM4hlP25g6GP9bf0BaBo+sPHq7AzzQxxMxnbE85xLCXU8/gGsTGVEJ67LE0iKWF8t9dmH2mt8RtnQkrRHsghCZDJVh0RxN79saTKhZR7srEduiPmm2R9s19AxHI9o/3IfpkIKsEaHxEo3KqKmBLHnZfHskjDZGBG9cNF4OP8LgeDK4zMj3SZnJ4auaxKvY4UeKzi++VkIN+hMntM0cagLh 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: RbWCFTrpf7KIR5gwaagEaoyIGxrVWbiLE4l9HL27NSqBGHHVprFRohREHVf/Do2xYm3DUkSRCprG6qDJb+t1sXwyxcpVAFtA9dcNhiI9zegdtrcB/9bZKLWHsij4GbntUt/ewr9InBBiyyFG8Qr2wRXfzB5I0ClFFMrHkwCAOlG6pIY4Stgju50fBa5svNfHKqwLg3iPf4liRqkgZZdKOmGMef0ukGSUacVGZ+gJ+XqE5sRGyXIA9YiHJn3DGEZa/CY10JkZLDB23RVpgu+lJHH8BDcy45q7Zg/Pe5Wesx9DT/iqo0n8JEUv9Nd5yIY3I7V6AO6XPFQ7SOujoLrCb+pQ3Ps6Qc0fpDwXCLrlQrvXnJ+EZMrrrF4PULKkMpXPGBC+LHXFs1i1aWOF6iKSeJ/H/FGybsK9LpfMcOpZu7FkIy1JC8tX0ghk9QX3oyvq/uaUlUGe6c/iy4O89ZwbbKThYi67v6HxiQo1tzit4jeLEcAGINWGiGdh5v0Ao4DBS2abqettNRtVB5JrCyzV17W4JuAosqguHZzjeJH/wWHJb4G08v73oR045O65bLHNOCddPGn6v5fH9o8dMD7Tyoeib6xq7tNGjp2HluovJbq/6jOG/K4u58hEXA2ZU+LPzyrxBb7fkuanA9EqThrmUQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 865f662f-d9a0-4557-3f59-08d84581b3a0 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:24:24.4273 (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: F1bhCaIHi4iGQBEnHnjAB0XfzYVUtSxHXAnYLeNpmfarj4JmvBtTRkRgmLJgqhUNudDN1unkhUO+19pTaPM/rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB5308 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/ltc3676.c:371:34: warning: ‘ltc3676_of_match’ defined but not used [-Wunused-const-variable=] 371 | static const struct of_device_id ltc3676_of_match[] = { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/ltc3676.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/ltc3676.c b/drivers/regulator/ltc3676.c index 093b3e4a6303..557727b54f0e 100644 --- a/drivers/regulator/ltc3676.c +++ b/drivers/regulator/ltc3676.c @@ -368,7 +368,7 @@ static const struct i2c_device_id ltc3676_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, ltc3676_i2c_id); -static const struct of_device_id ltc3676_of_match[] = { +static const struct of_device_id __maybe_unused ltc3676_of_match[] = { { .compatible = "lltc,ltc3676" }, { }, }; From patchwork Fri Aug 21 03:16:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727487 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CBAC1109B for ; Fri, 21 Aug 2020 03:22:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B423520738 for ; Fri, 21 Aug 2020 03:22:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="XSbDyjdB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727849AbgHUDWF (ORCPT ); Thu, 20 Aug 2020 23:22:05 -0400 Received: from mail-mw2nam10on2045.outbound.protection.outlook.com ([40.107.94.45]:29056 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726844AbgHUDWD (ORCPT ); Thu, 20 Aug 2020 23:22:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bDmjPjDmJURMmJSgwWpDmgoQE27vhONFd376kufMeYIl1P/cdfTuudsVyTd1b4c01UAk7YnmnDnPuThzpMXfkOED9Ju6lYGelv13E3Md7VUWTqDYtHQBf/CgD1RSQreoSv2XccdtjAO+YCufOf692Tcs2rGFSKfI1LqvJfhppmHKolUR1BJWhe0Eayj9jSBLmKogHAS62uJj1TwvGs8ycTu90mPvCB1BGr63gSSIitqA+8xxjUM0ZUwXwVnJ6y+YdSZW/VAcimAFt5kAH8AGno9M3oOOH24iiN8CMbxwzS1pyJnvMZPTsHrWz+hAIkv16af/8xZVVBGAJeVxEwrO6g== 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=+mDWivb176KZlW+P9hfOAZZSmv1v9G4MGktWYC18cH4=; b=fG7uMaV2ocHwKp0yzsGDTqeiWOJpZZRcoPxiDY7XIfB3PlUvyk4/UNHod1O9oIvvuiGDZoKKLBBd5imukN5B351p6s+68l5TRQi4vNJSUZR/4h9K4CaqDAJnIKCN5PP1gq9dzB/ViYB5/Qy6Dor2l56j2kWR2M0A0MarnKneSp/4wrCaS5DBecANv1Ns1KJkXqWBNH0k88jyo4sE4GK8ue+6kFNVQD4JbPwB7aftkm0EOdwJHYrckcWDIyZgDIIqAB+oHk2rBEw6KLfQc49y0RUWM4mAOVtgJCTm5q4WAUdxIcte8VG84uuBmkxmKYjesGOLRqobo+NxU7TijodprQ== 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=+mDWivb176KZlW+P9hfOAZZSmv1v9G4MGktWYC18cH4=; b=XSbDyjdB7z1finpGKZqjtc+Rfzt60uKncRr50Nnxx3y5vN9zTFFRXIavBvZYdudmJIE5N6wDtBYj4nlglrHctWDWFqqZPLnsOahDybeFLOk0BEuECFwJrFHECuzI19GyR1a3brRW7oIgyc2x4q5Lzqp4Mw7J7iSf5p4ToKH5Z0M= 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:22:00 +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:22:00 +0000 Date: Fri, 21 Aug 2020 11:16:01 +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 07/15] regulator: max1586: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111601.26243417@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) 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:21:56 +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: b05a5f7f-c64a-4e52-01c0-08d845815e09 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: 99NfYGKVtwnvW1pXHoxAhcMAZszplIQK9ynaOsD7WodjWAGwaviTXgtkJCGyD31oTFaxiqqOY5lYZHSN/KkeAk3kIKhOO3YUoFihYVUbd+xn7FFno09DqRXDJZJfr22G8bT2yeOupYKXia+/aSFYZ1NFRhkxMUSqAzK9uPHBhL2jYU5MxycdMIjYMa6iAUWfFmanynIxewQl+iTD1XO3svzFTZrYY6vNCbNmMamOFAGSEkuM+mE2OCkFeHWBVr9fQnLAdYKSnJIrosAMvyYgFp2XGV9Ba4whUlU304NXR7CyZo1KQKl7QPC9Cm60ohOF+g3Wly23pV4CxB428Yln0V03bZnV0E/mCqcTQ/q/aWOKuOl32sXjnAaHWYHTY0yn 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: Us91wlj3sfidAoiROJnIB8YQnbEpvdVISP+OPU0myoRqAZA3C2RIqlVgDWa20dSlMeSIRNvLKB/u3lRBjx5gqevJEIXsmMwmAsrDP6HY/eXlylIUV2HZaIF0Su+wtYn4fN/vt10N+nmQrwhYbAnln6RJSBsiCh+CgiDf8scDuxfr0/awdKwuZ9rgSXtIULs8eKrAZpr6hIEWIzXFNHBpZ+MhrrkmR1k9TakUMWHFUWIcbN3tq+7cjSBJFpPFiQbFgohLTeBdDeXnTIr5GrckY3vYHm/wOuQCFj49QOsX2tHtO7eKgE5litlgEnvy2U1ECEbqydvwyBOEj5uF5tCBUCMOoPxHPfAdgsESR6lVw7JzsWCPWiip9tTgTp20EuYYbA68znBpl7dBslZG+oHvRxRx8STNibPpqf3MeXS1gttYPnG3t+5ygw2BRyFTEZtsgprjZRrzWEqpNy2lL8ViuQ+OaRGUpsBZHw06Uwc2N8FpFpHpYd3XEJNy6WJG0A8yY8zJmki5QnbA3uk8grSi0MrBGj5cto1vEBNWtbFfyGR7uNpAVkWvCxsyamxn3D8DdueZnT0aUbMoouTX0jyYMOdjfngkKYTUKfSGSe3aCgGrDidmg864eIoYpUOfwVPyIYSyZQzqopmPqD9WNSfCmg== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: b05a5f7f-c64a-4e52-01c0-08d845815e09 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:22:00.6419 (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: BeHl/eT55Ue4TZPVMCMR/5BzdZIKjaEgm99McnhHwr3xR9HYqxAaxDWgjed0g3hCm9GtpLHvE4xgJNpZRca1Yg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/max1586.c:204:34: warning: ‘max1586_of_match’ defined but not used [-Wunused-const-variable=] 204 | static const struct of_device_id max1586_of_match[] = { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/max1586.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c index f8941025780b..d4958394e608 100644 --- a/drivers/regulator/max1586.c +++ b/drivers/regulator/max1586.c @@ -201,7 +201,7 @@ static int of_get_max1586_platform_data(struct device *dev, return 0; } -static const struct of_device_id max1586_of_match[] = { +static const struct of_device_id __maybe_unused max1586_of_match[] = { { .compatible = "maxim,max1586", }, {}, }; From patchwork Fri Aug 21 03:16:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727477 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BA24138C for ; Fri, 21 Aug 2020 03:20:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2AD8B20738 for ; Fri, 21 Aug 2020 03:20:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="fy8OA3hb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbgHUDU5 (ORCPT ); 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) 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/max77826-regulator.c:277:34: warning: ‘max77826_of_match’ defined but not used [-Wunused-const-variable=] 277 | static const struct of_device_id max77826_of_match[] = { | ^~~~~~~~~~~~~~~~~ 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/max77826-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); } -static const struct of_device_id max77826_of_match[] = { +static const struct of_device_id __maybe_unused max77826_of_match[] = { { .compatible = "maxim,max77826" }, { /* sentinel */ } }; From patchwork Fri Aug 21 03:16:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727497 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF789138C for ; Fri, 21 Aug 2020 03:22:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C13C520738 for ; Fri, 21 Aug 2020 03:22:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="CmgjocVF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727087AbgHUDWm (ORCPT ); Thu, 20 Aug 2020 23:22:42 -0400 Received: from mail-mw2nam10on2080.outbound.protection.outlook.com ([40.107.94.80]:61236 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727888AbgHUDWk (ORCPT ); Thu, 20 Aug 2020 23:22:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TU/v4+ejdy2hDH23Cj2W7XQRaDwfR267aoJit8Xa/LrPiUNfZ6nKzwMwFpVrHN3Eelb9Z5ZpjhLnI2wMDpDC+RB7LQ5EgLUU3P2h4JkUFsXVAYLMyaLKuaDuTM5HP0Ot3asl3gVxWiuoLmYv4SlQ/dk91EPVISJ5TEYI0JT+9bwtmz4dCZHgXfrxoo64PE5cWtZb91sDjGiYZ0xw7PD2fSojRvv042NK9q80DJv1C+FmzbjnD36AVy3CTGgd6jI2Aj2+/qMxqHahyLAu7CDSkk1rOyj+9p6jZ2Ox2nVZ0uXyS+XX49OsdegJwsugAivN5J43Lkpf66iuy/4hHplLiw== 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=HzyTzVhiEHMv4my2kE2lC6bPRtsbB0+inniXkUx51ck=; b=czMEbeG7wgvVRt/o5tvvGwHH7bP9U91rEUa1xbOf+qo61+Tli6q15Kp3fD6c3koDmz/sDsLZFoNQDQ/GvyM8vinsIPG4ihVleUqClJfswQMmiEiZLxQhq28X3SLNAUGCLtqFm3GNd2t4DQslK9GZekT1WcE3sQ/S/exE1Gb83FQ4GTIdL7ora7MxoUaJM6u4LZIPWKNATJ2Vy014zJu6q7jsIkeDAI+S4cBdUduzWupp90230BqSUD+CDdiGOWDq7urUQyolsEYed+r0VELmq9YlS9GpbwXjO1dP1ilkdzVkEZbMKE8lilo/w8iS2cX7ScZAeahSkhoHn1YhCKam3A== 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=HzyTzVhiEHMv4my2kE2lC6bPRtsbB0+inniXkUx51ck=; b=CmgjocVF6OFRcCwDNC7xRb7BEZXu4j76udrgpBfksOA6BYuJQE9WEReswW4Zyr8wx6kySCyQ49OPiRGa6vZU05rhYhgPcglD6qHC0vjzKIort7c+YP0W/A+cxSxcEpfG7Wm6STghahkukaLmXNgNoVawPdmNEblCAwZ9FBdPOBY= 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:22:38 +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:22:38 +0000 Date: Fri, 21 Aug 2020 11:16:57 +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 09/15] regulator: pwm: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111658.59a7218b@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) 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:22:34 +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: f9ca4c6f-8114-4774-114c-08d845817491 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: C0FYzlZTmPc0ronJbIiquUiT0w2X73x4J9NRQiK70kTis6JjsF6I5ntwzKr5Mqb+ahEmvkMBnE2KIFjoZaDNB56EElbjv/GuYSaQfVxmsDIgwM3ip06roy/qze/wgbYqmINe2RMenEWpXZPgp4ENv2QVGu2Jpx31iJNRpWEMcBFsK0rs4Q2EDf4afXGYK/2c8JwxqiJtGlczeZmOZ0v8xE8fIkDMYThs1T8UTj2QFWZ44eg40fPsv3PEcBd/Jv1QtYLW0OYsBR/DLAf6M6oHmWzGNsNPE9tGmde+qOFMNhQseFEy7n3s15Z/ESY/C1hxUdIloeLPBnJSb6tmUk9WjHsaAC3AB7Udbn8cK/ijLBXgQZf28Cso/BTjCTRIEDJD 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: ijMc5iUsNL34IOBeoME1zJBjxXOMPDZh7CK1Z/35sjRGGp5eKhWooHc7Ty4F+1finr1WofVWeA55KduvguPT3uWBCb98WLMCH71HgsN+z37YJ59LgnTZHTK/YVW7iFFcB0uoEkRLrg2NP94PDzKbYlw6sfkAwr9Fhi/eW/YVa4Jo6mxWVHZ48k+uOr8I+ECjb4Gx7Dkq8puIp8kNTQ5pfapuOWe2UbNtvb8gNVNIeaM2r5/ZH1UctHZTad2SxIxOi7fm09koHh+DkEs9qIRrHM6bFCQvPjZvWES/sJWcud63XSgY1UI1WaTsw9K3KyRnuKERzvRle2pEXIDnoAsbgFbW37OGVucr5C5nkxY9XNaQ2qHAwwCG9MgB/G/MMdIsXSpL/bk8QN6CLoT6pQIgrZH1OXUQGUKKgfx/W4Vx4gkEjn7mVHmzmglA8ho+DT93VjJXzhFCUHeiJ2jMs+l27XfMubWE7LVTGltM1d4FJT3kwyVeumkyq5FQdfi3nKIBh34F3rG0Kdx6cWhQulxsTYgy2EtOzBqzqpgN/wqQUVA9sZWsGYqvTaqpwM8tewtDSRI81e5yA/O7fJa+CHNIA7Gjn/qToBNmkw9wGICL3X+QirS83ccoBJ24RRmKmvcw6Q+NqSKKl3AvEtIEwxCusQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9ca4c6f-8114-4774-114c-08d845817491 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:22:38.4405 (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: iLmvTGegR4EP6Ow7U0zawR+HYRcH1PAJjaOSKrqjI+92p2ewJ/v8WIM98WHqrqXapFFVg0XsgvtvIfZtGKy1IA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/pwm-regulator.c:393:34: warning: ‘pwm_of_match’ defined but not used [-Wunused-const-variable=] 393 | static const struct of_device_id pwm_of_match[] = { | ^~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/pwm-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index 3234b118b53e..d250e60f1625 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c @@ -390,7 +390,7 @@ static int pwm_regulator_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id pwm_of_match[] = { +static const struct of_device_id __maybe_unused pwm_of_match[] = { { .compatible = "pwm-regulator" }, { }, }; From patchwork Fri Aug 21 03:17:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727489 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8A636109B for ; Fri, 21 Aug 2020 03:22:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 731AA20738 for ; Fri, 21 Aug 2020 03:22:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="ml/mwTSj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727808AbgHUDWM (ORCPT ); Thu, 20 Aug 2020 23:22:12 -0400 Received: from mail-dm6nam11on2075.outbound.protection.outlook.com ([40.107.223.75]:2848 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726844AbgHUDWJ (ORCPT ); Thu, 20 Aug 2020 23:22:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mFNmUUCFD466sfrrr6V/0vgv2uoOl2xRoVYRYn6PXaj21ZkVeixmFCYCISTHTaPaUBLiz6ZgWYVATo9pZVCHiFRzEJtLYIATPL6NU58aP3IyinELZ0xAVm+ca/HWkfDllUPqE7Y5w1RMmE2/u/ThCv02m7mPKtyb4qsqKDgjZ3f0aTUnPv61TXFivmhG8JdOlEfmk0j98DQtqPfOC3GAWHcRqT3+jGZFSZGVg/CTI/fuO/Lt23+pXfbB9Evg50P4HFknQFxVMkUddOWA0blypyc8HfTKxqCYnL5NjSf/91mjpUdOwdgszi5MASLZMuCN7/JmPbYGNq+RnBZA2HaCmA== 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=aYQhASLP/p0283xryrOrj49o7Zm5uRC7pxlXYFOngZc=; b=fsQheppNT4y0qrV5KtTL9jUxxmYW1KDGonav/+5ioZ7rckk6Apma5nEjRp/ttd2dNF97rjKezeajRVfxVOD/uSq3pd4NpXQo1jug3rUZFY6OEl5bLmvV0PHDS3FsWE3WSliZ30X6uwdXQFu6PZog8vLF/J6HPBs5+tycagExSVJaEog4mwFP1VuPQOi1svWUsgL0mnvnmAYrufCkibNfyUpFJnYXZpf+YYDPqKATOrq4/EQkI1Kes5RM2kyF/QDi+1RAZtxYRCBoTqwhAOvDYRRQ8sBfjVJpORLdf6UfCljKtF8BrikJW6WKdtwyS7IPzS4HOICa3caLRzzTmwcluA== 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=aYQhASLP/p0283xryrOrj49o7Zm5uRC7pxlXYFOngZc=; b=ml/mwTSjNrXWPdJKv8KsH/7bmQtdKpAM+hzEdoSRLG0+rDkHDNeyK+jTo+e19LioB01nATZCv+h2ZynFII6GIGcJRvLNL8iiCu5g8vhMFZOvJXaFIDhErfUEvHwQt37LR4CPAyoYpCUUFFSeWyGLe8SkgZXIK3lb2TVwJ3hjETI= 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:22:07 +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:22:07 +0000 Date: Fri, 21 Aug 2020 11:17:26 +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 10/15] regulator: stm32-pwr: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111726.38e0e746@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) 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:22:03 +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: a2be7e95-b984-42f6-d05f-08d845816212 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: u6Uxyq1M2GNKHSe0vlFcWv6saS+NU1zBNb0to+S9HkMXKDVekfK4s0MQUAtbVxBZlVP6FEFOml3apaD1NGBSXkfFrWSr78wKIZjKzM5COALe5mFliaFoO+3Jk9Z1yC6WtrnanZeyyeyqKoBZnfrv8kpvcHHoRmpuWTgr52NU6bCUVpyYBd4j+4CsaosAU6Ss3S4b8ObSMqZP7363ZOJ+ZLd7Y5qyTvNuy63JvgrPbfPHUXvyykt6I0N7SQNnJNITqrXfE9deZCypEmWIK2l9c8B+N1bWu8kUEAtUEi/rx1U3qcdSDYAaCjL9WRK7pdh83YunDxmm2EwtKQ/YmQctBS7C1YMWjySTlxuNCZfabsLshF2/9Hwf16OHJA3mQgwc 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: HPOzi/hIufdAq936r8xAC+9e+Jvphb2OYM4uZYaah+/NN5fTTzrq9DS0yyfLFwsE4N7t75R7Q1n89L83pRAWuHyxYsol2Z3gADk4VKWslqhGKSY2ZsB8jYztu529RM7p4NUgNtolc7kpuvEWCsGPPcDhB+wyTLlExfmIGlLqGR3JoiP1EWtzkPaaoIEqqhbMzna1296cd7AWjKgitQ1Tw/G8LvvhxbZfzxS3g8PQsmH1qCiO/9kTYon4qGdfO22eXe1rr4QPeFbpPm0ixP/EIe+tbKJIqo5C2vdeTudHgXbVNpx2uqS+fLmbZ/MZ8K2IIwee0CC4aYzAoWO+8crTBSgqX5m2chGKOVFkQ03LCF80WkNeGGct04Y8lZbCsoMA/io6AX26uWTfZIgYGnbIl9xsRDgkOiP2CjcZt2LIGAK6xztQktNI0FkYiRathS5yVeTRUBkj4vC6Mw62PMATA0zGiLR+NYvFSsLthknBsOS4nsn8UJ3XXyJuvPRleiCASTkVJTJa5GIoNSWcOvzuDAWnPhibhYveVyopzYbBxGzTSGn8iGo+2/tUximyhFlQa06lYJCwaxR6iOPOrEk7Qix88H60aC5d1TAbrl6NP5PCTEiGLYfsOALhY54ZdO+tjwGjbA44qkHyQJ3cD3Y+Sg== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2be7e95-b984-42f6-d05f-08d845816212 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:22:07.4271 (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: /GFbyB2QNiLA9458Wja1xTVxz2qgOq099luO9UUeQ0a8PEgAzwp8fLbZszr9m3+6zrlyfXGE6C4f9P3swVaWsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/stm32-pwr.c:169:34: warning: ‘stm32_pwr_of_match’ defined but not used [-Wunused-const-variable=] 169 | static const struct of_device_id stm32_pwr_of_match[] = { | ^~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/stm32-pwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index e0e627b0106e..2a42acb7c24e 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -166,7 +166,7 @@ static int stm32_pwr_regulator_probe(struct platform_device *pdev) return ret; } -static const struct of_device_id stm32_pwr_of_match[] = { +static const struct of_device_id __maybe_unused stm32_pwr_of_match[] = { { .compatible = "st,stm32mp1,pwr-reg", }, {}, }; From patchwork Fri Aug 21 03:17:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727481 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A4BFA138C for ; Fri, 21 Aug 2020 03:21:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 87F8620738 for ; Fri, 21 Aug 2020 03:21:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="HMkYOpVh" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727782AbgHUDVd (ORCPT ); Thu, 20 Aug 2020 23:21:33 -0400 Received: from mail-mw2nam10on2070.outbound.protection.outlook.com ([40.107.94.70]:22272 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726844AbgHUDVb (ORCPT ); Thu, 20 Aug 2020 23:21:31 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i2+XmJNffEED3IY6m+acraKW2+9OEodBrdkQVqIYReguhOVeCW3+kOnZNWeqnOwUckMR3z9BqNMokAzEGISk6wqayM1R7H4gDBdVaqlfE1GqgaKvEPGN1FseZ9HyLeQyz/sVWmojVLakTNQ74Yjby7kQ9a2m9xvtL1OjZtExUgmpegS7l3nzysQoan5T8Qlzy58Vw7AJECvM+JM1MUMAyG6XSpDbmsdOigbt5C9jFuR/2cF/0AeVZsIJGfoWDNOxKYDxLDScptJuUKHkiH+mmDsa46HPYMnzOKZZ8kX4bnlITwkxxfFpj1Y2pt8PqS6cue4Xl6ExEuoHlOt0u9nJcQ== 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=VfV4mxwKqyeAKVXUe2OK/ZKUOFBIRp7DuSMjz6hb7Cw=; b=Sf2YohprQsjmRr/1pIrqY1mu5eCNmkd8jfPutV8+8sdrZAdn21QlWybSVDJ06Bp0rbrQH2s1cUVjZ2sHsbmlfVB6g0TuQlF4sT2iW3NFnAoI62wWDnOLT3w9EEw3DTPmzqcMjrFrF6kCw2gcOeGZI1GrMj4NcxnIRFwiO8bOtpC/XWyTBEUfQ/ke0fKU987qvgCBdjwVGWmVLL19ZHEYCRIOA4TwFh4/FlANjDsepDpgvZ/RiShcdLIsMPBECABc5LbFAO8TtnTwyY5dKs/q+boaSp0NRtXe1yGcL+kNMq4Gte19xE2OQtwf3U2kcPecpqoz8aUvwAt4tOIzx4WPHw== 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=VfV4mxwKqyeAKVXUe2OK/ZKUOFBIRp7DuSMjz6hb7Cw=; b=HMkYOpVhbaUzPmvVV1faOTEe1U6pbhqMT883pgqSZXrTfxUHg0Wr7stjUr0hWhavfL9sHoyVPg8mzt4gdiuckCqyWzzGHwCm1nI7KImvOcTisGJ6yIvqs3Xaz78oG4BDWSif7aFwn97/m3McFk0VJomayjc66qllIeH4eBGyoLY= 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:21:29 +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:21:29 +0000 Date: Fri, 21 Aug 2020 11:17:55 +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 11/15] regulator: stm32-vrefbuf: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111755.4c461039@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) 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:21:26 +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: 7eff0eff-e219-4567-f1ca-08d845814bb1 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: DlarCBdAFdEOesLDKHbTTlPWfrY3LpsOfP10DJukCnSZJ7N7YW5gcZvE1kRxYmFCBgpRQYvT3XWfLtTN/r/0dKfVJTO2FVBSszw0VpqE67a3WOo3b3RZKK40DBTgkCrV+TB5GXLsO047tBfzEUcmRY7E5yc7GnP/9NC5Hgq4U8PzHQipFM31JzBE8WKBKRDiBoQMeRqpAaHKwxLJEM8LBdrGTJmEYYbnmopPfe5msN/5KwjRe377Ve6WdCn4UvG8HKn14ExCa/bk9NtUF+m8LfK01k2mBA/MTcQpYyJMOHQBhEVMD47q9zEWfCQNLjLsXsfSB6+MwTaGb5S0kzTSPwPgHz3HVi6Tuu+wPLpzJVh+GhN2lUj+DFkt1q+XrR4W 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: 5EtHmIOLi6oTiHBvzXx1Cwf5Ah/em6LJtYdin1AjBx8lRxaXytO+rB8B9tbiy5iMFho4sgNqq0klzRW8T/Y657W0n1lEHDy1K6Lfy+oZlZ/JEDPUoEcyfMwZisFt8Zawr2awoGTW34RcKVYgXptI0sUetrs+viIOgVUuhw0y/J1xeY8rbIWOQLbstW083aiNVYs0jJP6c1q9tP7TkO88F0q1xrbRf9sBlwL3RC6xLUVh7i9UraCtf3ra9w0xMvkL5Ru57RmqY1AsmUsJihaySsHv2V2NVhtlfgJopTQhnj2JxjpkMqcYs0V+4w6qI53h6eJ4UO+7iwbh8H5EwPZZhD2uE0r/VeaaP7FMw9uMfGqmPOYFCRIx5xWAu5TNzslbXLIUfuGdSLcuOz7o+PDXVS2v2+0N30wiHgf1frAtAl8EYP932IWmQXTNRjako3n1fTxpNk+LJlEarfi8E8JnfITkV3q218mXqg4WToCZ+Lgn4zsdl6T+nQhv6VMnCbpKQjDBUKg3NTO8hp2IXDpHLWIEQqa3jnNxbZTipOo7sWJi6gojO/mdsk4L2xaZSz34ZKfmPLVWtsZ7BJ5fMrJhLPrw80TWhZsh5zfHHGVYXJ+j48tx/tfab0KP39sQ4RmsY64B6FtqPTYQjaA7qZg1Vg== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7eff0eff-e219-4567-f1ca-08d845814bb1 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:21:29.8824 (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: KQ/KZa+qJnS8l0aOwmmrxuxjWMdb7CCR08utrYQ/1v+qXRuJwb+GQha/riCU9PIRxBc3lF1x6G4gAvv5tItLzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/stm32-vrefbuf.c:287:34: warning: ‘stm32_vrefbuf_of_match’ defined but not used [-Wunused-const-variable=] 287 | static const struct of_device_id stm32_vrefbuf_of_match[] = { | ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang Acked-by: Fabrice Gasnier --- drivers/regulator/stm32-vrefbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vrefbuf.c index 992bc18101ef..161622ea7259 100644 --- a/drivers/regulator/stm32-vrefbuf.c +++ b/drivers/regulator/stm32-vrefbuf.c @@ -284,7 +284,7 @@ static const struct dev_pm_ops stm32_vrefbuf_pm_ops = { NULL) }; -static const struct of_device_id stm32_vrefbuf_of_match[] = { +static const struct of_device_id __maybe_unused stm32_vrefbuf_of_match[] = { { .compatible = "st,stm32-vrefbuf", }, {}, }; From patchwork Fri Aug 21 03:18:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727517 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99F5E138C for ; Fri, 21 Aug 2020 03:24:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7CC1E20738 for ; Fri, 21 Aug 2020 03:24:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="TUZY2Q9U" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbgHUDYS (ORCPT ); Thu, 20 Aug 2020 23:24:18 -0400 Received: from mail-co1nam11on2040.outbound.protection.outlook.com ([40.107.220.40]:6785 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727040AbgHUDYQ (ORCPT ); Thu, 20 Aug 2020 23:24:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oGgqyTAl0CYk4FoQckzBjk/L9QqB9sIZf/UxF9cy8gscWiDe6CKO7CHrxLC6hE2Mvp+R9oVUCinEjCvnSW+T1q2Uec6k2lZTPkmm0CTz3p+K3+aTbIy5KXfmURiNjj+jzvmtBItxNAzFc4P35zYO4FoA27gSzTkblGIRfMNdmE1T6Kip7g20h6grHG7XDgKVDM25DT2v3d4hIcoB4QIe99BNZbT7EO5AZS5xZ9zU0KImhJudJqBueaAvxSIAuA4BGlRX/bd0l8eSzSH9CoOWpvu37hqSjyMp49NDbVNfQ0km3i9XDG6uqKMIVclwTatdzsZussvZQLVrLgRq4cqQBg== 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=pL9/r6+ll0NF1Y/kbEJugrkxt8+RNVyCXvxply89DKw=; b=D8re5+twJjWFWBn6i4OY6Y8RMyX5QBgVouaafN2CriHQ1lgiNXXvihEYp0QP0tCXytQWGR5vs0Ca7W0mx2AUtINPlIBHEXyCLnDK3JjJby7rwGIc8bZYgNfV4cdrzlz7BgZgGMaPb2/7+WHtQjTrqAvuU7z1SfVy8Co8eP9eYMSwlYq92lxs94C1Q79+qpp2wXckSFyq4jWtoAKsCMahvRv6bqUcT/aJQXcsFWJHsek7cMU0zooQF5HI2cBW8Whhv1+CckZluvj+ZjxuyqA1St91B1PMQAgUoZFNh36Wu7gG1tt8vkRIvnihEbQ9ihEw045NpwLQf5ys0wN8ATOgsw== 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=pL9/r6+ll0NF1Y/kbEJugrkxt8+RNVyCXvxply89DKw=; b=TUZY2Q9UgNdO75wDbqY+CxWMY2idiv7zf9A/9CuA5qm2JmP0SRn/qXFNv6XOD3ToNbFamR5HR6KZUTET3L1ZFmKovkWbmC9rx+U73yVAnUKAJkzmx9phKQ0icj7wmda4FwuKl0E9tCyRMAW17q+GSx8WIZfj4sBIg7aYFhyIl5s= 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:24:14 +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:24:14 +0000 Date: Fri, 21 Aug 2020 11:18:20 +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 12/15] regulator: sy8106a: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111820.5c6ddb04@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) 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:24:10 +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: bbffe17e-23b7-42bc-1138-08d84581ada4 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: rbG1598npT3dwXkM5rNRKSkRZ9VbnqFisjrxD/9L8RG8ZLRsnMpKz61Q8ZOTNN9agySFGFvL9vea+/pEB/z08K3QI/8JEe5t7HZo9PJUWIFZXG/uQySDzj7j/OIqAhKHbvqBKz1AwBPCE5RemLA4/igJ5IIKbXUGDZe3uGXchakYjqGWPgGnAa2WJADUR0aZBKWgfI8LuSp8ryxWOYeb+M4T1g0SENMWk/XM4BUrPzjuGlsS6kGdWElf+98V5sA4U/gVIjmzinx/QW5BDIJUGyJz8eqhakIE+YXx+W7TYotIXfIDCZrosd114vbQu7SSpnOcLiFrmzPOmid6UGeYuMB9qHfT6lNVVotsAYSkLy398KmqDppezHn0rms+NEnc 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: mVMGrK/boeQNtSQhfryT2LY8G7gt9RRCMxcp9B4RvyzEsswLW+eFtu1sKt5HOzxxeC0X5X6zY4V2Jsu+96ibe4K0rQd2qaK5/rwRpOzCzPplWKsZveGEhtR0x0ZwIzZJHdg+Eju5hABDGsIVqX8uQzADW4A49pquAW/XykCYvJmbLHJjrh06WC2WPyUSGBM+NajCKKwpjmiG403wdq2bhQAwq7t0jlt/VLlp8uh54xv9vsuIY6fAzPKn/xafBIX7pVM1I8jJllCstXIPa6fMTzRYLn3IB74cdd3yL8seor1P/f9pxBb4dm8iWrq6EXn3CV/u5h7MBGwN305ZFBpZvUksh5Iv+oYNBQJdrRylryCS8Kx40p72NpZ8wOLxyJLA3M+TJajyOA/ZthfJ1ILazYmuRFICRMocxesmu69S+RCLLG7FvcmUt0IldBAMRppyTNw7m/41nJPdQB5SMTBQ/Q2i1FBkTqXYM8iIjLBiIQ9ElGyzsruz0gK2+W1s5Q1czg8LpS3MzuUlg2g9ezgnsR+T3DruAt1+L8fe2KZansnONHrX+c5wxLHlrRiG4IDGHeADmKkwiSphiTIbL559GldkQ92Rr4Ntl4yj3cGearxTaFbnEqVtbzCZpfUAAG+8IL+9/EWkSiPQWN5e/qBA4A== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: bbffe17e-23b7-42bc-1138-08d84581ada4 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:24:14.2521 (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: bp2+EcRw6hhwnA3iF4j9snzpPXHQk/Vdvko5hpzoreQ8hXEQDIWbPocvwl4TRYF6DN841WbZSEZ7VTVAgfbMtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB5308 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/sy8106a-regulator.c:126:34: warning: ‘sy8106a_i2c_of_match’ defined but not used [-Wunused-const-variable=] 126 | static const struct of_device_id sy8106a_i2c_of_match[] = { | ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8106a-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/sy8106a-regulator.c b/drivers/regulator/sy8106a-regulator.c index 2222e739e62b..c119f85259a5 100644 --- a/drivers/regulator/sy8106a-regulator.c +++ b/drivers/regulator/sy8106a-regulator.c @@ -123,7 +123,7 @@ static int sy8106a_i2c_probe(struct i2c_client *i2c) return 0; } -static const struct of_device_id sy8106a_i2c_of_match[] = { +static const struct of_device_id __maybe_unused sy8106a_i2c_of_match[] = { { .compatible = "silergy,sy8106a" }, { }, }; From patchwork Fri Aug 21 03:19:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 978B2138C for ; Fri, 21 Aug 2020 03:22:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78C1320738 for ; Fri, 21 Aug 2020 03:22:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="Jyvd5tP+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727921AbgHUDWe (ORCPT ); Thu, 20 Aug 2020 23:22:34 -0400 Received: from mail-mw2nam10on2068.outbound.protection.outlook.com ([40.107.94.68]:47072 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727888AbgHUDWd (ORCPT ); Thu, 20 Aug 2020 23:22:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QISZ0iPb8ZABuePXLarwpznFt8qv8KGi0SZQ36WLy5CKE/coQByqzcEhjd/XwE+WgWZ3nfy+pNLYqyZ/o71JzuAdW8+OFElid0zvROuSSblZMxDHVk8Sadrdg+vzuOLHwx8PK1tBwN74DEZz/gfBDpqW4c34CmHpQNQxSTNol3PdI3eYOgJgKJVvdCFxAvKak+qCChDxhBVqmItzfPxkhDuRnMXoFbsywIEunNS9FGOhkftHiwldVG7eCauO5/c08DspRyhOtzmrDyuJDcj/iHDFyWwRPTPoCXNPIWvsOwW9CNauYqivY90T3U4oEOgcpMoPBE+zmEkQM3WBbGaXjg== 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=KHvYbXKB637tjZ3eQiUxscttQbltDndxqdCobT2il9g=; b=F7OU2/QhqgGDhT3p5ZVw2aVe36iarBv+qZ7yKaYMn81ByLTMxiQwjTl5bjh9ENzNPCAOY6KU+IIu+WBOjS/UnYnub1LZ27ADpRAy+kqOwalWzUJ1SFWuqqI5co9VXLOaSQssf23K2xCYZKJpdX5XezwA+wSwn5xPaao+2gfRHV+Pq3XFHGms3ofIeNYs7RjyJfpLOjmh1+/v6tvbF+Ob/fKnn1XO3LKl25W0d/81iCwqiJabBXSsCXSchTSTgkXSGlRPrsjI3NPe7xCQZqznb3k0udkjGAlFG7njpam1w4pEcFxLCfkfNLsDaImDVgaVJAQTE5hc9Bb5HvWid3eQpA== 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=KHvYbXKB637tjZ3eQiUxscttQbltDndxqdCobT2il9g=; b=Jyvd5tP+oUG3negd4+if5tPAIBcx9QxmC27IimgMVaZdIueq/yiKfNwAEO/e6qeaL6Sc6uUxpThF/vlS1LiDXor8mG4dmVIRrYpCgOTtozJHJL+yUMOH0+9IvjDqad/WmPp1dhUjueK/jee0DRuWxXnHl4sKF1lYyEbYP/Fpigg= 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:22:31 +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:22:31 +0000 Date: Fri, 21 Aug 2020 11:19:13 +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 13/15] regulator: qcom-rpmh: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111913.1096f7cc@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) 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:22:27 +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: 35d47033-3d8b-4a12-3b03-08d845817079 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: eQlpmQdaVw6Hpp+cBsemuEZZNol67DOvhyEmwjITU+PBiNLW6phz5m331JUhh7aCyFlw0r847PixmhAEMaBBNNv2zJ85aDKAsG7DTYTHIEYRLA8PfD17uSeUdeN3zElwIwLgsz3srSnHXBWTq2wu+h3rTUY/ljGNxasufhTNjTAGOjrTHW4dnGR6etf6nen6moDyP8h0nCCrW8kBitT7/Es3R4Abroq0ZDqbUoPrfKPZVuJtFypjyh8yXa7RDFPVbCEZyHd/KL3FYqDuIeg9ZxBb5K9wSMt+UABsnA99SX6pzIn/HyPc6oBZPvo2nCVwGINBQ/IujEqFlq1+o61Wl+o0OcJqyz/zxZl1t50+QW7D2iVRyg9bxNjAmCVufq/Y 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: ZozzH3w/rJCYb0jrRctBPEEtsmetV03d+JorS7rfxSQtncbsYE7IXZk/Cf7mRq4NumPSJ2M4D5B/hgmPwvhgWEOKUo0RKx0vIIwnkklGHVyz+Kkq5hx5E1rPVqRvNkwOzRa2IHySBvZrllu88BlE2rUFzzhPGg3J8YAa2l4sIMRMpB4Z1ZNqbUlWZUahD324irCtTrmyiDQrEtNMISlVLsi4XipSDwB9/ciacBPbP/xoRYB7/3JwW78k2kKGuWIwHoO2T/3KdXuuPHJd3tEVZroJv/zieUQGFS7eXaNZEBhmp4cTwML5WobLsd1MsHQF73ApmVl0Pl+66rY8bbnCrUxdLvN1GmWo0y8Ae19Gw5MuUHG2nx5nDEqEYx1+VwNnwF7atF9DA9+k0YcRviirA/d4wFKKE4AwTNs594/EHqmdskeUTjVJ+hv/H3CZqw/rKRNuNoELlghIGCY0bR7siRQRkEktExBBtdweufPQOm1yfM4BmQUW8BLnUv1qbuAFBJzCZWozu1XJAhmVNCOQ/C5XVo7UX12AYppECQQyMgD/f1kpHMMRJkJkksKqMMdCi+Z7R+saFWDEn3eSXZLWVe8jSopQvxSbhRiRToMu2cu9yJtjFzRCY7qcmitTxlT+59Tk6qzcOJsizQPUkFOlkQ== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35d47033-3d8b-4a12-3b03-08d845817079 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:22:31.7033 (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: xemi8rU5Edv/2oHXSRVGOqaQ3acohBTBhmzQXOBJ0AGcXCt93mIeMHtOh94Ty24MgVvnJZem8ovhiGybnTxiEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/qcom-rpmh-regulator.c:970:34: warning: ‘rpmh_regulator_match_table’ defined but not used [-Wunused-const-variable=] 970 | static const struct of_device_id rpmh_regulator_match_table[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/qcom-rpmh-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index 08dcc614efa7..d488325499a9 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -967,7 +967,7 @@ static int rpmh_regulator_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id rpmh_regulator_match_table[] = { +static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { { .compatible = "qcom,pm8005-rpmh-regulators", .data = pm8005_vreg_data, From patchwork Fri Aug 21 03:19:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727485 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AAACA109B for ; Fri, 21 Aug 2020 03:21:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8616A207DE for ; Fri, 21 Aug 2020 03:21:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="n860/gOt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727817AbgHUDVt (ORCPT ); Thu, 20 Aug 2020 23:21:49 -0400 Received: from mail-mw2nam10on2080.outbound.protection.outlook.com ([40.107.94.80]:49633 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726844AbgHUDVq (ORCPT ); Thu, 20 Aug 2020 23:21:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D80M+ZyDvMt+J5JGgFLHr8eY8mMlEe4VA68saJKoV0OhkUvuuDQLl2ph0EebbCHYLEqpHVnFoMZlM4Zkdu9X4vNi9VPfy6jYfhMuP04YdckYFpwYteSSAQqTV+BL2SKLPIAid1pkuGLTAtZ8lYWZ4y+H1vIKCDyL5q296UDRlk/cLs1cBKYF1C+LS5s/HlsD+7rgUvB6FYtAJf71LfsldTL9rb2X2d9CZSkIbC/afhgtBdwCIHFjdJa2aluQBkexLPIayQmoMCtjb1Tz/9lQSX763h4dU9lTfKXKWQ4IzjlrrZRoDOsJS4EkLnCs4wjbwIshN81WsfZG3b6sIZ3ftg== 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=fcYlY+MZXJ4V+wb1pH/knpwMDRaWnhWfLgLTuQtDCVQ=; b=BJ+OEh9HBhofS/rzmWGJ3+NibhJsSByX0BgbtrL6L/H4BCETDkcv9CDy2Z2NbRLjqwYgUJUYy2R1lpTfPRwtmSLoekYDaXNgh2ml+Uf0PlXPDM7RXAuQPBXwP5j4kIoZppDcZpY5OfkrOQGDZm4IHwHw2SkCyTeotYYf8cfzVqwd3ZXcfnq9PR7GYR9rgSynZPhovhHQRCjyViuFM1UoQUR3ZsN7XizaINlEbjv0E+g3dSgbn2NjvLQ0Py7SJ4C21gPXO8wLXldkJA8xiXAEUnWwLldyKHUeVIzjFXtM10VcSmf3XUg7MuaAnF8xkhT8OCu+5u5VFwZOTOz97PLRDw== 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=fcYlY+MZXJ4V+wb1pH/knpwMDRaWnhWfLgLTuQtDCVQ=; b=n860/gOtt1hkzL4+lyx07RG3oOSg8qXBgpSWM1yCNa6yJYD54tr83lgH1ZOuKXeXRGZUh9YoxaYApjVaYzD+Gq806SqeN+fGqLu5dezYNS5588zLW54VX8P5kM0RcuHcXCLzC5FBPAZjWPUFWVko2lLui2Q+C5XkoubTWbtjkQA= 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:21:45 +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:21:45 +0000 Date: Fri, 21 Aug 2020 11:19:43 +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 14/15] regulator: stm32-booster: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821111943.29b2b4ca@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) 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:21:41 +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: b7d13b40-1e3b-4b69-a632-08d8458154af 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: cNlgqu8nSziaPjO5oWhMYTFYuGvv3UjYZRJwdfoF743zMnAWVlGIlxrOvg12de837MvN3KH285SiZoPtIEif+9r7p0QlADodL+GrP7nkwT2F1pfmS6DmcKGeqylCF8HEbBiVsFQBgWUYBe8lESCWdDic7SHfNIWkvLUynVUVPZGTZ2OiLM6+YZkXPd0YUZ8xjfu2k9r84YZJ9D4DCF6i23BJWF6PjghB3Q5QwaqYE/4A89O07KbcSh0U5LqZ7lvsT2MrLZz/Xt71dTbrmGmVhU3fDzvVwCOQLf6z7pxql5+0Q6lCDd6WHUK2CHwo/sCv+yWbjWcuJ//8jpkS6gBVCj1VDS4KDiONtTvTtg07/dd00R2Gpn8SF4x30y22RRXY 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)(5660300002)(86362001)(956004)(16576012)(186003)(316002)(4744005)(26005)(110136005)(2906002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: hYKuWuemDanxklUlMFInHQUMfvpaumbWJLep4qr1R53VO8B3FKZG56oFqVUwwl478JPmTGV0ehUUuPAhD+9/g61gYxfa71FfT3Ol3lwQ9xg23XtWZFq4i6JJWPCumO8bD8+NbH9+ewe4vGQTzaQf4XeF+LxJ3M2JpKC+86W3QHqFBWyQN9GcBJtcwfK6yuM1lAl+mUK9vpHd1n0G/hr+S9A3gVlhxd50NJkSGPBw5UrEiiiEzZABoEpPDDiOCk7IK2gR6V/HpAUIMlPX6NoRhin9thSMarfeM9HfWaB6UalqpnKBO76mMkNpkC45sCZdZN5D/3bhCZ39ysFYAeAlcH+ajCwz5PjaqyEe5E8Va4H8LPg59qqpzFSgINposM+uc/7DCmz0h2Bh5F54aBolmo58p+kQ9AA918rSEbCXi02XbRpM3yynz6ZuJ8DjSJDQVZQJUbYvRCiw4isJ+3jVLhZuEE5zWaq7CyLa+N7A8hWFUJK2YKNVTKXoBtDrnRh9liQ580Ud2t0qO0l2pUtXwCILlPnYL4ZyPeycfUW+2z4c65fEl+fRFPHyUJMuQTQoHyunXw4xlrH8a0srhPgEKt4Oao9mzqi7A6ILqhOeMm78gTpRSlobC2Xl6TZ/CU6WL+QziZMGvjwnvic0mpuTeA== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7d13b40-1e3b-4b69-a632-08d8458154af 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:21:45.0408 (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: 2iEKwDzPqParMuoW460HE0jEgDbY9iqBh60q3xSqUI83u3lqI+9/hv0UpnGixd1hghWWk8pWff9SSfBev+tc5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4617 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/stm32-booster.c:104:34: warning: ‘stm32_booster_of_match’ defined but not used [-Wunused-const-variable=] 104 | static const struct of_device_id stm32_booster_of_match[] = { | ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang Acked-by: Fabrice Gasnier --- drivers/regulator/stm32-booster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/stm32-booster.c b/drivers/regulator/stm32-booster.c index 03f162ffd144..3136ea8a35d5 100644 --- a/drivers/regulator/stm32-booster.c +++ b/drivers/regulator/stm32-booster.c @@ -101,7 +101,7 @@ static int stm32_booster_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id stm32_booster_of_match[] = { +static const struct of_device_id __maybe_unused stm32_booster_of_match[] = { { .compatible = "st,stm32h7-booster", .data = (void *)&stm32h7_booster_desc From patchwork Fri Aug 21 03:20:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11727525 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC654109B for ; Fri, 21 Aug 2020 03:24:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ADD2120738 for ; Fri, 21 Aug 2020 03:24:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="bOPQowne" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727840AbgHUDYe (ORCPT ); Thu, 20 Aug 2020 23:24:34 -0400 Received: from mail-co1nam11on2076.outbound.protection.outlook.com ([40.107.220.76]:37568 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727040AbgHUDYc (ORCPT ); Thu, 20 Aug 2020 23:24:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JBf95kVgF0sHMz09iUrqTPLF02sEltg06RmdjBU0jpCGhp/aMJhFfUsu375aPllzxPFmCXz2+z92FycNvaLL0IQbxFzdlNULSqiCVpz3XhJf/aoLWai7QDHNV4AK7EcBBUX2avCwApTice/WFQFz+K0v56qoK/6TPEFBcGHFi6AuheqdXjBw4CLmEikvNKvbLBEb/ghSfiW7eKn8wl/li8Bntj/DJoXvXJVKnrrke5R/N9yvj6cfm+7TPwcxbmc4TqdD8dj44F3cx3vv+tgkNNZwdMxvxT9O1ifXwhfag3y5/Dsq9QSVhey7PA1ORPBeoyV9jo+EIggRFh3cA/gTLw== 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=9tj3s7SRjf75wzTK5bzLKsJPYFVtVnMBXOPHUf/ySg8=; b=QrO0kv01iALsadFmnsq8EFoBhF6BjebpcVcnAVcVrTY2O3X1XFUy76RH3Xr0FxZMvTS3MuzzSwb5hP5m8Bl5UzcK9OMBEaWNWil30znq24S2Yv2VUuIvZa+KxYaiUDxFz/A6Kg0fAavRqHJckvCdlQh4rZCYvjDPx+mu/SrfD3W88+SFcajO1Ij5hLtOiq2y34Huwh8oRIrUIDioJDmdKsJT+M+2O2UU6TJYlmh1Ub00BlVxc4Wm+Iigx5XYvfcyddUp4YUmA4lFCWuJ52dEFYS9WaHLgw3CGRn1Xv8UAYLZKySN/TE+yzfH9KaGbjMTnvMXXgMZXAIEiPBxMyhREg== 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=9tj3s7SRjf75wzTK5bzLKsJPYFVtVnMBXOPHUf/ySg8=; b=bOPQowneyyyXRaahzZB+mnbrD+75b5Ud29+w0aFO7DGjAX6ZwVjP25tnduGgbsHwezGqYPsDWkZxuqDsIPSbXd+OTo5xD/5cDLGDAVaZv+bDB4KlftL/MRpLCfNTmsJIDxvpMA00OOxnOzbmlXsdM6hzjzRXV8ni8kpETug16sc= 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:24:31 +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:24:31 +0000 Date: Fri, 21 Aug 2020 11:20:09 +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 15/15] regulator: tps65023: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200821112009.58ee8511@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) 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:24:27 +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: 199c562a-186d-4f10-79d4-08d84581b7ae 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: Ku+7YAOY2Z5d59qAsjCEHsnyENGCwFBmqhsM22JOGp/dOvFpymVJOIElffyEoSPMq9x8uL/EbF0huisUCBHLNh+lZlSQ2lbRsaPM1ZUzO41r1O0jzZtdgdyUk6YOC9+W7NzOosyOF55DjfT6GfS+rP+GVeRZP7ZmwFLnE5agqTrzuVWh7Rcu41GsRNz5MUjtD9m/+N2tJvTXVueZ8JM6Ul8jsHtHfLgxCturkAorN5iADvXoJmsVNkel7LJze5uhbVqT4aMEuJ+Z7fcsZd4a/KMGP9G3GeXvOOexXgY26eycEnIQ3NqPfLOObgdZpsk8yOidDtgAsdrOOQceVvFPMSkD6FepOKPB1pMjIXRU8uZ1qtQ+FkFFYP47A70gbzk/ 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)(4326008)(6486002)(6666004)(26005)(186003)(1076003)(110011004)(8936002)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: HLULFGt7TmQxigPKqASfsQ9bqfdplMpHE+m5iMkXUvYTv4MMOulhBujJ32TctsOglR9CjIl3VyanjiKWr30KrZ8Mobb3FUCtyLJE5DDTTC61vOqy4TggqXHzPo3cnsFg7AkuaxtdD1EAoZ7UBMTUXZOa9UoAsFYeUlZJqj4PjlLI1WH8//anJSnC6N9xm7nJ/LjcwnyocIDFpwg84M+sd3Z0KWGJBL5gbto+SOoIZTwChSGtHpfyZSRFC7Hw5SSXvQHBj+x+0C9PL3JsgtR4CZBMYiK0QlQtThbLsiYAI7I+fbBGkITEcg3+4AXvSx8gfcxy7FtcFZy5zDb3CYKF2M8VEjYR/3yE97JI2IiIbzo5UboZIpJcTotDmy28J5wrHnx5sXXCErF/7LDJGFdEbwSSvnEzS8mCr1vJ9TEP0GdhwwNGjmPtZlx+P+wtw+KbH6/VgeDQOvh8PyVdf1kil8/2Oqgmf11ln8vYkLyTgeLCYyFc4LZTmEBflE9Cor2FF7TKeuZvcvubZyqfC+0fMsuasd+k7PoRsdXHgv5/xqUNozFbIw1vz815oGcNyv7bKnEXKzyPVhuOaE+9z1vpbFSTa8evLw30sM7H75tnwwoxcsOEtBUstPz06e8ti2CUnSQPifkyhSRQuPxDVmUzpg== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 199c562a-186d-4f10-79d4-08d84581b7ae 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:24:31.0326 (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: YkeDlqZo7hkTLjgMHUDm2JksuP5NghPLz3bnsQoGO+r0MY14gSC5fFMpKz4dc8jRNnkOpNSbTrFmtzobTOyeiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB5308 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Fix below warning when CONFIG_OF=n: drivers/regulator/tps65023-regulator.c:319:34: warning: ‘tps65023_of_match’ defined but not used [-Wunused-const-variable=] 319 | static const struct of_device_id tps65023_of_match[] = { | ^~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/tps65023-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps65023-regulator.c b/drivers/regulator/tps65023-regulator.c index 795d459ff3cf..f25806531c7e 100644 --- a/drivers/regulator/tps65023-regulator.c +++ b/drivers/regulator/tps65023-regulator.c @@ -316,7 +316,7 @@ static int tps_65023_probe(struct i2c_client *client, return 0; } -static const struct of_device_id tps65023_of_match[] = { +static const struct of_device_id __maybe_unused tps65023_of_match[] = { { .compatible = "ti,tps65020", .data = &tps65020_drv_data}, { .compatible = "ti,tps65021", .data = &tps65021_drv_data}, { .compatible = "ti,tps65023", .data = &tps65023_drv_data},