drivers/serial/8250_acpi.c: fix a warning
PATCH 1/1 drivers/serial/8250_acpi.c: fix a warning
This patch fixes the following warning:
<-- snip -->
...
CC drivers/serial/8250_acpi.odrivers/serial/8250_acpi.c: In function `acpi_serial_ext_irq':drivers/serial/8250_acpi.c:51: warning: implicit declaration of function `acpi_register_gsi'
...
<-- snip -->
This patch was already ACK'ed by Bjorn Helgaas.
---
This patch was already sent on:
- 5 Apr 2005
drivers/serial/8250_acpi.c renamed from drivers/serial/8250_acpi.c.old +1 -0
@@ -9,6 +9,7 @@* (at your option) any later version. */ +#include <linux/config.h> #include <linux/acpi.h> #include <linux/init.h> #include <linux/module.h>
drivers/serial/8250_acpi.c line 12
Quoted 10 lines · Adrian Bunk
This patch fixes the following warning:
CC
drivers/serial/8250_acpi.odrivers/serial/8250_acpi.c: In function `acpi_serial_ext_irq':drivers/serial/8250_acpi.c:51: warning: implicit declaration of function `acpi_register_gsi'drivers/serial/8250_acpi.c renamed from drivers/serial/8250_acpi.c.old +1
-0+#include <linux/config.h>
drivers/serial/8250_acpi.c doesn't use CONFIG_ symbols.
A message that is not in the archive (sent off-list or not yet received): E1DMTPC-000ASo-00.adobriyan-mail-ru-NYYus2/[email protected]
Quoted 8 lines · Alexey Dobriyan
Quoted 5 lines · Adrian Bunk
This patch fixes the following warning:
CC
drivers/serial/8250_acpi.odrivers/serial/8250_acpi.c: In function `acpi_serial_ext_irq':drivers/serial/8250_acpi.c:51: warning: implicit declaration of function `acpi_register_gsi'
Quoted 6 lines
drivers/serial/8250_acpi.c line 12
Quoted 4 lines
drivers/serial/8250_acpi.c renamed from drivers/serial/8250_acpi.c.old +1
-0+#include <linux/config.h>
drivers/serial/8250_acpi.cdoesn't useCONFIG_symbols.
8250_acpi.c #include's <acpi/acpi_bus.h> which requires config.h .
In the Linux kernel, it's more common to put such header dependencies for header files into the C files, but if the ACPI people agree a patch to add the #include <linux/config.h> to acpi_bus.h is the other possble correct solution for this issue.
cu
Adrian
Signature · 12 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=clickQuoted 8 lines · Alexey Dobriyan
Quoted 5 lines · Adrian Bunk
This patch fixes the following warning:
CC
drivers/serial/8250_acpi.odrivers/serial/8250_acpi.c: In function `acpi_serial_ext_irq':drivers/serial/8250_acpi.c:51: warning: implicit declaration of function `acpi_register_gsi'
Quoted 6 lines
drivers/serial/8250_acpi.c line 12
Quoted 4 lines
drivers/serial/8250_acpi.c renamed from drivers/serial/8250_acpi.c.old +1
-0+#include <linux/config.h>
drivers/serial/8250_acpi.cdoesn't useCONFIG_symbols.
8250_acpi.c #include's <acpi/acpi_bus.h> which requires config.h .
In the Linux kernel, it's more common to put such header dependencies for header files into the C files, but if the ACPI people agree a patch to add the #include <linux/config.h> to acpi_bus.h is the other possble correct solution for this issue.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 7 lines · Adrian Bunk
Quoted 2 lines
drivers/serial/8250_acpi.cdoesn't useCONFIG_symbols.
8250_acpi.c#include's <acpi/acpi_bus.h> which requiresconfig.h.In the Linux kernel, it's more common to put such header dependencies for header files into the C files, but if the ACPI people agree a patch
I disagree with this assertion. Try
grep -l linux/config.h include/linux/*.h | wc -l
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtQuoted 4 lines · Adrian Bunk
In the Linux kernel, it's more common to put such header dependencies for header files into the C files, but if the ACPI people agree a patch to add the #include <
linux/config.h> toacpi_bus.his the other possble correct solution for this issue.
With the exception of linux/config.h.
Do a 'make configcheck' and it'll tell you where linux/config.h is missing and where it shouldn't be.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core
PATCH 1/1 ACPI: add two missing config.h #include's
Quoted 10 lines · Russell King
Quoted 4 lines · Adrian Bunk
In the Linux kernel, it's more common to put such header dependencies for header files into the C files, but if the ACPI people agree a patch to add the #include <
linux/config.h> toacpi_bus.his the other possble correct solution for this issue.With the exception of
linux/config.h.Do a 'make configcheck' and it'll tell you where
linux/config.his missing and where it shouldn't be.
OK, then the patch below is the correct solution.
cu
Adrian
<-- snip -->
This patch fixes the following warning by adding two missing config.h #include's:
<-- snip -->
...
CC drivers/serial/8250_acpi.odrivers/serial/8250_acpi.c: In function `acpi_serial_ext_irq':drivers/serial/8250_acpi.c:51: warning: implicit declaration of function `acpi_register_gsi'
...
<-- snip -->
include/acpi/acpi_bus.h renamed from include/acpi/acpi_bus.h.old +1 -0
@@ -26,6 +26,7 @@#ifndef __ACPI_BUS_H__#define __ACPI_BUS_H__ +#include <linux/config.h> #include <linux/kobject.h> #include <acpi/acpi.h>
include/linux/acpi.h renamed from include/linux/acpi.h.old +2 -0
@@ -25,6 +25,8 @@#ifndef _LINUX_ACPI_H#define _LINUX_ACPI_H +#include <linux/config.h> +#ifdef CONFIG_ACPI #ifndef _LINUX
Len Brown
AppliedRe: [2.6 patch] ACPI: add two missing config.h #include's
Applied.
thanks,
-Len
Quoted 69 lines · Adrian Bunk
Quoted 2 lines · Russell King
Quoted 1 line · Adrian Bunk
In the Linux kernel, it's more common to put such header
dependencies
Quoted 1 line
Quoted 1 line
for header files into the C files, but if the ACPI people agree a
patch
Quoted 1 line
Quoted 1 line
to add the #include <
linux/config.h> toacpi_bus.his the otherpossble
Quoted 5 lines
Quoted 1 line
correct solution for this issue.
With the exception of
linux/config.h.Do a 'make configcheck' and it'll tell you where
linux/config.hismissing
Quoted 1 line
and where it shouldn't be.
OK, then the patch below is the correct solution.
cu
Adrian<-- snip -->
This patch fixes the following warning by adding two missing
config.h#include's:<-- snip -->
...
CCdrivers/serial/8250_acpi.odrivers/serial/8250_acpi.c: In function `acpi_serial_ext_irq':drivers/serial/8250_acpi.c:51: warning: implicit declaration of function
`acpi_register_gsi'
...<-- snip -->
Signed-off-by Adrian Bunk <[email protected]>--- linux-2.6.12-rc2-mm3-full/include/acpi/acpi_bus.h.old
2005-04-17 19:05:23.000000000 +0200+++
linux-2.6.12-rc2-mm3-full/include/acpi/acpi_bus.h2005-04-17
19:05:37.000000000 +0200include/acpi/acpi_bus.h renamed from include/acpi/acpi_bus.h.old +1
-1@@ -26,6 +26,7 @@#ifndef __ACPI_BUS_H__#define __ACPI_BUS_H__ +#include <linux/config.h> #include <linux/kobject.h> #include <acpi/acpi.h> --- linux-2.6.12-rc2-mm3-full/include/linux/acpi.h.old 2005-04-1719:25:51.000000000 +0200
+++linux-2.6.12-rc2-mm3-full/include/linux/acpi.h2005-04-17
19:24:54.000000000 +0200include/linux/acpi.h renamed from include/linux/acpi.h.old +2
-0@@ -25,6 +25,8 @@#ifndef _LINUX_ACPI_H#define _LINUX_ACPI_H +#include <linux/config.h> +#ifdef CONFIG_ACPI #ifndef _LINUX