Whamcloud - gitweb
LU-14093 lnet: annotate LNET_WIRE_HANDLE_COOKIE_NONE as u64 13/43713/6
authorDominique Martinet <asmadeus@codewreck.org>
Sat, 15 May 2021 22:32:56 +0000 (07:32 +0900)
committerOleg Drokin <green@whamcloud.com>
Thu, 8 Jul 2021 02:06:04 +0000 (02:06 +0000)
commit27214876fcdfbda016c920bce4ab1da800fcda4b
treecd0b9b33838b951ef63ad2278dbfee5f9ff91df4
parent25aa8527374f8120c113dc12adb1366a1ab98152
LU-14093 lnet: annotate LNET_WIRE_HANDLE_COOKIE_NONE as u64

Fix the following warning on new gcc with -Wextra when including
lustre_idl.h on external project:

.../include/linux/lnet/lnet-types.h: In function LNetMDHandleIsInvalid:
.../include/linux/lnet/lnet-types.h:355:46:
   error: comparison of integer expressions of different signedness:
   int and __u64 {aka long long unsigned int} [-Werror=sign-compare]
        return (LNET_WIRE_HANDLE_COOKIE_NONE == h.cookie);
                                             ^~

Change-Id: I05f21dcca5fe9dd15d1e0b6cb9a29c3999bcd807
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Reviewed-on: https://review.whamcloud.com/43713
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/include/uapi/linux/lnet/lnet-types.h