Skip to content

Can't compile with DEVTMPFS=y #2

Description

@cunidev

When I try to compile the kernel with DEVTMPFS enabled (as required by PostmarketOS) I get those errors:

drivers/base/devtmpfs.c: In function 'dev_mkdir':
drivers/base/devtmpfs.c:82:2: error: implicit declaration of function 'lookup_create' [-Werror=implicit-function-declaration]
  dentry = lookup_create(&nd, 1);
  ^
drivers/base/devtmpfs.c:82:9: warning: assignment makes pointer from integer without a cast
  dentry = lookup_create(&nd, 1);
         ^
drivers/base/devtmpfs.c: In function 'devtmpfs_create_node':
drivers/base/devtmpfs.c:169:9: warning: assignment makes pointer from integer without a cast
  dentry = lookup_create(&nd, 0);
         ^
drivers/base/devtmpfs.c: In function 'dev_rmdir':
drivers/base/devtmpfs.c:210:38: error: 'thread' undeclared (first use in this function)
   if (dentry->d_inode->i_private == &thread)
                                      ^
drivers/base/devtmpfs.c:210:38: note: each undeclared identifier is reported only once for each function it appears in
drivers/base/devtmpfs.c:201:19: warning: unused variable 'nd' [-Wunused-variable]
  struct nameidata nd;
                   ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:318: drivers/base/devtmpfs.o] Error 1
make[1]: *** [scripts/Makefile.build:458: drivers/base] Error 2
make: *** [Makefile:1068: drivers] Error 2

No patch seems to be currently available sadly. Can you help? Thank you.

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