rhel8.6 with kernel 5.18 breaks a couple of compile tests
struct rhltable test fails with:
... error: ‘hlt’ is used uninitialized in this function
[-Werror=uninitialized]
rdma_wr() test failes with:
... error: assignment discards ‘const’ qualifier from pointer
target type [-Werror=discarded-qualifiers]
wr = rdma_wr(NULL);
nla_strdup() test fails due to unused variable 'tmp'
Test-Parameters: trivial
HPE-bug-id: LUS-11191
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Ib2b1d223ac809cea157158fe35fd2535b04367df
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48361
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
rhtable, [
#include <linux/rhashtable.h>
],[
- struct rhltable *hlt;
+ struct rhltable *hlt = NULL;
rhltable_destroy(hlt);
],[
#include <net/netlink.h>
],[
char *tmp = nla_strdup(NULL, GFP_KERNEL);
+ (void)tmp;
],[
AC_DEFINE(HAVE_NLA_STRDUP, 1,
['nla_strdup' is available])
#endif
#include <rdma/ib_verbs.h>
],[
- struct ib_rdma_wr *wr __attribute__ ((unused));
+ const struct ib_rdma_wr *wr __attribute__ ((unused));
wr = rdma_wr(NULL);
],[