adaptivemm icon indicating copy to clipboard operation
adaptivemm copied to clipboard

Failed to build for EL 7

Open linuxhw opened this issue 1 year ago • 1 comments

Hi

Could you please fix build against RHEL 7:

gcc -c -o adaptivemmd.o adaptivemmd.c -I. -Wall -g
adaptivemmd.c: In function 'get_unmapped_pages':
adaptivemmd.c:977:21: error: 'KPF_PGTABLE' undeclared (first use in this function)
    if ((pageflg[i]>>KPF_PGTABLE) & 1)
                     ^
adaptivemmd.c:977:21: note: each undeclared identifier is reported only once for each function it appears in
make: *** [adaptivemmd.o] Error 1

linuxhw avatar Jun 14 '24 20:06 linuxhw

What version of kernel-headers do you have? You can check with rpm -qa | grep headers. KPF_PGTABLE is only available since v4.18

sidkumar99 avatar Aug 13 '24 18:08 sidkumar99