mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
nfs: replace uses of __constant_{endian}
The base versions handle constant folding now, none of these headers are exported to userspace, so the __ prefixed versions are not necessary. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
4ac35c2f79
commit
77f18f5e4e
4 changed files with 96 additions and 96 deletions
|
@ -25,13 +25,13 @@ struct svc_rqst;
|
|||
#define NLM_MAXCOOKIELEN 32
|
||||
#define NLM_MAXSTRLEN 1024
|
||||
|
||||
#define nlm_granted __constant_htonl(NLM_LCK_GRANTED)
|
||||
#define nlm_lck_denied __constant_htonl(NLM_LCK_DENIED)
|
||||
#define nlm_lck_denied_nolocks __constant_htonl(NLM_LCK_DENIED_NOLOCKS)
|
||||
#define nlm_lck_blocked __constant_htonl(NLM_LCK_BLOCKED)
|
||||
#define nlm_lck_denied_grace_period __constant_htonl(NLM_LCK_DENIED_GRACE_PERIOD)
|
||||
#define nlm_granted cpu_to_be32(NLM_LCK_GRANTED)
|
||||
#define nlm_lck_denied cpu_to_be32(NLM_LCK_DENIED)
|
||||
#define nlm_lck_denied_nolocks cpu_to_be32(NLM_LCK_DENIED_NOLOCKS)
|
||||
#define nlm_lck_blocked cpu_to_be32(NLM_LCK_BLOCKED)
|
||||
#define nlm_lck_denied_grace_period cpu_to_be32(NLM_LCK_DENIED_GRACE_PERIOD)
|
||||
|
||||
#define nlm_drop_reply __constant_htonl(30000)
|
||||
#define nlm_drop_reply cpu_to_be32(30000)
|
||||
|
||||
/* Lock info passed via NLM */
|
||||
struct nlm_lock {
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
#include <linux/lockd/xdr.h>
|
||||
|
||||
/* error codes new to NLMv4 */
|
||||
#define nlm4_deadlock __constant_htonl(NLM_DEADLCK)
|
||||
#define nlm4_rofs __constant_htonl(NLM_ROFS)
|
||||
#define nlm4_stale_fh __constant_htonl(NLM_STALE_FH)
|
||||
#define nlm4_fbig __constant_htonl(NLM_FBIG)
|
||||
#define nlm4_failed __constant_htonl(NLM_FAILED)
|
||||
#define nlm4_deadlock cpu_to_be32(NLM_DEADLCK)
|
||||
#define nlm4_rofs cpu_to_be32(NLM_ROFS)
|
||||
#define nlm4_stale_fh cpu_to_be32(NLM_STALE_FH)
|
||||
#define nlm4_fbig cpu_to_be32(NLM_FBIG)
|
||||
#define nlm4_failed cpu_to_be32(NLM_FAILED)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue