From patchwork Thu Aug 20 07:36:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11725801 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 C59001575 for ; Thu, 20 Aug 2020 07:53:29 +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 92B612076E for ; Thu, 20 Aug 2020 07:53:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GglAZonX"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="ZJj2qSa7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 92B612076E 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=KJoSyzmuoM8ElRpr7Hht2A5CnTH0QhvunNhgUAwTz+U=; b=GglAZonX+fKvdC4qh/aRrUnR3 UZI69Awvnd43uDpVaYybJ3Y1vDIC+UwW11YtxoCMsMOeKNRYTDaynr2x/l4WS3Rz9/hSbkCivYUU6 EqkLK5jC3nMEn875AXo8N5PPnS9lXPJtLcJSbYPmrSBZy5Hd1/ADB1TfTh7vXng6tOEv3IxDF6TS9 L++hB40EBVD8QGpmNH067rHP78ODS6HDNepc6VgiDrdftWMUMsG+mTaqGJw1SN6OXdUFPxi/ETT7T drfdX60xn9Zkcj8hyh7EBIBEhr1ax8TM1wOIDJLJk5s6hJRaqAIyxM6itXz0dAvkcsgTrd9L1U8OL Ms9C0JLnw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMZ-0007OE-9z; Thu, 20 Aug 2020 07:51:55 +0000 Received: from mail-dm6nam10on2049.outbound.protection.outlook.com ([40.107.93.49] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fMW-0007Nd-6t for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:51:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DpFZ/lHg6fh6FNOZ8DQEiusROr7lhERNEAzSpk7qwMGyh7/BDs8AgBkBf7C4Pge0CY6qfWSfrK+WiXET7Od7NpTcxhRBiyKmY/QXxdwvI+5PtpdaKpl/Q/TiyeUIpvOWmr1JW+9AaB6Ru3ut+Uc7hlJALIDMHTzRv50jtpB/7zgZHarf58FiK7ImBMaCLWdl6NU5Yb2G1hZsjKVMEJ21Mq5ZFU5iihgg8yGSSjBnXbkgM14zm5M2ejVPi5NjC1Boxs/o5fFDtOXPv9MybcR4LkKZbvmY8sfagcOMrgQ8q6FL9OpptQQkuXGl0u4koed67jHxlpIixcuXOK1okQ+v2A== 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=G6r3a7f5HXta43l3bKvwm/ztY7DNODH815tZybl7iU8=; b=LpAPsWc/rMQsgYZV3MXF2bWitjzE5C6dXqyvf2LaY3lX+FMYlNhgUT/ZCi1r7FbhrGFhE8TRzUkqawpHWLCwqOt7eiwTlj14nl3I4iaiOnVkeffA6Cb72MSHATzf+hyFEwXM9Ebeuv466qbQaUGB593Ag0Z4kwepwlrYK8tWk4YGii8HlmESlW3AwD+FY22kYGZWiFNR3HoVSi5yFzqgw/mT4y9ULK49oOn7p+a4M5Yt+4SL/kG17vlAU9j9vciyuFBQlN0ckmD+Bnv/fB3IoxuPWO3dTU2B1FZR2Ios3qutLbCibrCExlMKZKTItIS+7tm7aziE4VYFAjGdypg7nQ== 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=G6r3a7f5HXta43l3bKvwm/ztY7DNODH815tZybl7iU8=; b=ZJj2qSa7YpQGZPYdbd4iIFy+Lc93+ctBEzl9ED0ZICFm5GGh2BSVFE3wsrzWo+pJiqeACc/BnghpdLmKxrQv+UIIEO7icf2lTxtkd7Ze8ATNA+2JL+U3v+0zGQZmPksdazOSpI93WUECpspD0l11LV9Qwbw1hQfdp4tLYqhGPOw= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=synaptics.com; Received: from BN7PR03MB4547.namprd03.prod.outlook.com (2603:10b6:408:9::22) by BN7PR03MB4563.namprd03.prod.outlook.com (2603:10b6:408:36::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16; Thu, 20 Aug 2020 07:51:49 +0000 Received: from BN7PR03MB4547.namprd03.prod.outlook.com ([fe80::3cda:7634:5802:df5f]) by BN7PR03MB4547.namprd03.prod.outlook.com ([fe80::3cda:7634:5802:df5f%7]) with mapi id 15.20.3305.024; Thu, 20 Aug 2020 07:51:49 +0000 Date: Thu, 20 Aug 2020 15:36:15 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Subject: [PATCH 06/12] regulator: ltc3676: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153615.352947f6@xhacker.debian> In-Reply-To: <20200820152926.42c48840@xhacker.debian> References: <20200820152926.42c48840@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-ClientProxiedBy: TY1PR01CA0194.jpnprd01.prod.outlook.com (2603:1096:403::24) To BN7PR03MB4547.namprd03.prod.outlook.com (2603:10b6:408:9::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by TY1PR01CA0194.jpnprd01.prod.outlook.com (2603:1096:403::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Thu, 20 Aug 2020 07:51:45 +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: 11172cbc-63d1-4e41-f2c7-08d844dde493 X-MS-TrafficTypeDiagnostic: BN7PR03MB4563: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mH0ydswDHdNYylQwBRv75mKUuCWrlGXV0i2byJ178GNHZso6tFTnBrmez5aSXrrEHn+BgeJ3v7MCvFNrt4gdFdVrgGR+x/+xXf3Bbo+9hGDN6BHgcjVoF7ciWcSKUKqH2hBIBIRg20wUPpxyxkFlWkl4TgF+rt6+zIOOrdHvgUinkKjHB9w287zc2yzYRn1o/jlFSIpFC/gekQCQa/31UlBaiEZNALO3oE0AX5YcjgbRY168dcQq4LdsX2y2+oYMi5mGjHOxFrMP+VLOTjx88QAc/A/jliA1dlU0oDToaKlzFgQ1RBtGhgMaitXPlb4LIBNIkMrHXxBxiKK6xfIRgWfA5qVA9gQMTgY2RShqkXhF0TtCiXUdfCnp0s29T/E3 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR03MB4547.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(39860400002)(396003)(346002)(136003)(376002)(1076003)(4744005)(4326008)(2906002)(5660300002)(6666004)(478600001)(956004)(9686003)(83380400001)(26005)(316002)(86362001)(52116002)(8676002)(66946007)(16576012)(66556008)(6486002)(110011004)(8936002)(66476007)(110136005)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 6NFwbL6CJIYazAISo/bnG3r+Ds6Wg9sfYCz03SHgYnOFzI82O7XHLHkH0jYeV0IB5P5qAL0w1AvoHMU8irvoY4P2KLdL7rLHwtLUEWYgDMKaYMxdvfdmoqsAxEQ2ZmTDjK6wM0gkDX9/sEcbKcLLdZ7ZcyeC2v6VvBNGzpBomo1Jg/Ff7nT10E9KAd0KDd+AzlXV0+OLBso3z5kb/r4HKsUZsCjWzj1uTgUoRgbfDYjl1pse6mzU34Q8JyuPei9JrQktCWre+B00VtqD8c2537PzF71FeUcvMUVrNamVT9Kv8R1AZekirT0XB/rXL5/TzjBwkZDRNt7/0PFWMAZONcwR8bqpPWrW/hAEJWBwjCrSylvXMe0t4SIPcXf8Xy/fYPXq+Y7rIswPgBgNJ2BGulervlD7oPV9+EUSSHvdFS0KIJZfFpAFDtKaw5ZWCXd47Hh/1FwQH/drQfvcniyEVvrE/GS5vQbrnaY1/gGvIaIbQvlObqvMPJ8NQ69bbmmTTkd0NMwTRIeMFqOpAXLO2dHd24rPDdftDrvJ3RQhWS2ZzjnYqwxeSDYpTgabxtn5tXbkDQUgy7U+ClvlL9siaJFSTwLNRMW0Hm9uvk4DBpnLzA91ARLTvNitphV6ragWndNXg7WCDY+0lO7W8gz5cw== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11172cbc-63d1-4e41-f2c7-08d844dde493 X-MS-Exchange-CrossTenant-AuthSource: BN7PR03MB4547.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2020 07:51:48.9055 (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: qGPBBTSz2wThhp54meTkCN2myFjZ5Pesw18aKK/dEuJ4jr+rqzNJydq/SnX2Z6plgzndecBPQwIq6/YFkT3D7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035152_263059_D3C752E3 X-CRM114-Status: GOOD ( 11.36 ) 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 ---- ---------------------- -------------------------------------------------- 1.3 RCVD_ILLEGAL_IP Received: contains illegal IP address -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.93.49 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.93.49 listed in list.dnswl.org] -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-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/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, 2 insertions(+) diff --git a/drivers/regulator/ltc3676.c b/drivers/regulator/ltc3676.c index 093b3e4a6303..0778d5bb7559 100644 --- a/drivers/regulator/ltc3676.c +++ b/drivers/regulator/ltc3676.c @@ -368,11 +368,13 @@ static const struct i2c_device_id ltc3676_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, ltc3676_i2c_id); +#ifdef CONFIG_OF static const struct of_device_id ltc3676_of_match[] = { { .compatible = "lltc,ltc3676" }, { }, }; MODULE_DEVICE_TABLE(of, ltc3676_of_match); +#endif static struct i2c_driver ltc3676_driver = { .driver = {