From patchwork Fri May 29 08:47:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 6505031 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8ACE6C0020 for ; Fri, 29 May 2015 08:47:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF7422044B for ; Fri, 29 May 2015 08:47:50 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7E70520770 for ; Fri, 29 May 2015 08:47:49 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C15FE260635; Fri, 29 May 2015 10:47:47 +0200 (CEST) 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,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 4F4162604BE; Fri, 29 May 2015 10:47:39 +0200 (CEST) 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 63953260527; Fri, 29 May 2015 10:47:38 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by alsa0.perex.cz (Postfix) with ESMTP id 5778A260492 for ; Fri, 29 May 2015 10:47:31 +0200 (CEST) Received: from wuerfel.localnet ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0LnGL0-1ZbSZp0JYM-00hdO4; Fri, 29 May 2015 10:47:23 +0200 From: Arnd Bergmann To: Takashi Iwai Date: Fri, 29 May 2015 10:47:20 +0200 Message-ID: <4218314.pT4WQLSW4C@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:h7PHE1ojTUs5Vi0qVwENL960ofnnHHqzZaDhiReSRW7pZMpj3AS 4TOFwX6At1Kc/6Vw6S7e/Amu9mPlII0oDXyODVSa/zrSdtw+xLb4ROQOVTt3Enx7g7JA/iW IU9eevVyd3WI7McITHjIXhVSICTNlDVeA8ULX2bmly5zffY3tpIL6BNPv09C3WlHPxx4XNQ 9Y+gFoASwv7QYK9qxVWkg== X-UI-Out-Filterresults: notjunk:1; Cc: alsa-devel@alsa-project.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ALSA: fix building with CONFIG_SND_PROC_FS disabled 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 A recent change to split the procfs support for ALSA turned out to be incomplete, leading to build errors: sound/core/seq/seq_info.c:61:12: error: redefinition of 'snd_seq_info_init' sound/core/seq/seq_device.c: In function 'seq_dev_proc_init': sound/core/seq/seq_device.c:276:2: error: 'info_entry' undeclared (first use in this function) sound/core/seq/seq_device.c: In function 'alsa_seq_device_exit': sound/core/seq/seq_device.c:309:22: error: 'info_entry' undeclared (first use in this function) This replaces some more instances of CONFIG_PROC_FS with CONFIG_SND_PROC_FS, as the original patch started. It is enough to avoid all randconfig regressions I saw on ARM because of the CONFIG_SND_PROC_FS introduction. Signed-off-by: Arnd Bergmann Fixes: cd6a65036f0e ("ALSA: replace CONFIG_PROC_FS with CONFIG_SND_PROC_FS") --- I assume this was already reported. If not, please apply my patch or fold it into the original commit. diff --git a/sound/core/seq/Makefile b/sound/core/seq/Makefile index b29ffe835205..b65fa5a1943b 100644 --- a/sound/core/seq/Makefile +++ b/sound/core/seq/Makefile @@ -7,7 +7,7 @@ snd-seq-device-objs := seq_device.o snd-seq-objs := seq.o seq_lock.o seq_clientmgr.o seq_memory.o seq_queue.o \ seq_fifo.o seq_prioq.o seq_timer.o \ seq_system.o seq_ports.o -snd-seq-$(CONFIG_PROC_FS) += seq_info.o +snd-seq-$(CONFIG_SND_PROC_FS) += seq_info.o snd-seq-midi-objs := seq_midi.o snd-seq-midi-emul-objs := seq_midi_emul.o snd-seq-midi-event-objs := seq_midi_event.o diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index 288af56a43cd..c4acf17e9f5e 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c @@ -272,7 +272,7 @@ EXPORT_SYMBOL_GPL(snd_seq_driver_unregister); static int __init seq_dev_proc_init(void) { -#ifdef CONFIG_PROC_FS +#ifdef CONFIG_SND_PROC_FS info_entry = snd_info_create_module_entry(THIS_MODULE, "drivers", snd_seq_root); if (info_entry == NULL) @@ -305,7 +305,7 @@ static void __exit alsa_seq_device_exit(void) #ifdef CONFIG_MODULES cancel_work_sync(&autoload_work); #endif -#ifdef CONFIG_PROC_FS +#ifdef CONFIG_SND_PROC_FS snd_info_free_entry(info_entry); #endif bus_unregister(&snd_seq_bus_type);