wusb: Storage class should be before const qualifier
Subsystems (2)
PATCH 1/1 wusb: Storage class should be before const qualifier
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
--- include/linux/usb/wusb.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
include/linux/usb/wusb.h +1 -2
@@ -80,8 +80,7 @@ struct wusb_ckhdid {u8 data[16 ]; } __attribute__((packed)); -const static -struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } }; +static const struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } };#define WUSB_CKHDID_STRSIZE (3 * sizeof(struct wusb_ckhdid) + 1)
Signature · 1 line
1.5.6.5
Quoted 16 lines · Tobias Klauser
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Signed-off-by Tobias Klauser <[email protected]>--- include/linux/usb/wusb.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)include/linux/usb/wusb.h +0
-0
include/linux/usb/wusb.h struct wusb_ckhdid { · line 85
Quoted 8 lines
include/linux/usb/wusb.h +1
-2@@ -80,8 +80,7 @@ struct wusb_ckhdid {u8 data[16 ]; } __attribute__((packed)); -const static -struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } }; +static const struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } };#define WUSB_CKHDID_STRSIZE (3 * sizeof(struct wusb_ckhdid) + 1)
David, are you going to take this through wusb tree, or should I take it through trivial tree together with the rest of these patches? I don't seem to see this present in current -next.
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
Quoted 25 lines · Jiri Kosina
Quoted 23 lines · Tobias Klauser
The C99 specification states in section 6.11.5:
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature.
Signed-off-by Tobias Klauser <[email protected]>--- include/linux/usb/wusb.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)include/linux/usb/wusb.h +1
-2@@ -80,8 +80,7 @@ struct wusb_ckhdid {u8 data[16 ]; } __attribute__((packed)); -const static -struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } }; +static const struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } };
Quoted 5 lines
include/linux/usb/wusb.h struct wusb_ckhdid { · line 85
Quoted 1 line
include/linux/usb/wusb.h +0
-0#define WUSB_CKHDID_STRSIZE (3 * sizeof(struct wusb_ckhdid) + 1)David, are you going to take this through wusb tree, or should I take it through trivial tree together with the rest of these patches? I don't seem to see this present in current -next.
Through trivial is best I think, thanks. You can add
if you wish.
David
Signature · 3 lines
David Vrabel, Senior Software Engineer, Drivers CSR, Churchill House, Cambridge Business Park, Tel: +44 (0)1223 692562 Cowley Road, Cambridge, CB4 0WZ http://www.csr.com/
Quoted 12 lines · David Vrabel
Quoted 12 lines
Quoted 12 lines
include/linux/usb/wusb.h +1
-2@@ -80,8 +80,7 @@ struct wusb_ckhdid {u8 data[16 ]; } __attribute__((packed)); -const static -struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } }; +static const struct wusb_ckhdid wusb_ckhdid_zero = { .data = {0 } };
Quoted 8 lines
Quoted 5 lines
include/linux/usb/wusb.h struct wusb_ckhdid { · line 85
Quoted 1 line
include/linux/usb/wusb.h +0
-0#define WUSB_CKHDID_STRSIZE (3 * sizeof(struct wusb_ckhdid) + 1)David, are you going to take this through wusb tree, or should I take it through trivial tree together with the rest of these patches? I don't seem to see this present in current -next.
Through trivial is best I think, thanks. You can add
Acked-by David Vrabel <[email protected]>if you wish.
Done, thanks.
Signature · 2 lines
Jiri Kosina SUSE Labs