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

Resolve <acpi/acpi.h> directly and %lu to size_t #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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