-
Notifications
You must be signed in to change notification settings - Fork 97
Description
localhost:/gasket-driver/src# make -C /lib/modules/6.12.58-0-lts/build M=$PWD modules/gasket-driver/src# vi gasket_core.c
make: Entering directory '/root/linux-6.12.58'
CC [M] /root/gasket-driver/src/gasket_core.o
/root/gasket-driver/src/gasket_core.c:1376:19: error: 'no_llseek' undeclared here (not in a function); did you mean 'noop_llseek'?
1376 | .llseek = no_llseek,
| ^~~~~~~~~
| noop_llseek
make[2]: *** [scripts/Makefile.build:229: /root/gasket-driver/src/gasket_core.o] Error 1
make[1]: *** [/root/linux-6.12.58/Makefile:1945: /root/gasket-driver/src] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/root/linux-6.12.58'
localhost:
localhost:/gasket-driver/src# make -C /lib/modules/6.12.58-0-lts/build M=$PWD modules/gasket-driver/src# vi gasket_core.c
make: Entering directory '/root/linux-6.12.58'
CC [M] /root/gasket-driver/src/gasket_core.o
/root/gasket-driver/src/gasket_core.c:1376:10: error: invalid preprocessing directive #.
1376 | #.llseek = no_llseek,
| ^
make[2]: *** [scripts/Makefile.build:229: /root/gasket-driver/src/gasket_core.o] Error 1
make[1]: *** [/root/linux-6.12.58/Makefile:1945: /root/gasket-driver/src] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/root/linux-6.12.58'
localhost:
localhost:~/gasket-driver/src# make -C /lib/modules/6.12.58-0-lts/build M=$PWD modules
make: Entering directory '/root/linux-6.12.58'
CC [M] /root/gasket-driver/src/gasket_core.o
CC [M] /root/gasket-driver/src/gasket_ioctl.o
CC [M] /root/gasket-driver/src/gasket_interrupt.o
CC [M] /root/gasket-driver/src/gasket_page_table.o
CC [M] /root/gasket-driver/src/gasket_sysfs.o
LD [M] /root/gasket-driver/src/gasket.o
CC [M] /root/gasket-driver/src/apex_driver.o
LD [M] /root/gasket-driver/src/apex.o
MODPOST /root/gasket-driver/src/Module.symvers
WARNING: Module.symvers is missing.
Modules may not have dependencies or modversions.
You may get many unresolved symbol errors.
You can set KBUILD_MODPOST_WARN=1 to turn errors into warning
if you want to proceed at your own risk.
ERROR: modpost: "zap_vma_ptes" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "free_pages" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "get_device" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "dma_buf_attach" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "__dynamic_dev_dbg" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "__release_region" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "fentry" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "__x86_indirect_thunk_rax" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "dma_map_page_attrs" [/root/gasket-driver/src/gasket.ko] undefined!
ERROR: modpost: "_printk" [/root/gasket-driver/src/gasket.ko] undefined!
WARNING: modpost: suppressed 132 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:145: /root/gasket-driver/src/Module.symvers] Error 1
make[1]: *** [/root/linux-6.12.58/Makefile:1897: modpost] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/root/linux-6.12.58'