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: 11727535 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 D0992138C for ; Fri, 21 Aug 2020 03:26:00 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A812E20738 for ; Fri, 21 Aug 2020 03:26:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MdnQWx9C"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="TUZY2Q9U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A812E20738 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LPJDivMBPgkFNw86UfBoTdqYHt/8KnDOhhzm/qaa6KI=; b=MdnQWx9Cr7S7Ny8JlQ32optKc HRpyBNcCv1UXlwGPAEQJgcyRJ3OOre7weW9Ddlptxb6fhnIVwuT9AwcuBe8RODRN8YmBj2Q7tb9Cj Go1BM7fLpZQnOE375JlXs0Gy6bCF2FaPGVeLxjHiXLMYH0FaC74IFbwvn48LrzD8w4vAHn7GSL2ge oF4n58P9AuKFMwhAdMhMooEBsQNbx8+f/JGv4cjl2PQnoQD6Y/l+XWn+J0TJhfJ87GLARHf8wFWli yZtsgExvKpek5dFJiOrDEa+2WoD0AjEdXu0ryoS/JglfETKJ2VZC8ysss2Xduhbl3M/AfEg2ny2BU IbFJcf+VQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8xfH-0004Xu-Nn; Fri, 21 Aug 2020 03:24:27 +0000 Received: from mail-co1nam11on2041.outbound.protection.outlook.com ([40.107.220.41] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8xfA-0004UX-Qx for linux-arm-kernel@lists.infradead.org; Fri, 21 Aug 2020 03:24:21 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_232420_981960_EF230E0E X-CRM114-Status: GOOD ( 12.96 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.220.41 listed in list.dnswl.org] 1.3 RCVD_ILLEGAL_IP Received: contains illegal IP address -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.220.41 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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" }, { }, };