Skip to content

Conversation

JuniorPolegato
Copy link

/usr/src/linux-headers-4.1.0-2-common/include/acpi/platform/aclinux.h:52:2: error: #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
#error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
^

/tmp/acpi_call/acpi_call.c: In function ‘acpi_proc_write’:
/tmp/acpi_call/acpi_call.c:273:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ [-Wformat=]
printk(KERN_ERR "acpi_call: Input too long! (%lu)\n", len);
^

/usr/src/linux-headers-4.1.0-2-common/include/acpi/platform/aclinux.h:52:2: error: #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
 #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
  ^

/tmp/acpi_call/acpi_call.c: In function ‘acpi_proc_write’:
/tmp/acpi_call/acpi_call.c:273:9: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘size_t’ [-Wformat=]
         printk(KERN_ERR "acpi_call: Input too long! (%lu)\n", len);
         ^
@wido
Copy link

wido commented Jan 5, 2016

I just ran into this one as well. Seems like a good fix!

@wido
Copy link

wido commented Jan 5, 2016

@mkottman Can you merge this one?

@Mic92
Copy link

Mic92 commented Apr 8, 2020

Merged in nix-community@91435f0 and nix-community@98595b6

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

Successfully merging this pull request may close these issues.

3 participants