You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/bbswitch on master make ✔ at 05:45:39 下午
make -C /lib/modules/5.7.7-amd64-desktop/build M="$(pwd)" modules
make[1]: 进入目录“/usr/src/linux-headers-5.7.7-amd64-desktop”
CC [M] /home/xiaoxi/bbswitch/bbswitch.o
/home/xiaoxi/bbswitch/bbswitch.c: In function ‘bbswitch_init’:
/home/xiaoxi/bbswitch/bbswitch.c:460:18: error: implicit declaration of function ‘proc_create’; did you mean ‘vfs_create’? [-Werror=implicit-function-declaration]
acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
^~~~~~~~~~~
vfs_create
/home/xiaoxi/bbswitch/bbswitch.c:460:16: warning: assignment to ‘struct proc_dir_entry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
^
/home/xiaoxi/bbswitch/bbswitch.c: In function ‘bbswitch_exit’:
/home/xiaoxi/bbswitch/bbswitch.c:490:5: error: implicit declaration of function ‘remove_proc_entry’; did you mean ‘remove_memory’? [-Werror=implicit-function-declaration]
remove_proc_entry("bbswitch", acpi_root_dir);
^~~~~~~~~~~~~~~~~
remove_memory
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:267:/home/xiaoxi/bbswitch/bbswitch.o] 错误 1
make[1]: *** [Makefile:1732:/home/xiaoxi/bbswitch] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.7.7-amd64-desktop”
make: *** [Makefile:13:default] 错误 2
~/bbswitch on master ?1
~/bbswitch on master make ✔ at 05:45:39 下午
make -C /lib/modules/5.7.7-amd64-desktop/build M="$(pwd)" modules
make[1]: 进入目录“/usr/src/linux-headers-5.7.7-amd64-desktop”
CC [M] /home/xiaoxi/bbswitch/bbswitch.o
/home/xiaoxi/bbswitch/bbswitch.c: In function ‘bbswitch_init’:
/home/xiaoxi/bbswitch/bbswitch.c:460:18: error: implicit declaration of function ‘proc_create’; did you mean ‘vfs_create’? [-Werror=implicit-function-declaration]
acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
^~~~~~~~~~~
vfs_create
/home/xiaoxi/bbswitch/bbswitch.c:460:16: warning: assignment to ‘struct proc_dir_entry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
^
/home/xiaoxi/bbswitch/bbswitch.c: In function ‘bbswitch_exit’:
/home/xiaoxi/bbswitch/bbswitch.c:490:5: error: implicit declaration of function ‘remove_proc_entry’; did you mean ‘remove_memory’? [-Werror=implicit-function-declaration]
remove_proc_entry("bbswitch", acpi_root_dir);
^~~~~~~~~~~~~~~~~
remove_memory
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:267:/home/xiaoxi/bbswitch/bbswitch.o] 错误 1
make[1]: *** [Makefile:1732:/home/xiaoxi/bbswitch] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.7.7-amd64-desktop”
make: *** [Makefile:13:default] 错误 2
~/bbswitch on master ?1
解决办法:
#198 #196
The text was updated successfully, but these errors were encountered: