diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-12-10 18:41:15 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 20:41:02 -0500 |
commit | bc09d141ebb26c0c1ab713c8597ca833be9afee4 (patch) | |
tree | fd5cec60e390bf4bddeef07a4a96b91475cad147 /fs/cifs/smb2misc.c | |
parent | 6b101e2a3ce4d2a0312087598bd1ab4a1db2ac40 (diff) |
fs/cifs: remove obsolete __constant
Replace all __constant_foo to foo() except in smb2status.h (1700 lines to
update).
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Steve French <sfrench@samba.org>
Cc: Jeff Layton <jlayton@poochiereds.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cifs/smb2misc.c')
-rw-r--r-- | fs/cifs/smb2misc.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index 1a08a34838fc..f1cefc9763ed 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c | |||
@@ -67,27 +67,27 @@ check_smb2_hdr(struct smb2_hdr *hdr, __u64 mid) | |||
67 | * indexed by command in host byte order | 67 | * indexed by command in host byte order |
68 | */ | 68 | */ |
69 | static const __le16 smb2_rsp_struct_sizes[NUMBER_OF_SMB2_COMMANDS] = { | 69 | static const __le16 smb2_rsp_struct_sizes[NUMBER_OF_SMB2_COMMANDS] = { |
70 | /* SMB2_NEGOTIATE */ __constant_cpu_to_le16(65), | 70 | /* SMB2_NEGOTIATE */ cpu_to_le16(65), |
71 | /* SMB2_SESSION_SETUP */ __constant_cpu_to_le16(9), | 71 | /* SMB2_SESSION_SETUP */ cpu_to_le16(9), |
72 | /* SMB2_LOGOFF */ __constant_cpu_to_le16(4), | 72 | /* SMB2_LOGOFF */ cpu_to_le16(4), |
73 | /* SMB2_TREE_CONNECT */ __constant_cpu_to_le16(16), | 73 | /* SMB2_TREE_CONNECT */ cpu_to_le16(16), |
74 | /* SMB2_TREE_DISCONNECT */ __constant_cpu_to_le16(4), | 74 | /* SMB2_TREE_DISCONNECT */ cpu_to_le16(4), |
75 | /* SMB2_CREATE */ __constant_cpu_to_le16(89), | 75 | /* SMB2_CREATE */ cpu_to_le16(89), |
76 | /* SMB2_CLOSE */ __constant_cpu_to_le16(60), | 76 | /* SMB2_CLOSE */ cpu_to_le16(60), |
77 | /* SMB2_FLUSH */ __constant_cpu_to_le16(4), | 77 | /* SMB2_FLUSH */ cpu_to_le16(4), |
78 | /* SMB2_READ */ __constant_cpu_to_le16(17), | 78 | /* SMB2_READ */ cpu_to_le16(17), |
79 | /* SMB2_WRITE */ __constant_cpu_to_le16(17), | 79 | /* SMB2_WRITE */ cpu_to_le16(17), |
80 | /* SMB2_LOCK */ __constant_cpu_to_le16(4), | 80 | /* SMB2_LOCK */ cpu_to_le16(4), |
81 | /* SMB2_IOCTL */ __constant_cpu_to_le16(49), | 81 | /* SMB2_IOCTL */ cpu_to_le16(49), |
82 | /* BB CHECK this ... not listed in documentation */ | 82 | /* BB CHECK this ... not listed in documentation */ |
83 | /* SMB2_CANCEL */ __constant_cpu_to_le16(0), | 83 | /* SMB2_CANCEL */ cpu_to_le16(0), |
84 | /* SMB2_ECHO */ __constant_cpu_to_le16(4), | 84 | /* SMB2_ECHO */ cpu_to_le16(4), |
85 | /* SMB2_QUERY_DIRECTORY */ __constant_cpu_to_le16(9), | 85 | /* SMB2_QUERY_DIRECTORY */ cpu_to_le16(9), |
86 | /* SMB2_CHANGE_NOTIFY */ __constant_cpu_to_le16(9), | 86 | /* SMB2_CHANGE_NOTIFY */ cpu_to_le16(9), |
87 | /* SMB2_QUERY_INFO */ __constant_cpu_to_le16(9), | 87 | /* SMB2_QUERY_INFO */ cpu_to_le16(9), |
88 | /* SMB2_SET_INFO */ __constant_cpu_to_le16(2), | 88 | /* SMB2_SET_INFO */ cpu_to_le16(2), |
89 | /* BB FIXME can also be 44 for lease break */ | 89 | /* BB FIXME can also be 44 for lease break */ |
90 | /* SMB2_OPLOCK_BREAK */ __constant_cpu_to_le16(24) | 90 | /* SMB2_OPLOCK_BREAK */ cpu_to_le16(24) |
91 | }; | 91 | }; |
92 | 92 | ||
93 | int | 93 | int |