Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH 6/12] acpi: fix compile warnings

 
   Soft32 Home -> Linux -> Kernel RSS
Next:  [PATCH 8/12] fix compile error (missing include)  
Author Message
Andreas Herrmann

External


Since: Jan 22, 2007
Posts: 42



(Msg. 1) Posted: Tue Jun 19, 2007 8:00 pm
Post subject: [PATCH 6/12] acpi: fix compile warnings
Archived from groups: linux>kernel (more info?)

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.TakeThisOut@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;



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.TakeThisOut@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Adrian Bunk

External


Since: Nov 20, 2006
Posts: 1269



(Msg. 2) Posted: Fri Jun 22, 2007 8:40 am
Post subject: Re: [PATCH 6/12] acpi: fix compile warnings [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 RemoveThis @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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo RemoveThis @vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[PATCH 3/12] acpi: fix compile error with ACPI && !ACPI_PO.. - Fix compile error with ACPI && !ACPI_POWER as bus.c depends on power.c Signed-off-by: Andreas Herrmann..

[PATCH 5/12] acpi: fix compile error with ACPI && !ACPI_SY.. - Fix build error if ACPI && !ACPI_SYSTEM as bus.c depended on event.c Signed-off-by: Andreas Herrmann..

[PATCH] Fix compile warnings in r8169 - Fix compile warnings in r8169. It doesn't fix "real" bugs, only that the driver compiles cleanly without warn...

[PATCH]: HVCS char driver janitoring: fix compile warnings - This is a non-urgent patch. I can't figure out who the upstream maintainer for char drivers is supposed to be. Can..

[PATCH 7/12] acpi: fix another compile warning - Avoid compile warning if !ACPI_BLACKLIST_YEAR CC drivers/acpi/blacklist.o drivers/acpi/blacklist.c:76:5:..

ACPI EC warnings - Hi, With the recent ACPI merge I get this in dmesg: ACPI: EC: evaluating _Q60 ACPI: EC: evaluating _Q60 ACPI: EC:..
       Soft32 Home -> Linux -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]