Added missing include required by recent versions of asm/uaccess.h#642
Added missing include required by recent versions of asm/uaccess.h#642neilwhelchel wants to merge 1 commit intoLinuxCNC:masterfrom
Conversation
|
I did an experiment to see if another possible fix worked last night. But I think I will roll that back and use kernel version macros. so that the change only happens post 2.14. Thoughts. |
|
Thanks for bringing this to to our attention. |
|
Hello Andy, good catch! Strangely enough I knew about how the headers are being changed around in the kernel, but I totally missed that when made this fix. I guess I had a bad case of tunnel vision. |
This fixes a compile error with recent versions of the linux kernel, in my case 4.14.134:
./arch/x86/include/asm/uaccess.h:33:9: error: dereferencing pointer to incomplete type current->thread.addr_limit = fs;I have not tested this against older versions of the kernel, but it seems safe to include traps.h as it has an include guard.