Merge tag 'mmc-v5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[linux-2.6-microblaze.git] / fs / dlm / util.c
index cfd0d00..58acbcc 100644 (file)
 #define DLM_ERRNO_ETIMEDOUT           110
 #define DLM_ERRNO_EINPROGRESS         115
 
-static void header_out(struct dlm_header *hd)
+void header_out(struct dlm_header *hd)
 {
        hd->h_version           = cpu_to_le32(hd->h_version);
-       hd->h_lockspace         = cpu_to_le32(hd->h_lockspace);
+       /* does it for others u32 in union as well */
+       hd->u.h_lockspace       = cpu_to_le32(hd->u.h_lockspace);
        hd->h_nodeid            = cpu_to_le32(hd->h_nodeid);
        hd->h_length            = cpu_to_le16(hd->h_length);
 }
 
-static void header_in(struct dlm_header *hd)
+void header_in(struct dlm_header *hd)
 {
        hd->h_version           = le32_to_cpu(hd->h_version);
-       hd->h_lockspace         = le32_to_cpu(hd->h_lockspace);
+       /* does it for others u32 in union as well */
+       hd->u.h_lockspace       = le32_to_cpu(hd->u.h_lockspace);
        hd->h_nodeid            = le32_to_cpu(hd->h_nodeid);
        hd->h_length            = le16_to_cpu(hd->h_length);
 }