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


Groups > linux.kernel > #1661992 > unrolled thread

[PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops.

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-06-09 09:10 +0200
Last post2017-06-09 09:30 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-09 09:10 +0200
    Re: [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and  vx_pcm_capture_ops. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-09 09:20 +0200
    Re: [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops. Takashi Iwai <tiwai@suse.de> - 2017-06-09 09:20 +0200
    Re: [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops. Takashi Iwai <tiwai@suse.de> - 2017-06-09 09:30 +0200

#1661992 — [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops.

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-09 09:10 +0200
Subject[PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops.
Message-ID<tQmds-6TG-11@gated-at.bofh.it>
File size before:
   text	   data	    bss	    dec	    hex	filename
   7126	    240	      0	   7366	   1cc6	sound/drivers/vx/vx_pcm.o

File size After adding 'const':
   text	   data	    bss	    dec	    hex	filename
   7382	      0	      0	   7382	   1cd6	sound/drivers/vx/vx_pcm.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 sound/drivers/vx/vx_pcm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/drivers/vx/vx_pcm.c b/sound/drivers/vx/vx_pcm.c
index ea7b377..d318a33 100644
--- a/sound/drivers/vx/vx_pcm.c
+++ b/sound/drivers/vx/vx_pcm.c
@@ -873,7 +873,7 @@ static int vx_pcm_prepare(struct snd_pcm_substream *subs)
 /*
  * operators for PCM playback
  */
-static struct snd_pcm_ops vx_pcm_playback_ops = {
+static const struct snd_pcm_ops vx_pcm_playback_ops = {
 	.open =		vx_pcm_playback_open,
 	.close =	vx_pcm_playback_close,
 	.ioctl =	snd_pcm_lib_ioctl,
@@ -1095,7 +1095,7 @@ static snd_pcm_uframes_t vx_pcm_capture_pointer(struct snd_pcm_substream *subs)
 /*
  * operators for PCM capture
  */
-static struct snd_pcm_ops vx_pcm_capture_ops = {
+static const struct snd_pcm_ops vx_pcm_capture_ops = {
 	.open =		vx_pcm_capture_open,
 	.close =	vx_pcm_capture_close,
 	.ioctl =	snd_pcm_lib_ioctl,
-- 
1.9.1

[toc] | [next] | [standalone]


#1662001 — Re: [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops.

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-09 09:20 +0200
SubjectRe: [PATCH] ALSA: vx: vx_pcm: constify vx_pcm_playback_ops and vx_pcm_capture_ops.
Message-ID<tQmn7-6YU-1@gated-at.bofh.it>
In reply to#1661992
hi,
Sure, Rest other I will send at once shot.

Thanks
~arvind

On Friday 09 June 2017 12:40 PM, Takashi Iwai wrote:
> On Fri, 09 Jun 2017 09:05:43 +0200,
> Arvind Yadav wrote:
>> File size before:
>>     text	   data	    bss	    dec	    hex	filename
>>     7126	    240	      0	   7366	   1cc6	sound/drivers/vx/vx_pcm.o
>>
>> File size After adding 'const':
>>     text	   data	    bss	    dec	    hex	filename
>>     7382	      0	      0	   7382	   1cd6	sound/drivers/vx/vx_pcm.o
>>
>> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> If you're going to send more similar patches like this and previous
> one of pcsp, could you create a patchset containing all and send at
> once?
>
>
> thanks,
>
> Takashi
>
>> ---
>>   sound/drivers/vx/vx_pcm.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/sound/drivers/vx/vx_pcm.c b/sound/drivers/vx/vx_pcm.c
>> index ea7b377..d318a33 100644
>> --- a/sound/drivers/vx/vx_pcm.c
>> +++ b/sound/drivers/vx/vx_pcm.c
>> @@ -873,7 +873,7 @@ static int vx_pcm_prepare(struct snd_pcm_substream *subs)
>>   /*
>>    * operators for PCM playback
>>    */
>> -static struct snd_pcm_ops vx_pcm_playback_ops = {
>> +static const struct snd_pcm_ops vx_pcm_playback_ops = {
>>   	.open =		vx_pcm_playback_open,
>>   	.close =	vx_pcm_playback_close,
>>   	.ioctl =	snd_pcm_lib_ioctl,
>> @@ -1095,7 +1095,7 @@ static snd_pcm_uframes_t vx_pcm_capture_pointer(struct snd_pcm_substream *subs)
>>   /*
>>    * operators for PCM capture
>>    */
>> -static struct snd_pcm_ops vx_pcm_capture_ops = {
>> +static const struct snd_pcm_ops vx_pcm_capture_ops = {
>>   	.open =		vx_pcm_capture_open,
>>   	.close =	vx_pcm_capture_close,
>>   	.ioctl =	snd_pcm_lib_ioctl,
>> -- 
>> 1.9.1
>>
>>

[toc] | [prev] | [next] | [standalone]


#1662003

FromTakashi Iwai <tiwai@suse.de>
Date2017-06-09 09:20 +0200
Message-ID<tQmn7-6YU-3@gated-at.bofh.it>
In reply to#1661992
On Fri, 09 Jun 2017 09:05:43 +0200,
Arvind Yadav wrote:
> 
> File size before:
>    text	   data	    bss	    dec	    hex	filename
>    7126	    240	      0	   7366	   1cc6	sound/drivers/vx/vx_pcm.o
> 
> File size After adding 'const':
>    text	   data	    bss	    dec	    hex	filename
>    7382	      0	      0	   7382	   1cd6	sound/drivers/vx/vx_pcm.o
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

If you're going to send more similar patches like this and previous
one of pcsp, could you create a patchset containing all and send at
once?


thanks,

Takashi

> ---
>  sound/drivers/vx/vx_pcm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/drivers/vx/vx_pcm.c b/sound/drivers/vx/vx_pcm.c
> index ea7b377..d318a33 100644
> --- a/sound/drivers/vx/vx_pcm.c
> +++ b/sound/drivers/vx/vx_pcm.c
> @@ -873,7 +873,7 @@ static int vx_pcm_prepare(struct snd_pcm_substream *subs)
>  /*
>   * operators for PCM playback
>   */
> -static struct snd_pcm_ops vx_pcm_playback_ops = {
> +static const struct snd_pcm_ops vx_pcm_playback_ops = {
>  	.open =		vx_pcm_playback_open,
>  	.close =	vx_pcm_playback_close,
>  	.ioctl =	snd_pcm_lib_ioctl,
> @@ -1095,7 +1095,7 @@ static snd_pcm_uframes_t vx_pcm_capture_pointer(struct snd_pcm_substream *subs)
>  /*
>   * operators for PCM capture
>   */
> -static struct snd_pcm_ops vx_pcm_capture_ops = {
> +static const struct snd_pcm_ops vx_pcm_capture_ops = {
>  	.open =		vx_pcm_capture_open,
>  	.close =	vx_pcm_capture_close,
>  	.ioctl =	snd_pcm_lib_ioctl,
> -- 
> 1.9.1
> 
> 

[toc] | [prev] | [next] | [standalone]


#1662019

FromTakashi Iwai <tiwai@suse.de>
Date2017-06-09 09:30 +0200
Message-ID<tQmwO-72q-19@gated-at.bofh.it>
In reply to#1661992
On Fri, 09 Jun 2017 09:05:43 +0200,
Arvind Yadav wrote:
> 
> File size before:
>    text	   data	    bss	    dec	    hex	filename
>    7126	    240	      0	   7366	   1cc6	sound/drivers/vx/vx_pcm.o
> 
> File size After adding 'const':
>    text	   data	    bss	    dec	    hex	filename
>    7382	      0	      0	   7382	   1cd6	sound/drivers/vx/vx_pcm.o
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

Applied, thanks.


Takashi

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web