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

This patch changes to use __le types directly in the dlm header
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>
fs/dlm/dir.c
fs/dlm/dlm_internal.h
fs/dlm/lock.c
fs/dlm/member.c
fs/dlm/midcomms.c
fs/dlm/rcom.c
fs/dlm/requestqueue.c
fs/dlm/util.c
fs/dlm/util.h