Skip to contentSkip to conversation

drivers/char/bsr.c: Storage class should be before const

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

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

PATCH 1/1 drivers/char/bsr.c: Storage class should be before const

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/char/bsr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/bsr.c +1 -1
index f6094ae..140ea10 100644
@@ -140,7 +140,7 @@ static int bsr_open(struct inode * inode, struct file * filp)
 	return 0;
 }
 
-const static struct file_operations bsr_fops = {
+static const struct file_operations bsr_fops = {
 	.owner = THIS_MODULE,
 	.mmap  = bsr_mmap,
 	.open  = bsr_open,
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.

---
 drivers/char/bsr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/bsr.c +0 -0
index f6094ae..140ea10 100644

drivers/char/bsr.c static int bsr_open(struct inode * inode, struct file * filp) · line 146

Quoted 8 lines
drivers/char/bsr.c +1 -1
@@ -140,7 +140,7 @@ static int bsr_open(struct inode * inode, struct file * filp)
 	return 0;
 }
 
-const static struct file_operations bsr_fops = {
+static const struct file_operations bsr_fops = {
 	.owner = THIS_MODULE,
 	.mmap  = bsr_mmap,
 	.open  = bsr_open,

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