drivers/char/bsr.c: Storage class should be before const
Subsystems (2)
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.
Signed-off-by Tobias Klauser <[email protected]>
--- drivers/char/bsr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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,
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]>--- drivers/char/bsr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/char/bsr.c +0
-0
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