]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ceph: Storage class should be before const qualifier
authorTobias Klauser <tklauser@distanz.ch>
Thu, 20 May 2010 08:40:19 +0000 (10:40 +0200)
committerSage Weil <sage@newdream.net>
Fri, 21 May 2010 22:01:21 +0000 (15:01 -0700)
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>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c
fs/ceph/mon_client.c
fs/ceph/osd_client.c

index 1b786cf2c7af962b011a87ad6d4a4201f2b887e8..885aa5710cfd541997fa9764dffba33b0e8ad644 100644 (file)
@@ -40,7 +40,7 @@
 static void __wake_requests(struct ceph_mds_client *mdsc,
                            struct list_head *head);
 
-const static struct ceph_connection_operations mds_con_ops;
+static const struct ceph_connection_operations mds_con_ops;
 
 
 /*
@@ -3120,7 +3120,7 @@ static int invalidate_authorizer(struct ceph_connection *con)
        return ceph_monc_validate_auth(&mdsc->client->monc);
 }
 
-const static struct ceph_connection_operations mds_con_ops = {
+static const struct ceph_connection_operations mds_con_ops = {
        .get = con_get,
        .put = con_put,
        .dispatch = dispatch,
index 61cb11701f109e1fd923906914791b7db954d1c8..478729a6ffce68253d4a359afa7e719a882e5f9a 100644 (file)
@@ -28,7 +28,7 @@
  * resend any outstanding requests.
  */
 
-const static struct ceph_connection_operations mon_con_ops;
+static const struct ceph_connection_operations mon_con_ops;
 
 static int __validate_auth(struct ceph_mon_client *monc);
 
@@ -861,7 +861,7 @@ out:
        mutex_unlock(&monc->mutex);
 }
 
-const static struct ceph_connection_operations mon_con_ops = {
+static const struct ceph_connection_operations mon_con_ops = {
        .get = ceph_con_get,
        .put = ceph_con_put,
        .dispatch = dispatch,
index 16141e6e8b73a59c0a98c37f6a39d3b9fe762217..afa7bb3895c4e637611f20e4d3ebd5938c2facf7 100644 (file)
@@ -16,7 +16,7 @@
 #define OSD_OP_FRONT_LEN       4096
 #define OSD_OPREPLY_FRONT_LEN  512
 
-const static struct ceph_connection_operations osd_con_ops;
+static const struct ceph_connection_operations osd_con_ops;
 static int __kick_requests(struct ceph_osd_client *osdc,
                          struct ceph_osd *kickosd);
 
@@ -1524,7 +1524,7 @@ static int invalidate_authorizer(struct ceph_connection *con)
        return ceph_monc_validate_auth(&osdc->client->monc);
 }
 
-const static struct ceph_connection_operations osd_con_ops = {
+static const struct ceph_connection_operations osd_con_ops = {
        .get = get_osd_con,
        .put = put_osd_con,
        .dispatch = dispatch,