-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Description
When I try to compile acpi_call on Fedora 40 I get the following error message:
make -C /lib/modules/6.9.12-200.fc40.x86_64/build M=/home/mrunix/acpi_call modules
make[1]: Entering directory '/usr/src/kernels/6.9.12-200.fc40.x86_64'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 14.1.1 20240701 (Red Hat 14.1.1-7)
You are using: gcc (GCC) 14.2.1 20240801 (Red Hat 14.2.1-1)
CC [M] /home/mrunix/acpi_call/acpi_call.o
In file included from ./include/acpi/platform/acenv.h:160,
from ./include/acpi/acpi.h:22,
from /home/mrunix/acpi_call/acpi_call.c:9:
./include/acpi/platform/aclinux.h:18:2: error: #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
18 | #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
| ^~~~~
/home/mrunix/acpi_call/acpi_call.c:141:4: warning: no previous prototype for ‘decodeHex’ [-Wmissing-prototypes]
141 | u8 decodeHex(char *hex) {
| ^~~~~~~~~
/home/mrunix/acpi_call/acpi_call.c: In function ‘init_acpi_call’:
/home/mrunix/acpi_call/acpi_call.c:355:53: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Wincompatible-pointer-types]
355 | &proc_acpi_operations);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| struct file_operations *
In file included from /home/mrunix/acpi_call/acpi_call.c:6:
./include/linux/proc_fs.h:111:122: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
111 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
make[3]: *** [scripts/Makefile.build:244: /home/mrunix/acpi_call/acpi_call.o] Error 1
make[2]: *** [/usr/src/kernels/6.9.12-200.fc40.x86_64/Makefile:1930: /home/mrunix/acpi_call] Error 2
make[1]: *** [Makefile:252: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.9.12-200.fc40.x86_64'
make: *** [Makefile:8: default] Error 2
MaxPastushkov
Metadata
Metadata
Assignees
Labels
No labels