Skip to content

Build error: missing prototypes setup_disk and cleanup_disk #126

@oliveskur

Description

@oliveskur

make KDIR=/home/user/linux-6.12.11
make -C /home/user/linux-6.12.11 M="/home/user/LiME/src" modules
make[1]: Entering directory '/home/user/linux-6.12.11'
CC [M] /home/user/LiME/src/disk.o
/home/user/LiME/src/disk.c:45:5: error: no previous prototype for ‘setup_disk’ [-Werror=missing-prototypes]
45 | int setup_disk(char *path, int dio) {
| ^~~~~~~~~~
/home/user/LiME/src/disk.c:77:6: error: no previous prototype for ‘cleanup_disk’ [-Werror=missing-prototypes]
77 | void cleanup_disk(void) {
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [scripts/Makefile.build:229: /home/user/LiME/src/disk.o] Error 1
make[2]: *** [/home/user/linux-6.12.11/Makefile:1937: /home/user/LiME/src] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/home/user/linux-6.12.11'
make: *** [Makefile:35: default] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions