]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ALSA: usb-line6: use the same declaration as definition in header for MIDI manufactur...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 25 Sep 2016 13:00:20 +0000 (22:00 +0900)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:44:19 +0000 (16:44 +0000)
commit61b0028b4a08cb4f3139aa7f97600656f28eb51e
treefee2deaea65497dabe7793a92e65567ad9a496e3
parent4549d783d7c06c62275bed644d8c8c42f69a694f
ALSA: usb-line6: use the same declaration as definition in header for MIDI manufacturer ID

BugLink: http://bugs.launchpad.net/bugs/1634153
commit 8da08ca03b73593d5299893bf29fc08569c3fb5f upstream.

Currently, usb-line6 module exports an array of MIDI manufacturer ID and
usb-pod module uses it. However, the declaration is not the definition in
common header. The difference is explicit length of array. Although
compiler calculates it and everything goes well, it's better to use the
same representation between definition and declaration.

This commit fills the length of array for usb-line6 module. As a small
good sub-effect, this commit suppress below warnings from static analysis
by sparse v0.5.0.

sound/usb/line6/driver.c:274:43: error: cannot size expression
sound/usb/line6/driver.c:275:16: error: cannot size expression
sound/usb/line6/driver.c:276:16: error: cannot size expression
sound/usb/line6/driver.c:277:16: error: cannot size expression

Fixes: 705ececd1c60 ("Staging: add line6 usb driver")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
sound/usb/line6/driver.c