* [PATCH] staging - pohmelfs: Storage class should be before const qualifier
@ 2009-04-26 13:06 Tobias Klauser
2009-04-26 18:01 ` Evgeniy Polyakov
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2009-04-26 13:06 UTC (permalink / raw)
To: gregkh, zbr; +Cc: linux-kernel, 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 <tklauser@distanz.ch>
---
drivers/staging/pohmelfs/inode.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c
index b2eaf90..779445e 100644
--- a/drivers/staging/pohmelfs/inode.c
+++ b/drivers/staging/pohmelfs/inode.c
@@ -943,7 +943,7 @@ err_out_unlock:
return ret;
}
-const static struct file_operations pohmelfs_file_ops = {
+static const struct file_operations pohmelfs_file_ops = {
.open = generic_file_open,
.fsync = pohmelfs_fsync,
--
1.6.2.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging - pohmelfs: Storage class should be before const qualifier
2009-04-26 13:06 [PATCH] staging - pohmelfs: Storage class should be before const qualifier Tobias Klauser
@ 2009-04-26 18:01 ` Evgeniy Polyakov
0 siblings, 0 replies; 2+ messages in thread
From: Evgeniy Polyakov @ 2009-04-26 18:01 UTC (permalink / raw)
To: Tobias Klauser; +Cc: gregkh, linux-kernel
On Sun, Apr 26, 2009 at 03:06:09PM +0200, Tobias Klauser (tklauser@distanz.ch) 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>
Looks good, thank you.
Greg, please put it into the queue.
> ---
> drivers/staging/pohmelfs/inode.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c
> index b2eaf90..779445e 100644
> --- a/drivers/staging/pohmelfs/inode.c
> +++ b/drivers/staging/pohmelfs/inode.c
> @@ -943,7 +943,7 @@ err_out_unlock:
> return ret;
> }
>
> -const static struct file_operations pohmelfs_file_ops = {
> +static const struct file_operations pohmelfs_file_ops = {
> .open = generic_file_open,
> .fsync = pohmelfs_fsync,
>
> --
> 1.6.2.4
--
Evgeniy Polyakov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-26 18:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-26 13:06 [PATCH] staging - pohmelfs: Storage class should be before const qualifier Tobias Klauser
2009-04-26 18:01 ` Evgeniy Polyakov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).