diff options
Diffstat (limited to 'drivers/block/drbd/drbd_strings.c')
-rw-r--r-- | drivers/block/drbd/drbd_strings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/block/drbd/drbd_strings.c b/drivers/block/drbd/drbd_strings.c index 80b0f63c7075..0eeab14776e9 100644 --- a/drivers/block/drbd/drbd_strings.c +++ b/drivers/block/drbd/drbd_strings.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <linux/drbd.h> | 26 | #include <linux/drbd.h> |
27 | #include "drbd_strings.h" | 27 | #include "drbd_strings.h" |
28 | 28 | ||
29 | static const char *drbd_conn_s_names[] = { | 29 | static const char * const drbd_conn_s_names[] = { |
30 | [C_STANDALONE] = "StandAlone", | 30 | [C_STANDALONE] = "StandAlone", |
31 | [C_DISCONNECTING] = "Disconnecting", | 31 | [C_DISCONNECTING] = "Disconnecting", |
32 | [C_UNCONNECTED] = "Unconnected", | 32 | [C_UNCONNECTED] = "Unconnected", |
@@ -53,13 +53,13 @@ static const char *drbd_conn_s_names[] = { | |||
53 | [C_BEHIND] = "Behind", | 53 | [C_BEHIND] = "Behind", |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static const char *drbd_role_s_names[] = { | 56 | static const char * const drbd_role_s_names[] = { |
57 | [R_PRIMARY] = "Primary", | 57 | [R_PRIMARY] = "Primary", |
58 | [R_SECONDARY] = "Secondary", | 58 | [R_SECONDARY] = "Secondary", |
59 | [R_UNKNOWN] = "Unknown" | 59 | [R_UNKNOWN] = "Unknown" |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static const char *drbd_disk_s_names[] = { | 62 | static const char * const drbd_disk_s_names[] = { |
63 | [D_DISKLESS] = "Diskless", | 63 | [D_DISKLESS] = "Diskless", |
64 | [D_ATTACHING] = "Attaching", | 64 | [D_ATTACHING] = "Attaching", |
65 | [D_FAILED] = "Failed", | 65 | [D_FAILED] = "Failed", |
@@ -71,7 +71,7 @@ static const char *drbd_disk_s_names[] = { | |||
71 | [D_UP_TO_DATE] = "UpToDate", | 71 | [D_UP_TO_DATE] = "UpToDate", |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static const char *drbd_state_sw_errors[] = { | 74 | static const char * const drbd_state_sw_errors[] = { |
75 | [-SS_TWO_PRIMARIES] = "Multiple primaries not allowed by config", | 75 | [-SS_TWO_PRIMARIES] = "Multiple primaries not allowed by config", |
76 | [-SS_NO_UP_TO_DATE_DISK] = "Need access to UpToDate data", | 76 | [-SS_NO_UP_TO_DATE_DISK] = "Need access to UpToDate data", |
77 | [-SS_NO_LOCAL_DISK] = "Can not resync without local disk", | 77 | [-SS_NO_LOCAL_DISK] = "Can not resync without local disk", |