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

build errors in 4.11 #3

Open
luginbash opened this issue Feb 12, 2018 · 1 comment
Open

build errors in 4.11 #3

luginbash opened this issue Feb 12, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@luginbash
Copy link
Owner

shuu@oldmill:~/src/mpss-modules-3.8.3$ sudo make MIC_CARD_ARCH=k1om                                   
make -C /lib/modules/4.13.0-26-generic/build M=/home/shuu/src/mpss-modules-3.8.3 modules \
        INSTALL_MOD_PATH=
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-26-generic'
  CC [M]  /home/shuu/src/mpss-modules-3.8.3/dma/mic_dma_lib.o
In file included from /home/shuu/src/mpss-modules-3.8.3/include/mic/micscif.h:358:0,
                 from /home/shuu/src/mpss-modules-3.8.3/dma/mic_dma_lib.c:54:
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h: In function ‘__scif_acquire_mm’:
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h:899:10: error: implicit declaration of function ‘get_tas
k_mm’ [-Werror=implicit-function-declaration]
   return get_task_mm(current);
          ^
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h:899:10: warning: return makes pointer from integer witho
ut a cast [-Wint-conversion]
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h: In function ‘__scif_release_mm’:
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h:910:3: error: implicit declaration of function ‘mmput’ [
-Werror=implicit-function-declaration]
   mmput(mm);
   ^
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h: In function ‘__scif_check_inc_pinned_vm’:
/home/shuu/src/mpss-modules-3.8.3/include/mic/micscif_rma.h:946:16: error: implicit declaration of function ‘rlimit’
 [-Werror=implicit-function-declaration]
   lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
                ^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/home/shuu/src/mpss-modules-3.8.3/dma/mic_dma_lib.o' failed
make[2]: *** [/home/shuu/src/mpss-modules-3.8.3/dma/mic_dma_lib.o] Error 1
Makefile:1550: recipe for target '_module_/home/shuu/src/mpss-modules-3.8.3' failed
make[1]: *** [_module_/home/shuu/src/mpss-modules-3.8.3] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-26-generic'
Makefile:72: recipe for target 'modules' failed
make: *** [modules] Error 2
@luginbash luginbash added the bug Something isn't working label Feb 12, 2018
@luginbash luginbash self-assigned this Feb 12, 2018
@take-cheeze
Copy link

I'm facing the same issue.
Seems ubuntu's linux-headers doesn't include linux/sched/mm.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants