All of lore.kernel.org
 help / color / mirror / Atom feed
* [sound:for-linus 117/119] sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
@ 2021-05-22 18:08 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-05-22 18:08 UTC (permalink / raw)
  To: Geoffrey D. Bennett
  Cc: kbuild-all, alsa-devel, Takashi Iwai, Jaroslav Kysela,
	Joe Perches, Alexander Tsoy, Mark Brown, Greg Kroah-Hartman,
	Pierre-Louis Bossart, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
head:   9ebaef0540a981093bce5df15af32354d32391d9
commit: 265d1a90e4fb6d3264d8122fbd10760e5e733be6 [117/119] ALSA: usb-audio: scarlett2: Improve driver startup messages
config: x86_64-randconfig-s021-20210522 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=265d1a90e4fb6d3264d8122fbd10760e5e733be6
        git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
        git fetch --no-tags sound for-linus
        git checkout 265d1a90e4fb6d3264d8122fbd10760e5e733be6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39832 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [sound:for-linus 117/119] sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
@ 2021-05-22 18:08 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-05-22 18:08 UTC (permalink / raw)
  To: Geoffrey D. Bennett
  Cc: alsa-devel, kbuild-all, Takashi Iwai, Greg Kroah-Hartman,
	Pierre-Louis Bossart, Alexander Tsoy, Mark Brown, Joe Perches,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
head:   9ebaef0540a981093bce5df15af32354d32391d9
commit: 265d1a90e4fb6d3264d8122fbd10760e5e733be6 [117/119] ALSA: usb-audio: scarlett2: Improve driver startup messages
config: x86_64-randconfig-s021-20210522 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=265d1a90e4fb6d3264d8122fbd10760e5e733be6
        git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
        git fetch --no-tags sound for-linus
        git checkout 265d1a90e4fb6d3264d8122fbd10760e5e733be6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39832 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [sound:for-linus 117/119] sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
@ 2021-05-22 18:08 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-05-22 18:08 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
head:   9ebaef0540a981093bce5df15af32354d32391d9
commit: 265d1a90e4fb6d3264d8122fbd10760e5e733be6 [117/119] ALSA: usb-audio: scarlett2: Improve driver startup messages
config: x86_64-randconfig-s021-20210522 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=265d1a90e4fb6d3264d8122fbd10760e5e733be6
        git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
        git fetch --no-tags sound for-linus
        git checkout 265d1a90e4fb6d3264d8122fbd10760e5e733be6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39832 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
  2021-05-22 18:08 ` kernel test robot
  (?)
@ 2021-05-22 18:09   ` kernel test robot
  -1 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-05-22 18:09 UTC (permalink / raw)
  To: Geoffrey D. Bennett
  Cc: kbuild-all, alsa-devel, Takashi Iwai, Jaroslav Kysela,
	Joe Perches, Alexander Tsoy, Pierre-Louis Bossart,
	Greg Kroah-Hartman, linux-kernel

sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?

Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 mixer_scarlett_gen2.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/usb/mixer_scarlett_gen2.c b/sound/usb/mixer_scarlett_gen2.c
index 3ad8f61a2095f..4caf379d5b991 100644
--- a/sound/usb/mixer_scarlett_gen2.c
+++ b/sound/usb/mixer_scarlett_gen2.c
@@ -1997,8 +1997,8 @@ static int scarlett2_mixer_status_create(struct usb_mixer_interface *mixer)
 	return usb_submit_urb(mixer->urb, GFP_KERNEL);
 }
 
-int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
-				      const struct scarlett2_device_info *info)
+static int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
+					     const struct scarlett2_device_info *info)
 {
 	int err;
 

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
@ 2021-05-22 18:09   ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-05-22 18:09 UTC (permalink / raw)
  To: Geoffrey D. Bennett
  Cc: alsa-devel, kbuild-all, Takashi Iwai, Greg Kroah-Hartman,
	Pierre-Louis Bossart, Alexander Tsoy, Joe Perches, linux-kernel

sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?

Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 mixer_scarlett_gen2.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/usb/mixer_scarlett_gen2.c b/sound/usb/mixer_scarlett_gen2.c
index 3ad8f61a2095f..4caf379d5b991 100644
--- a/sound/usb/mixer_scarlett_gen2.c
+++ b/sound/usb/mixer_scarlett_gen2.c
@@ -1997,8 +1997,8 @@ static int scarlett2_mixer_status_create(struct usb_mixer_interface *mixer)
 	return usb_submit_urb(mixer->urb, GFP_KERNEL);
 }
 
-int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
-				      const struct scarlett2_device_info *info)
+static int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
+					     const struct scarlett2_device_info *info)
 {
 	int err;
 

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
@ 2021-05-22 18:09   ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-05-22 18:09 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?

Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
 mixer_scarlett_gen2.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/usb/mixer_scarlett_gen2.c b/sound/usb/mixer_scarlett_gen2.c
index 3ad8f61a2095f..4caf379d5b991 100644
--- a/sound/usb/mixer_scarlett_gen2.c
+++ b/sound/usb/mixer_scarlett_gen2.c
@@ -1997,8 +1997,8 @@ static int scarlett2_mixer_status_create(struct usb_mixer_interface *mixer)
 	return usb_submit_urb(mixer->urb, GFP_KERNEL);
 }
 
-int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
-				      const struct scarlett2_device_info *info)
+static int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
+					     const struct scarlett2_device_info *info)
 {
 	int err;
 

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
  2021-05-22 18:09   ` kernel test robot
  (?)
@ 2021-05-23  8:32     ` Takashi Iwai
  -1 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2021-05-23  8:32 UTC (permalink / raw)
  To: kernel test robot
  Cc: Geoffrey D. Bennett, kbuild-all, alsa-devel, Jaroslav Kysela,
	Joe Perches, Alexander Tsoy, Pierre-Louis Bossart,
	Greg Kroah-Hartman, linux-kernel

On Sat, 22 May 2021 20:09:00 +0200,
kernel test robot wrote:
> 
> sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
> 
> Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>

Applied now.  Thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
@ 2021-05-23  8:32     ` Takashi Iwai
  0 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2021-05-23  8:32 UTC (permalink / raw)
  To: kernel test robot
  Cc: alsa-devel, kbuild-all, Greg Kroah-Hartman, Pierre-Louis Bossart,
	Alexander Tsoy, Joe Perches, Geoffrey D. Bennett, linux-kernel

On Sat, 22 May 2021 20:09:00 +0200,
kernel test robot wrote:
> 
> sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
> 
> Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>

Applied now.  Thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
@ 2021-05-23  8:32     ` Takashi Iwai
  0 siblings, 0 replies; 12+ messages in thread
From: Takashi Iwai @ 2021-05-23  8:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

On Sat, 22 May 2021 20:09:00 +0200,
kernel test robot wrote:
> 
> sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
> 
> Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>

Applied now.  Thanks.


Takashi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
  2021-05-22 18:09   ` kernel test robot
                     ` (2 preceding siblings ...)
  (?)
@ 2021-05-23  9:03   ` Geoffrey D. Bennett
  2021-05-23  9:10     ` Takashi Iwai
  -1 siblings, 1 reply; 12+ messages in thread
From: Geoffrey D. Bennett @ 2021-05-23  9:03 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hi Takashi,

This patch seems legitimate to me (although I would adjust whitespace
so the second line doesn't go over 80 chars). Do you want to just
apply it as-is, or do you want me to send a second version of my patch
without this problem or send a new patch similar to this one?

Also sorry I don't know what the etiquette is in cc's for this message
:(. The message from kernel test robot was sent to a lot of people who
I don't think would be interested in this, so I trimmed the cc list
down.

Thanks,
Geoffrey.

On Sun, May 23, 2021 at 02:09:00AM +0800, kernel test robot wrote:
> sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
> 
> Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: kernel test robot <lkp@intel.com>
> ---
>  mixer_scarlett_gen2.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/usb/mixer_scarlett_gen2.c b/sound/usb/mixer_scarlett_gen2.c
> index 3ad8f61a2095f..4caf379d5b991 100644
> --- a/sound/usb/mixer_scarlett_gen2.c
> +++ b/sound/usb/mixer_scarlett_gen2.c
> @@ -1997,8 +1997,8 @@ static int scarlett2_mixer_status_create(struct usb_mixer_interface *mixer)
>  	return usb_submit_urb(mixer->urb, GFP_KERNEL);
>  }
>  
> -int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
> -				      const struct scarlett2_device_info *info)
> +static int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
> +					     const struct scarlett2_device_info *info)
>  {
>  	int err;
>  

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
  2021-05-23  9:03   ` Geoffrey D. Bennett
@ 2021-05-23  9:10     ` Takashi Iwai
  2021-05-23  9:13       ` Geoffrey D. Bennett
  0 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2021-05-23  9:10 UTC (permalink / raw)
  To: Geoffrey D. Bennett; +Cc: alsa-devel

On Sun, 23 May 2021 11:03:26 +0200,
Geoffrey D. Bennett wrote:
> 
> Hi Takashi,
> 
> This patch seems legitimate to me (although I would adjust whitespace
> so the second line doesn't go over 80 chars). Do you want to just
> apply it as-is, or do you want me to send a second version of my patch
> without this problem or send a new patch similar to this one?

As it's an obviously correct patch, I already applied as is.


thanks,

Takashi

> 
> Also sorry I don't know what the etiquette is in cc's for this message
> :(. The message from kernel test robot was sent to a lot of people who
> I don't think would be interested in this, so I trimmed the cc list
> down.
> 
> Thanks,
> Geoffrey.
> 
> On Sun, May 23, 2021 at 02:09:00AM +0800, kernel test robot wrote:
> > sound/usb/mixer_scarlett_gen2.c:2000:5: warning: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static?
> > 
> > Fixes: 265d1a90e4fb ("ALSA: usb-audio: scarlett2: Improve driver startup messages")
> > Reported-by: kernel test robot <lkp@intel.com>
> > Signed-off-by: kernel test robot <lkp@intel.com>
> > ---
> >  mixer_scarlett_gen2.c |    4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/sound/usb/mixer_scarlett_gen2.c b/sound/usb/mixer_scarlett_gen2.c
> > index 3ad8f61a2095f..4caf379d5b991 100644
> > --- a/sound/usb/mixer_scarlett_gen2.c
> > +++ b/sound/usb/mixer_scarlett_gen2.c
> > @@ -1997,8 +1997,8 @@ static int scarlett2_mixer_status_create(struct usb_mixer_interface *mixer)
> >  	return usb_submit_urb(mixer->urb, GFP_KERNEL);
> >  }
> >  
> > -int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
> > -				      const struct scarlett2_device_info *info)
> > +static int snd_scarlett_gen2_controls_create(struct usb_mixer_interface *mixer,
> > +					     const struct scarlett2_device_info *info)
> >  {
> >  	int err;
> >  
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
  2021-05-23  9:10     ` Takashi Iwai
@ 2021-05-23  9:13       ` Geoffrey D. Bennett
  0 siblings, 0 replies; 12+ messages in thread
From: Geoffrey D. Bennett @ 2021-05-23  9:13 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

On Sun, May 23, 2021 at 11:10:22AM +0200, Takashi Iwai wrote:
> On Sun, 23 May 2021 11:03:26 +0200,
> Geoffrey D. Bennett wrote:
> > 
> > Hi Takashi,
> > 
> > This patch seems legitimate to me (although I would adjust whitespace
> > so the second line doesn't go over 80 chars). Do you want to just
> > apply it as-is, or do you want me to send a second version of my patch
> > without this problem or send a new patch similar to this one?
> 
> As it's an obviously correct patch, I already applied as is.

Thank you!

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-05-23  9:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22 18:08 [sound:for-linus 117/119] sound/usb/mixer_scarlett_gen2.c:2000:5: sparse: sparse: symbol 'snd_scarlett_gen2_controls_create' was not declared. Should it be static? kernel test robot
2021-05-22 18:08 ` kernel test robot
2021-05-22 18:08 ` kernel test robot
2021-05-22 18:09 ` [RFC PATCH sound] ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static kernel test robot
2021-05-22 18:09   ` kernel test robot
2021-05-22 18:09   ` kernel test robot
2021-05-23  8:32   ` Takashi Iwai
2021-05-23  8:32     ` Takashi Iwai
2021-05-23  8:32     ` Takashi Iwai
2021-05-23  9:03   ` Geoffrey D. Bennett
2021-05-23  9:10     ` Takashi Iwai
2021-05-23  9:13       ` Geoffrey D. Bennett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.