patch-2.3.51 linux/include/linux/lockd/xdr4.h

Next file: linux/include/linux/module.h
Previous file: linux/include/linux/lockd/xdr.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.50/linux/include/linux/lockd/xdr4.h linux/include/linux/lockd/xdr4.h
@@ -15,7 +15,12 @@
 #include <linux/lockd/xdr.h>
 
 /* error codes new to NLMv4 */
-extern u32	nlm4_deadlock, nlm4_rofs, nlm4_stale_fh, nlm4_fbig, nlm4_failed;
+#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)
+
 
 
 int	nlm4svc_decode_testargs(struct svc_rqst *, u32 *, struct nlm_args *);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)