]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: use __le types for options header
authorAlexander Aring <aahringo@redhat.com>
Mon, 4 Apr 2022 20:06:38 +0000 (16:06 -0400)
committerDavid Teigland <teigland@redhat.com>
Wed, 6 Apr 2022 19:02:24 +0000 (14:02 -0500)
commit0a713edb8d70f87886365dc9b3701f8f73f06730
tree755972aec6303d3c8801bfce1e55ed982e94fc2c
parent94c56f3ace4ba2d4287a2f2766db57f5430c8169
dlm: use __le types for options header

This patch changes to use __le types directly in the dlm option headers
structures which are casted at the right dlm message buffer positions.

Currently only midcomms.c using those headers which already was calling
endian conversions on-the-fly without using in/out functionality like
other endianness handling in dlm. Using __le types now will hopefully get
useful warnings in future if we do comparison against host byte order
values.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dlm_internal.h