drivers/mfd: Storage class should be before const qualifier
Subsystems (3)
PATCH 1/1 drivers/mfd: 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.
--- drivers/mfd/t7l66xb.c | 4 ++-- drivers/mfd/tc6393xb.c | 2 +- drivers/mfd/twl4030-irq.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/mfd/t7l66xb.c +2 -2
@@ -108,7 +108,7 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc)/*--------------------------------------------------------------------------*/ -const static struct resource t7l66xb_mmc_resources[] = { +static const struct resource t7l66xb_mmc_resources[] = { { .start =0x800 , .end =0x9ff ,
@@ -126,7 +126,7 @@ const static struct resource t7l66xb_mmc_resources[] = { }, }; -const static struct resource t7l66xb_nand_resources[] = { +static const struct resource t7l66xb_nand_resources[] = { { .start =0xc00 , .end =0xc07 ,
drivers/mfd/tc6393xb.c +1 -1
@@ -172,7 +172,7 @@ static struct resource __devinitdata tc6393xb_mmc_resources[] = { }, }; -const static struct resource tc6393xb_ohci_resources[] = { +static const struct resource tc6393xb_ohci_resources[] = { { .start =0x3000 , .end =0x31ff ,
drivers/mfd/twl4030-irq.c +1 -1
@@ -182,7 +182,7 @@ static int twl4030_irq_thread(void *data)long irq = (long )data;struct irq_desc *desc =irq_to_desc (irq);static unsigned i2c_errors; -const static unsigned max_i2c_errors =100 ; +static const unsigned max_i2c_errors =100 ;if (!desc) {pr_err ("twl4030: Invalid IRQ: %ld\n" , irq);
Signature · 1 line
1.5.6.5
Re: [PATCH] drivers/mfd: Storage class should be before const
Quoted 53 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]>--- drivers/mfd/t7l66xb.c | 4 ++-- drivers/mfd/tc6393xb.c | 2 +- drivers/mfd/twl4030-irq.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/mfd/t7l66xb.c +2
-2@@ -108,7 +108,7 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc)/*--------------------------------------------------------------------------*/ -const static struct resource t7l66xb_mmc_resources[] = { +static const struct resource t7l66xb_mmc_resources[] = { { .start =0x800 , .end =0x9ff ,@@ -126,7 +126,7 @@ const static struct resource t7l66xb_mmc_resources[] = { }, }; -const static struct resource t7l66xb_nand_resources[] = { +static const struct resource t7l66xb_nand_resources[] = { { .start =0xc00 , .end =0xc07 ,drivers/mfd/tc6393xb.c +1
-1@@ -172,7 +172,7 @@ static struct resource __devinitdata tc6393xb_mmc_resources[] = { }, }; -const static struct resource tc6393xb_ohci_resources[] = { +static const struct resource tc6393xb_ohci_resources[] = { { .start =0x3000 , .end =0x31ff ,drivers/mfd/twl4030-irq.c +0
-0
drivers/mfd/twl4030-irq.c static int twl4030_irq_thread(void *data) · line 188
Quoted 8 lines
drivers/mfd/twl4030-irq.c +1
-1@@ -182,7 +182,7 @@ static int twl4030_irq_thread(void *data)long irq = (long )data;struct irq_desc *desc =irq_to_desc (irq);static unsigned i2c_errors; -const static unsigned max_i2c_errors =100 ; +static const unsigned max_i2c_errors =100 ;if (!desc) {pr_err ("twl4030: Invalid IRQ: %ld\n" , irq);
This doesn't seem to be picked by anyone for current -next/-mmotm, I have applied it to trivial tree. Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs
Re: [PATCH] drivers/mfd: Storage class should be before const
In reply to Tobias KlauserQuoted 61 lines · Jiri Kosina
Quoted 59 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]>--- drivers/mfd/t7l66xb.c | 4 ++-- drivers/mfd/tc6393xb.c | 2 +- drivers/mfd/twl4030-irq.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)drivers/mfd/t7l66xb.c +2
-2@@ -108,7 +108,7 @@ static int t7l66xb_mmc_disable(struct platform_device *mmc)/*--------------------------------------------------------------------------*/ -const static struct resource t7l66xb_mmc_resources[] = { +static const struct resource t7l66xb_mmc_resources[] = { { .start =0x800 , .end =0x9ff ,@@ -126,7 +126,7 @@ const static struct resource t7l66xb_mmc_resources[] = { }, }; -const static struct resource t7l66xb_nand_resources[] = { +static const struct resource t7l66xb_nand_resources[] = { { .start =0xc00 , .end =0xc07 ,drivers/mfd/tc6393xb.c +1
-1@@ -172,7 +172,7 @@ static struct resource __devinitdata tc6393xb_mmc_resources[] = { }, }; -const static struct resource tc6393xb_ohci_resources[] = { +static const struct resource tc6393xb_ohci_resources[] = { { .start =0x3000 , .end =0x31ff ,drivers/mfd/twl4030-irq.c +1
-1@@ -182,7 +182,7 @@ static int twl4030_irq_thread(void *data)long irq = (long )data;struct irq_desc *desc =irq_to_desc (irq);static unsigned i2c_errors; -const static unsigned max_i2c_errors =100 ; +static const unsigned max_i2c_errors =100 ;
Quoted 5 lines
drivers/mfd/twl4030-irq.c static int twl4030_irq_thread(void *data) · line 188
Quoted 2 lines
drivers/mfd/twl4030-irq.c +0
-0if (!desc) {pr_err ("twl4030: Invalid IRQ: %ld\n" , irq);This doesn't seem to be picked by anyone for current -next/-mmotm, I have applied it to trivial tree. Thanks,
I'm queueing this one into my mfd for-next branch. I'm ok if you push it upstream before the next merge window though.
Cheers,
Samuel.
Quoted 3 lines
Signature · 2 lines
Jiri Kosina SUSE Labs
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/
Re: [PATCH] drivers/mfd: Storage class should be before const
In reply to Tobias KlauserQuoted 9 lines · Samuel Ortiz
Quoted 9 lines
Quoted 9 lines
drivers/mfd/twl4030-irq.c +1
-1@@ -182,7 +182,7 @@ static int twl4030_irq_thread(void *data)long irq = (long )data;struct irq_desc *desc =irq_to_desc (irq);static unsigned i2c_errors; -const static unsigned max_i2c_errors =100 ; +static const unsigned max_i2c_errors =100 ;
Quoted 7 lines
Quoted 5 lines
drivers/mfd/twl4030-irq.c static int twl4030_irq_thread(void *data) · line 188
Quoted 2 lines
drivers/mfd/twl4030-irq.c +0
-0if (!desc) {pr_err ("twl4030: Invalid IRQ: %ld\n" , irq);This doesn't seem to be picked by anyone for current -next/-mmotm, I have applied it to trivial tree. Thanks,
I'm queueing this one into my mfd for-next branch. I'm ok if you push it upstream before the next merge window though.
No problem, I have dropped it from trivial tree, please take it through yours.
Thanks,
Signature · 2 lines
Jiri Kosina SUSE Labs