mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 6/12] acpi: fix compile warnings
@ 2007-06-19 22:50 Andreas Herrmann
  2007-06-22 11:34 ` Adrian Bunk
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Herrmann @ 2007-06-19 22:50 UTC (permalink / raw)
  To: linux-kernel, linux-acpi

Fix compile warnings:

 drivers/acpi/bus.c: In function 'acpi_bus_get_power':
 drivers/acpi/bus.c:162: warning: implicit declaration of function 'acpi_power_get_inferred_state'
 drivers/acpi/bus.c: In function 'acpi_bus_set_power':
 drivers/acpi/bus.c:232: warning: implicit declaration of function 'acpi_power_transition'

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
---
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index b4a9ea5..e01dca1 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -43,6 +43,8 @@ ACPI_MODULE_NAME("bus");
 #ifdef	CONFIG_X86
 extern void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger);
 #endif
+extern int acpi_power_get_inferred_state(struct acpi_device *);
+extern int acpi_power_transition(struct acpi_device *, int);
 
 struct acpi_device *acpi_root;
 struct proc_dir_entry *acpi_root_dir;




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 6/12] acpi: fix compile warnings
  2007-06-19 22:50 [PATCH 6/12] acpi: fix compile warnings Andreas Herrmann
@ 2007-06-22 11:34 ` Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-06-22 11:34 UTC (permalink / raw)
  To: Andreas Herrmann; +Cc: linux-kernel, linux-acpi

On Wed, Jun 20, 2007 at 12:50:11AM +0200, Andreas Herrmann wrote:
> Fix compile warnings:
> 
>  drivers/acpi/bus.c: In function 'acpi_bus_get_power':
>  drivers/acpi/bus.c:162: warning: implicit declaration of function 'acpi_power_get_inferred_state'
>  drivers/acpi/bus.c: In function 'acpi_bus_set_power':
>  drivers/acpi/bus.c:232: warning: implicit declaration of function 'acpi_power_transition'
> 
> Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
> ---
> diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
> index b4a9ea5..e01dca1 100644
> --- a/drivers/acpi/bus.c
> +++ b/drivers/acpi/bus.c
> @@ -43,6 +43,8 @@ ACPI_MODULE_NAME("bus");
>  #ifdef	CONFIG_X86
>  extern void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger);
>  #endif
> +extern int acpi_power_get_inferred_state(struct acpi_device *);
> +extern int acpi_power_transition(struct acpi_device *, int);
>...

NAK, they belong into a header file.

cu
Adrian

-- 

       "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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-22 11:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-19 22:50 [PATCH 6/12] acpi: fix compile warnings Andreas Herrmann
2007-06-22 11:34 ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®