Digiport rebuild RPM on Red Hat Enterprise Linux 8.10 (Ootpa) 'struct task_struct' has no member named 'state'

Virtualization: vmware
Operating System: Red Hat Enterprise Linux 8.10 (Ootpa)
CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos
Kernel: Linux 4.18.0-553.51.1.el8_10.x86_64
Architecture: x86-64

When we are rebuilding the RPM from source RPM we get the error

make[2]: Entering directory ‘/usr/src/kernels/4.18.0-553.51.1.el8_10.x86_64’
CC [M] /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_common.o
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_common.c: In function ‘dgrp_sleep’:
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_common.c:197:11: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
current->state = TASK_INTERRUPTIBLE;
^~~~~
__state
/root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_common.c:199:11: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
current->state = TASK_RUNNING;
^~~~~
__state
make[3]: *** [scripts/Makefile.build:318: /root/rpmbuild/BUILD/dgrp-1.9/driver/build/dgrp_common.o] Error 1
make[2]: *** [Makefile:1619: module/root/rpmbuild/BUILD/dgrp-1.9/driver/build] Error 2
make[2]: Leaving directory ‘/usr/src/kernels/4.18.0-553.51.1.el8_10.x86_64’
make[1]: *** [Makefile:68: build] Error 2
make[1]: Leaving directory ‘/root/rpmbuild/BUILD/dgrp-1.9/driver/2.6.27’
make: *** [Makefile:59: build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.wDaAzI (%build)

as far as I am aware, the state was not changed to __state until kernel 5

I am unsure why this is happening on this particular machine when the same process on another VM works.

Any suggestions ?