ceph: move static keyword to the front of declarations
authorKrzysztof Wilczynski <kw@linux.com>
Sat, 31 Aug 2019 21:57:12 +0000 (23:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:25 +0000 (12:06 +0200)
Move the static keyword to the front of declarations of
snap_handle_length, handle_length and connected_handle_length,
and resolve the following compiler warnings that can be seen
when building with warnings enabled (W=1):

fs/ceph/export.c:38:2: warning:
  ‘static’ is not at beginning of declaration [-Wold-style-declaration]

fs/ceph/export.c:88:2: warning:
  ‘static’ is not at beginning of declaration [-Wold-style-declaration]

fs/ceph/export.c:90:2: warning:
  ‘static’ is not at beginning of declaration [-Wold-style-declaration]

Signed-off-by: Krzysztof Wilczynski <kw@linux.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/export.c

index 020d39a85ecc12ab363b3a93ce6b84f120a22d9b..b6bfa94332c304eb6e608a19f5bb2f581e7f3d5c 100644 (file)
@@ -35,7 +35,7 @@ struct ceph_nfs_snapfh {
 static int ceph_encode_snapfh(struct inode *inode, u32 *rawfh, int *max_len,
                              struct inode *parent_inode)
 {
-       const static int snap_handle_length =
+       static const int snap_handle_length =
                sizeof(struct ceph_nfs_snapfh) >> 2;
        struct ceph_nfs_snapfh *sfh = (void *)rawfh;
        u64 snapid = ceph_snap(inode);
@@ -85,9 +85,9 @@ out:
 static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len,
                          struct inode *parent_inode)
 {
-       const static int handle_length =
+       static const int handle_length =
                sizeof(struct ceph_nfs_fh) >> 2;
-       const static int connected_handle_length =
+       static const int connected_handle_length =
                sizeof(struct ceph_nfs_confh) >> 2;
        int type;