Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building acpi_call on Fedora 40 fails #102

Open
mrunix00 opened this issue Aug 6, 2024 · 0 comments
Open

Building acpi_call on Fedora 40 fails #102

mrunix00 opened this issue Aug 6, 2024 · 0 comments

Comments

@mrunix00
Copy link

mrunix00 commented Aug 6, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant