Skip to content

Commit

Permalink
ceph: Storage class should be before const qualifier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tobias Klauser authored and Sage Weil committed May 21, 2010
1 parent 34d2376 commit 9e32789
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;


/*
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions fs/ceph/mon_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -861,7 +861,7 @@ static void mon_fault(struct ceph_connection *con)
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,
Expand Down
4 changes: 2 additions & 2 deletions fs/ceph/osd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9e32789

Please sign in to comment.