All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wusb: Storage class should be before const qualifier
@ 2009-02-09 22:07 Tobias Klauser
  2009-02-16 12:58 ` Jiri Kosina
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tobias Klauser @ 2009-02-09 22:07 UTC (permalink / raw)
  To: kernel-janitors

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 <tklauser@distanz.ch>
---
 include/linux/usb/wusb.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/include/linux/usb/wusb.h b/include/linux/usb/wusb.h
index 5f401b6..429c631 100644
--- a/include/linux/usb/wusb.h
+++ b/include/linux/usb/wusb.h
@@ -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)
 
-- 
1.5.6.5


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

* Re: [PATCH] wusb: Storage class should be before const qualifier
  2009-02-09 22:07 [PATCH] wusb: Storage class should be before const qualifier Tobias Klauser
@ 2009-02-16 12:58 ` Jiri Kosina
  2009-02-16 14:04 ` David Vrabel
  2009-02-16 14:11 ` Jiri Kosina
  2 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2009-02-16 12:58 UTC (permalink / raw)
  To: kernel-janitors

On Mon, 9 Feb 2009, Tobias Klauser wrote:

> 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 <tklauser@distanz.ch>
> ---
>  include/linux/usb/wusb.h |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/usb/wusb.h b/include/linux/usb/wusb.h
> index 5f401b6..429c631 100644
> --- a/include/linux/usb/wusb.h
> +++ b/include/linux/usb/wusb.h
> @@ -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,

-- 
Jiri Kosina
SUSE Labs

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

* Re: [PATCH] wusb: Storage class should be before const qualifier
  2009-02-09 22:07 [PATCH] wusb: Storage class should be before const qualifier Tobias Klauser
  2009-02-16 12:58 ` Jiri Kosina
@ 2009-02-16 14:04 ` David Vrabel
  2009-02-16 14:11 ` Jiri Kosina
  2 siblings, 0 replies; 4+ messages in thread
From: David Vrabel @ 2009-02-16 14:04 UTC (permalink / raw)
  To: kernel-janitors

Jiri Kosina wrote:
> On Mon, 9 Feb 2009, Tobias Klauser wrote:
> 
>> 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 <tklauser@distanz.ch>
>> ---
>>  include/linux/usb/wusb.h |    3 +--
>>  1 files changed, 1 insertions(+), 2 deletions(-)
>>
>> diff --git a/include/linux/usb/wusb.h b/include/linux/usb/wusb.h
>> index 5f401b6..429c631 100644
>> --- a/include/linux/usb/wusb.h
>> +++ b/include/linux/usb/wusb.h
>> @@ -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.

Through trivial is best I think, thanks.  You can add

Acked-by: David Vrabel <david.vrabel@csr.com>

if you wish.

David
-- 
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/

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

* Re: [PATCH] wusb: Storage class should be before const qualifier
  2009-02-09 22:07 [PATCH] wusb: Storage class should be before const qualifier Tobias Klauser
  2009-02-16 12:58 ` Jiri Kosina
  2009-02-16 14:04 ` David Vrabel
@ 2009-02-16 14:11 ` Jiri Kosina
  2 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2009-02-16 14:11 UTC (permalink / raw)
  To: kernel-janitors

On Mon, 16 Feb 2009, David Vrabel wrote:

> >> diff --git a/include/linux/usb/wusb.h b/include/linux/usb/wusb.h
> >> index 5f401b6..429c631 100644
> >> --- a/include/linux/usb/wusb.h
> >> +++ b/include/linux/usb/wusb.h
> >> @@ -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.
> Through trivial is best I think, thanks.  You can add
> Acked-by: David Vrabel <david.vrabel@csr.com>
> if you wish.

Done, thanks.

-- 
Jiri Kosina
SUSE Labs

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

end of thread, other threads:[~2009-02-16 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-09 22:07 [PATCH] wusb: Storage class should be before const qualifier Tobias Klauser
2009-02-16 12:58 ` Jiri Kosina
2009-02-16 14:04 ` David Vrabel
2009-02-16 14:11 ` Jiri Kosina

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.