While compiling Intel e10002 driver for I217 adapter I get this error -
[Wed Jan 13 03:14:08 flux@flux ~/.local/src/e1000e-3.8.7]
# sudo make -C src
[sudo] password for root:
make: Entering directory '/home/flux/.local/src/e1000e-3.8.7/src'
expr: non-integer argument
make[1]: Entering directory '/usr/src/linux-5.3.18-lp152.57'
make[2]: Entering directory '/usr/src/linux-5.3.18-lp152.57-obj/x86_64/default'
CC [M] /home/flux/.local/src/e1000e-3.8.7/src/netdev.o
In file included from /home/flux/.local/src/e1000e-3.8.7/src/e1000.h:14:0,
from /home/flux/.local/src/e1000e-3.8.7/src/netdev.c:30:
/home/flux/.local/src/e1000e-3.8.7/src/kcompat.h:886:31: error: operator '&&' has no right operand
SLE_LOCALVERSION_CODE >= KERNEL_VERSION(92,0,0) && \
^~
/home/flux/.local/src/e1000e-3.8.7/src/kcompat.h:897:31: error: operator '==' has no left operand
(SLE_LOCALVERSION_CODE == KERNEL_VERSION(6,33,0) || \
^~
/home/flux/.local/src/e1000e-3.8.7/src/kcompat.h:910:31: error: operator '==' has no left operand
(SLE_LOCALVERSION_CODE == KERNEL_VERSION(94,41,0) || \
^~
/home/flux/.local/src/e1000e-3.8.7/src/kcompat.h:916:31: error: operator '==' has no left operand
(SLE_LOCALVERSION_CODE == KERNEL_VERSION(23,0,0) || \
^~
/home/flux/.local/src/e1000e-3.8.7/src/kcompat.h:929:30: error: operator '&&' has no right operand
SLE_LOCALVERSION_CODE >= KERNEL_VERSION(25,23,0))
^~
In file included from /home/flux/.local/src/e1000e-3.8.7/src/e1000.h:14:0,
from /home/flux/.local/src/e1000e-3.8.7/src/netdev.c:30:
/home/flux/.local/src/e1000e-3.8.7/src/kcompat.h:7202:30: error: operator '>=' has no left operand
(SLE_LOCALVERSION_CODE >= KERNEL_VERSION(14,0,0)))
^~
make[3]: *** [/usr/src/linux-5.3.18-lp152.57/scripts/Makefile.build:282: /home/flux/.local/src/e1000e-3.8.7/src/netdev.o] Error 1
make[2]: *** [/usr/src/linux-5.3.18-lp152.57/Makefile:1650: _module_/home/flux/.local/src/e1000e-3.8.7/src] Error 2
make[2]: Leaving directory '/usr/src/linux-5.3.18-lp152.57-obj/x86_64/default'
make[1]: *** [Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-5.3.18-lp152.57'
make: *** [Makefile:73: default] Error 2
make: Leaving directory '/home/flux/.local/src/e1000e-3.8.7/src'
Any idea how to fix this.