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

Failed to compile on 5.11.0 #158

Open
chenk008 opened this issue Apr 15, 2022 · 0 comments
Open

Failed to compile on 5.11.0 #158

chenk008 opened this issue Apr 15, 2022 · 0 comments

Comments

@chenk008
Copy link

chenk008 commented Apr 15, 2022

fcheck_files has been renamed to files_lookup_fd_rcu. https://lore.kernel.org/lkml/20201120231441.29911-9-ebiederm@xmission.com/

/root/diagnose-tools/SOURCE/module/pub/uprobe.c: In function ‘hook_uprobe’:
/root/diagnose-tools/SOURCE/module/pub/uprobe.c:47:16: error: implicit declaration of function ‘fcheck_files’ [-Werror=implicit-function-declaration]
   47 |         file = fcheck_files(files, fd);
      |                ^~~~~~~~~~~~
/root/diagnose-tools/SOURCE/module/pub/uprobe.c:47:14: warning: assignment to ‘struct file *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   47 |         file = fcheck_files(files, fd);
      |              ^
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:281: /root/diagnose-tools/SOURCE/module/pub/uprobe.o] Error 1
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