Whamcloud - gitweb
LU-15973 build: remove AC_DEFINE(__state, state, ...)
authorJian Yu <yujian@whamcloud.com>
Mon, 27 Jun 2022 17:30:16 +0000 (10:30 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 28 Jun 2022 03:18:50 +0000 (03:18 +0000)
commitf182c9e8086f4ecb7c65fc946e0465a8d59083fd
tree2d523a8f55affd568fd781dcd7228ca47a876314
parentca478d0fe182b97691882d8ef20e9ba56b5c02f9
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 bb7c82f13e7a and a proper
way to resolve the original issue was in commit c04adbcd7672.
So, let's remove the improper way AC_DEFINE(__state, state, ...).

Lustre-change: https://review.whamcloud.com/47799
Lustre-commit: TBD (from 66c98e324b0182e781743cab4e938b18b6ef4255)

Test-Parameters: trivial clientdistro=el8.6 testlist=sanity
Fixes: bb7c82f13e7 ("LU-15795 kernel: RHEL 8.6 server support")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: Icbc897cf5870352311262af8bd59ec24ea9d7301
Reviewed-on: https://review.whamcloud.com/47804
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/autoconf/lustre-core.m4