diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-04-04 16:06:41 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-04-06 14:02:37 -0500 |
commit | 00e99ccde75722599faf089416341bfed7e4edb5 (patch) | |
tree | b00db63eac84352ee3ec18345b7c760f1dd54f21 /fs/dlm/util.h | |
parent | 2f9dbeda8dc04b5b754e032000adf6bab03aa9be (diff) | |
download | linux-stable-00e99ccde75722599faf089416341bfed7e4edb5.tar.gz linux-stable-00e99ccde75722599faf089416341bfed7e4edb5.tar.bz2 linux-stable-00e99ccde75722599faf089416341bfed7e4edb5.zip |
dlm: use __le types for dlm messages
This patch changes to use __le types directly in the dlm message
structure which is casted at the right dlm message buffer positions.
The main goal what is reached here is to remove sparse warnings
regarding to host to little byte order conversion or vice versa. Leaving
those sparse issues ignored and always do it in out/in functionality
tends to leave it unknown in which byte order the variable is being
handled.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/util.h')
-rw-r--r-- | fs/dlm/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/util.h b/fs/dlm/util.h index cd099c4f5d6a..b6a4b8adca8d 100644 --- a/fs/dlm/util.h +++ b/fs/dlm/util.h @@ -11,8 +11,8 @@ #ifndef __UTIL_DOT_H__ #define __UTIL_DOT_H__ -void dlm_message_out(struct dlm_message *ms); -void dlm_message_in(struct dlm_message *ms); +int to_dlm_errno(int err); +int from_dlm_errno(int err); #endif |