From patchwork Wed Jan 20 10:43:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8070881 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2052D9F440 for ; Wed, 20 Jan 2016 10:44:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 539F520443 for ; Wed, 20 Jan 2016 10:44:28 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 2D433203AA for ; Wed, 20 Jan 2016 10:44:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D875726060E; Wed, 20 Jan 2016 11:44:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 42264260532; Wed, 20 Jan 2016 11:44:18 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id D2826260535; Wed, 20 Jan 2016 11:44:16 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by alsa0.perex.cz (Postfix) with ESMTP id D1A9A260412 for ; Wed, 20 Jan 2016 11:44:09 +0100 (CET) Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LgYYX-1Zpmjy2HET-00nycR; Wed, 20 Jan 2016 11:43:59 +0100 From: Arnd Bergmann To: broonie@kernel.org Date: Wed, 20 Jan 2016 11:43:48 +0100 Message-ID: <2238845.aZnycJVYKR@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:5uQ8RO+YL+D9p4FB4ThY9rDbOQfU21HDi8gthy58HF92FvmQyNu 7OX/NPCR6PcEbZf2oBPiG43zl9baJAnzenamqiZJUsK93dpAzsH+BJNI3OjMNbVX3TdAhjp +tpzqBjqg8ZX1Kxpun88hyYjafxh5HJ9di9GLpOc7XFYkV90qyX5UulxgKioqYgTssklCcq 7gy61lv43Q/6VXZ0oasUw== X-UI-Out-Filterresults: notjunk:1; V01:K0:KMCFpYWLH84=:J7XiN8lKVlEWf0HXI+5PEC SrPMtIxVz9hw7OMbSKYI0V+BWOZEr0zjZTlETyLjVbcURp/1DinI8WSTORH3Vi/16kQ6A6CRs SYmMle+9n5w7Xl239s12vxh8GxrGZRGhP7PGI/W3+EPCvqh2jtGbzf6rdntmbHHhOVWEslhMd Bt/luZtflfFDY5dauLF+TvSwOv2GxhE0JO1cBFLW7MyICdCnDZQmza0sGeKZVSXpb+EVEM9EB U69Jb0mhjQIdBejgiv+FFAdNcXT8Ie2vmxxtHnXYuHsQ+g8/NfuNUHI/7JZyHgZN9PvhzesnA gTbWR7vzvKsUvpJpkKpBNGQ3uGwkD1zahv5Bq8OqliGHh08Zt5DNCyKewW6TPWMtnut7+84TK 5LTBkyKPAsluIGzKFjM1AVgpHMW/aUIppqMQCi8Phn2+twWnj7c6KXLMibhkaUOfw2ERERrku Dt2qAJjK8m+yFrYhVbmqQb2iNgaxrnfzQhJZ/55e3FrZn3Si36pimWxOlavr7gGqz2SIzqoCa KL+VDTrZPdqSwpV9+5BBcLfu63H30bUPYpaCUZFkFe8fVltB4uNse0eZQH9nDab/5V95njyCP AzZED8Yte+rknThfm61zMEREvJebAn2AnYk+Ilq86FwH4nX6DReUsSf+fwjIHG6aYXh0DG4ht uZzoVKiKAdasig4MN6QJYyyyL8JTgIl7pOM30Xs75GvBzxiHCaNoLNGM9TKP6fNi03ROHEfeH lOuRgq5bAKHMw4sF Cc: Oder Chiou , alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, Bard Liao , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: avoid unused variable warning for rt5659_acpi_match X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The newly added rt5659 codec driver unconditionally defines an ACPI device match table but then uses ACPI_PTR() to remove the only reference to it, so we get a harmless build warning: sound/soc/codecs/rt5659.c:4200:30: warning: 'rt5659_acpi_match' defined but not used [-Wunused-variable] static struct acpi_device_id rt5659_acpi_match[] = { This removes the ACPI_PTR() to avoid the warning. Signed-off-by: Arnd Bergmann --- This is a harmless regression against v4.4, found on ARM randconfig builds diff --git a/sound/soc/codecs/rt5659.c b/sound/soc/codecs/rt5659.c index c166d9394c69..5a1d789ba58d 100644 --- a/sound/soc/codecs/rt5659.c +++ b/sound/soc/codecs/rt5659.c @@ -4201,7 +4201,7 @@ struct i2c_driver rt5659_i2c_driver = { .name = "rt5659", .owner = THIS_MODULE, .of_match_table = rt5659_of_match, - .acpi_match_table = ACPI_PTR(rt5659_acpi_match), + .acpi_match_table = rt5659_acpi_match, }, .probe = rt5659_i2c_probe, .remove = rt5659_i2c_remove,