Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paging_lowmem.c: make module error; centos7 #1

Open
liu-xuewen opened this issue May 31, 2020 · 0 comments
Open

paging_lowmem.c: make module error; centos7 #1

liu-xuewen opened this issue May 31, 2020 · 0 comments

Comments

@liu-xuewen
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant