Whamcloud - gitweb
LU-15973 build: remove AC_DEFINE(__state, state, ...) 99/47799/1
authorJian Yu <yujian@whamcloud.com>
Mon, 27 Jun 2022 17:30:16 +0000 (10:30 -0700)
committerJian Yu <yujian@whamcloud.com>
Mon, 27 Jun 2022 17:30:16 +0000 (10:30 -0700)
commit66c98e324b0182e781743cab4e938b18b6ef4255
tree964ade1e903ac259f630ed4b58edc25191ed3ad8
parenta162e24d2da5e4bd64a79d6dcc128bd0d50e8517
LU-15973 build: remove AC_DEFINE(__state, state, ...)

RHEL 8.6 build failed with MLNX_OFED 5.6-2.0.9.0 as follows:

error: 'struct task_struct' has no member named 'state'; did you mean '__state'?
 #define __state state
                 ^~~~~

The failure was introduced by
commit bb7c82f13e7a01891edcdf0626c6fb91a240e56e and a proper
way to resolve the original issue was in
commit c04adbcd76725a360f411f09c63df785bf7db426. So, let's
remove the improper way AC_DEFINE(__state, state, ...).

Test-Parameters: trivial fstype=ldiskfs \
clientdistro=el8.6 serverdistro=el8.6 testlist=sanity

Test-Parameters: trivial fstype=zfs \
clientdistro=el8.6 serverdistro=el8.6 testlist=sanity

Change-Id: Icbc897cf5870352311262af8bd59ec24ea9d7301
Fixes: bb7c82f13e7 ("LU-15795 kernel: RHEL 8.6 server support")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
lustre/autoconf/lustre-core.m4