On Thu, Apr 25, 2024 at 11:58:03PM +0200, Dawid Osuchowski wrote: > +struct file *anon_inode_getfile_fmode(const char *name, > + const struct file_operations *fops, > + void *priv, int flags, fmode_t f_mode) ^^^^^^^ > +struct file *anon_inode_getfile_fmode(const char *name, > + const struct file_operations *fops, > + void *priv, int flags, unsigned int f_mode); ^^^^^^^^^^^^ They ought to match (and fmode_t is the right type here).