/home/user/Desktop/redirfs/redirfs/src/avflt/avflt_check.c:298:47: error: implicit declaration of function ‘current_cred’; did you mean ‘current_chrooted’? [-Werror=implicit-function-declaration]
file = dentry_open(&event->f_path, flags, current_cred());
^~~~~~~~~~~~
current_chrooted
/home/user/Desktop/redirfs/redirfs/src/avflt/avflt_check.c:298:47: warning: passing argument 3 of ‘dentry_open’ makes pointer from integer without a cast [-Wint-conversion]
file = dentry_open(&event->f_path, flags, current_cred());
^~~~~~~~~~~~~~
In file included from ./include/linux/poll.h:10,
from /home/user/Desktop/redirfs/redirfs/src/avflt/avflt.h:29,
from /home/user/Desktop/redirfs/redirfs/src/avflt/avflt_check.c:24:
./include/linux/fs.h:2469:22: note: expected ‘const struct cred *’ but argument is of type ‘int’
extern struct file * dentry_open(const struct path *, int, const struct cred *);
^~~~~~~~~~~
cc1: some warnings being treated as errors
/home/user/Desktop/redirfs/redirfs/src/avflt/avflt_check.c:298:47: error: implicit declaration of function ‘current_cred’; did you mean ‘current_chrooted’? [-Werror=implicit-function-declaration]
file = dentry_open(&event->f_path, flags, current_cred());
^~~~~~~~~~~~
current_chrooted
/home/user/Desktop/redirfs/redirfs/src/avflt/avflt_check.c:298:47: warning: passing argument 3 of ‘dentry_open’ makes pointer from integer without a cast [-Wint-conversion]
file = dentry_open(&event->f_path, flags, current_cred());
^~~~~~~~~~~~~~
In file included from ./include/linux/poll.h:10,
from /home/user/Desktop/redirfs/redirfs/src/avflt/avflt.h:29,
from /home/user/Desktop/redirfs/redirfs/src/avflt/avflt_check.c:24:
./include/linux/fs.h:2469:22: note: expected ‘const struct cred *’ but argument is of type ‘int’
extern struct file * dentry_open(const struct path *, int, const struct cred *);
^~~~~~~~~~~
cc1: some warnings being treated as errors