Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1427530

答复: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c

From 高峰 <fgao@ikuai8.com>
Newsgroups linux.kernel
Subject 答复: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c
Date 2016-06-21 12:00 +0200
Message-ID <rMqDs-43i-3@gated-at.bofh.it> (permalink)
References <rMpnX-3mT-11@gated-at.bofh.it> <rMqal-3Th-5@gated-at.bofh.it> <rMqal-3Th-7@gated-at.bofh.it> <rMqal-3Th-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


I have sent the new commit with the compile errors.
Is it ok now?

BTW, I think the compile error is caused by that "subsys_initcall" statement losts the semicolon. 

-----邮件原件-----
发件人: Takashi Iwai [mailto:tiwai@suse.de] 
发送时间: 2016年6月21日 17:20
收件人: 高峰 <fgao@ikuai8.com>
抄送: alsa-devel@alsa-project.org; perex@perex.cz; linux-kernel@vger.kernel.org; gfree.wind@gmail.com
主题: Re: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c

On Tue, 21 Jun 2016 10:48:30 +0200,
高峰 wrote:
> 
> The lastest CentOS7 platform, and the gcc version is gcc version 4.8.5
> 20150623 (Red Hat 4.8.5-4) (GCC).
> It could pass compilation after append the lost semicolon. 
> 
> from sound/core/seq/seq_device.c:39:
> 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

It's a RH specific issue.  The upstream code has a different definition of module_init(), thus no such an error would occur.

Note that I'm fine to apply the patch, it's a trivial change.
But you need to give the clear reason why to apply it.  In this case, it's no fault of the upstream code.  But if it would make someone's life a bit easier, it's OK to apply such a change.

That being said, please resubmit the patch with a more explanation.


thanks,

Takashi

> 
> -----邮件原件-----
> 发件人: Takashi Iwai [mailto:tiwai@suse.de]
> 发送时间: 2016年6月21日 16:45
> 收件人: fgao@ikuai8.com
> 抄送: alsa-devel@alsa-project.org; perex@perex.cz; linux-kernel@vger.kernel.
> org; gfree.wind@gmail.com
> 主题: Re: [PATCH 1/1] sound: Fix compile error of seq_device.c
> 
> On Tue, 21 Jun 2016 10:34:25 +0200,
> <fgao@ikuai8.com> wrote:
> > 
> > From: Gao Feng <fgao@ikuai8.com>
> > 
> > Signed-off-by: Gao Feng <fgao@ikuai8.com>
> 
> What compile error did you get?
> 
> 
> Takashi
> 
> > ---
> >  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);
> > --
> > 1.9.1
> > 
> > 
> > 
> > 
> > 
> 
> 
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] sound: Fix compile error of seq_device.c fgao@ikuai8.com - 2016-06-21 10:40 +0200
  Re: 答复: [PATCH 1/1] sound: Fix compile error  of seq_device.c Takashi Iwai <tiwai@suse.de> - 2016-06-21 11:30 +0200
    答复: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c 高峰 <fgao@ikuai8.com> - 2016-06-21 12:00 +0200
      答复: 答复: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c 高峰 <fgao@ikuai8.com> - 2016-06-21 12:10 +0200
        Re: 答复: 答复: 答复: [PATCH 1/1] sound:  Fix compile error of seq_device.c Takashi Iwai <tiwai@suse.de> - 2016-06-21 12:10 +0200
          答复: 答复: 答复: 答复: [PATCH 1/1] sound: Fix compile error of seq_device.c 高峰 <fgao@ikuai8.com> - 2016-06-21 13:40 +0200
      Re: 答复: 答复: [PATCH 1/1] sound: Fix compile  error of seq_device.c Takashi Iwai <tiwai@suse.de> - 2016-06-21 13:50 +0200
  Re: [PATCH 1/1] sound: Fix compile error of seq_device.c Takashi Iwai <tiwai@suse.de> - 2016-06-21 11:40 +0200

csiph-web