From patchwork Tue Jun 21 09:32:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fgao@ikuai8.com X-Patchwork-Id: 9190177 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F7C56075E for ; Tue, 21 Jun 2016 10:11:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EC4C27FAD for ; Tue, 21 Jun 2016 10:11:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6321A280B0; Tue, 21 Jun 2016 10:11:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9630127FAD for ; Tue, 21 Jun 2016 10:11:00 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 35DE82669D5; Tue, 21 Jun 2016 12:10:58 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 12D6F265AC9; Tue, 21 Jun 2016 12:08:10 +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 838242657B1; Tue, 21 Jun 2016 11:33:00 +0200 (CEST) Received: from smtpbg65.qq.com (smtpbg65.qq.com [103.7.28.233]) by alsa0.perex.cz (Postfix) with ESMTP id 9BA1E2654B3 for ; Tue, 21 Jun 2016 11:32:51 +0200 (CEST) X-QQ-mid: bizesmtp8t1466501555t250t299 Received: from localhost.localdomain (unknown [61.51.138.52]) by esmtp4.qq.com (ESMTP) with id ; Tue, 21 Jun 2016 17:32:27 +0800 (CST) X-QQ-SSF: 01100000002000F0F820000A0000000 X-QQ-FEAT: 9NFkmNiL4heFm/zYE9lQHtrsrFF3Hk2thUxnrvUwVD2xgRT0gCivILyBVAzw/ kKg53uVl/hXdFNrt6LKLwdU8MHV1VcnVD+dSVaNqZ1+7e1TwPAlhOOvP7FhdK70doWfP4Oy lzB/+RkEd6U7t6aiYbTUbpiXtVX99gr88Y+PBDz7yNf0q6wXthry5Bvvkj475GmiJDzIR23 t0IYuDJocoY4VL6lvPwc2EDDCsEBFRu6y++pvxT6Yn+CnrUyF+5tKiGr5xC9XHndm34alJJ erahNuBmIsE3qc X-QQ-GoodBg: 0 From: fgao@ikuai8.com To: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Tue, 21 Jun 2016 17:32:26 +0800 Message-Id: <1466501546-30094-1-git-send-email-fgao@ikuai8.com> X-Mailer: git-send-email 1.9.1 X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-Mailman-Approved-At: Tue, 21 Jun 2016 12:08:06 +0200 Cc: gfree.wind@gmail.com, Gao Feng Subject: [alsa-devel] [PATCH 1/1] sound: Fix one compile error of seq_device.c 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gao Feng The gcc reports the following compile error on CentOS7. include/linux/init.h:216:2: error: expected ',' or ';' before 'static' static exitcall_t __exitcall_##fn __exit_call = fn ^ include/linux/init.h:279:24: note: in expansion of macro '__exitcall' #define module_exit(x) __exitcall(x); ^ sound/core/seq/seq_device.c:315:1: note: in expansion of macro 'module_exit' module_exit(alsa_seq_device_exit) ^ make[3]: *** [sound/core/seq/seq_device.o] Error 1 make[2]: *** [sound/core/seq] Error 2 make[1]: *** [sound/core] Error 2 make: *** [sound] Error 2 Signed-off-by: Gao Feng --- sound/core/seq/seq_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index c4acf17..4e859e4 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c @@ -311,5 +311,5 @@ static void __exit alsa_seq_device_exit(void) bus_unregister(&snd_seq_bus_type); } -subsys_initcall(alsa_seq_device_init) -module_exit(alsa_seq_device_exit) +subsys_initcall(alsa_seq_device_init); +module_exit(alsa_seq_device_exit);