Skip to contentSkip to conversation

wusb: Storage class should be before const qualifier

PATCH In review Tobias Klauser 3 participants 4 messages Feb 9, 2009 – Feb 16, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 5f401b6..429c631 100644
@@ -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
#1 lore raw
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.

---
 include/linux/usb/wusb.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
include/linux/usb/wusb.h +0 -0
index 5f401b6..429c631 100644

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
Acked-by on v1 1/1
#2 lore raw
In reply to Tobias Klauser
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.

---
 include/linux/usb/wusb.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
include/linux/usb/wusb.h +1 -2
index 5f401b6..429c631 100644
@@ -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/
#3 lore raw
In reply to Tobias Klauser
Quoted 12 lines · David Vrabel
Quoted 12 lines
Quoted 12 lines
include/linux/usb/wusb.h +1 -2
index 5f401b6..429c631 100644
@@ -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

if you wish.

Done, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs