paging_lowmem.c: make module error; centos7
make -C /lib/modules/3.10.0-1062.4.3.el7.x86_64/build M=/root/module/mem modules make[1]: Entering directory `/usr/src/kernels/3.10.0-1062.4.3.el7.x86_64' CC [M] /root/module/mem/paging_lowmem.o /root/module/mem/paging_lowmem.c: In function ‘get_pgtable_macro’: /root/module/mem/paging_lowmem.c:22:33: error: ‘GDIR_SHIFT’ undeclared (first use in this function) printk("GDIR_SHIFT = %d\n", GDIR_SHIFT); ^ /root/module/mem/paging_lowmem.c:22:33: note: each undeclared identifier is reported only once for each function it appears in /root/module/mem/paging_lowmem.c:23:30: error: invalid suffix "D_SHIFT" on integer constant printk("4D_SHIFT = %d\n",4D_SHIFT); ^ /root/module/mem/paging_lowmem.c:24:31: error: ‘UD_SHIFT’ undeclared (first use in this function) printk("UD_SHIFT = %d\n", UD_SHIFT);