Skip to content

comiple error #21

@gragonskies

Description

@gragonskies

/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions