public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
@ 2005-03-15 22:35 Paweł Sikora
  2005-03-22 21:06 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Paweł Sikora @ 2005-03-15 22:35 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: alpha-pm_power_off.patch --]
[-- Type: text/x-diff, Size: 884 bytes --]

Fix for modpost warning:
"pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!

--- linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c.orig	2005-03-13 07:44:05.000000000 +0100
+++ linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c	2005-03-15 23:20:00.405832368 +0100
@@ -67,6 +67,9 @@
 EXPORT_SYMBOL(alpha_using_srm);
 #endif /* CONFIG_ALPHA_GENERIC */
 
+#include <linux/pm.h>
+EXPORT_SYMBOL(pm_power_off);
+
 /* platform dependent support */
 EXPORT_SYMBOL(strcat);
 EXPORT_SYMBOL(strcmp);
--- linux-2.6.11.3/arch/alpha/kernel/process.c.orig	2005-03-13 07:44:40.000000000 +0100
+++ linux-2.6.11.3/arch/alpha/kernel/process.c	2005-03-15 23:28:15.687538104 +0100
@@ -183,6 +183,8 @@
 
 EXPORT_SYMBOL(machine_power_off);
 
+void (*pm_power_off)(void) = machine_power_off;
+
 /* Used by sysrq-p, among others.  I don't believe r9-r15 are ever
    saved in the context it's used.  */
 

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

* Re: [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
  2005-03-15 22:35 [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined! Paweł Sikora
@ 2005-03-22 21:06 ` Andrew Morton
  2005-03-22 21:53   ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2005-03-22 21:06 UTC (permalink / raw)
  To: Pawe__ Sikora; +Cc: linux-kernel, Richard Henderson, Corey Minyard

Pawe__ Sikora <pluto@pld-linux.org> wrote:
>
> Fix for modpost warning:
>  "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
> 
>  --- linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c.orig	2005-03-13 07:44:05.000000000 +0100
>  +++ linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c	2005-03-15 23:20:00.405832368 +0100
>  @@ -67,6 +67,9 @@
>   EXPORT_SYMBOL(alpha_using_srm);
>   #endif /* CONFIG_ALPHA_GENERIC */
>   
>  +#include <linux/pm.h>
>  +EXPORT_SYMBOL(pm_power_off);
>  +
>   /* platform dependent support */
>   EXPORT_SYMBOL(strcat);
>   EXPORT_SYMBOL(strcmp);
>  --- linux-2.6.11.3/arch/alpha/kernel/process.c.orig	2005-03-13 07:44:40.000000000 +0100
>  +++ linux-2.6.11.3/arch/alpha/kernel/process.c	2005-03-15 23:28:15.687538104 +0100
>  @@ -183,6 +183,8 @@
>   
>   EXPORT_SYMBOL(machine_power_off);
>   
>  +void (*pm_power_off)(void) = machine_power_off;
>  +
>   /* Used by sysrq-p, among others.  I don't believe r9-r15 are ever
>      saved in the context it's used.  */

There doesn't seem to be a lot of point in defining it and not using it.

Perhaps IPMI is making untoward assumptions about the architecture's power
management?  Should we instead be disabling CONFIG_IPMI_POWEROFF on alpha
(and others?)


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

* Re: [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
  2005-03-22 21:06 ` Andrew Morton
@ 2005-03-22 21:53   ` Jeff Garzik
  2005-03-23  8:38     ` Ivan Kokshaysky
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2005-03-22 21:53 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Pawe__ Sikora, linux-kernel, Richard Henderson, Corey Minyard

Andrew Morton wrote:
> Pawe__ Sikora <pluto@pld-linux.org> wrote:
> 
>>Fix for modpost warning:
>> "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
>>
>> --- linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c.orig	2005-03-13 07:44:05.000000000 +0100
>> +++ linux-2.6.11.3/arch/alpha/kernel/alpha_ksyms.c	2005-03-15 23:20:00.405832368 +0100
>> @@ -67,6 +67,9 @@
>>  EXPORT_SYMBOL(alpha_using_srm);
>>  #endif /* CONFIG_ALPHA_GENERIC */
>>  
>> +#include <linux/pm.h>
>> +EXPORT_SYMBOL(pm_power_off);
>> +
>>  /* platform dependent support */
>>  EXPORT_SYMBOL(strcat);
>>  EXPORT_SYMBOL(strcmp);
>> --- linux-2.6.11.3/arch/alpha/kernel/process.c.orig	2005-03-13 07:44:40.000000000 +0100
>> +++ linux-2.6.11.3/arch/alpha/kernel/process.c	2005-03-15 23:28:15.687538104 +0100
>> @@ -183,6 +183,8 @@
>>  
>>  EXPORT_SYMBOL(machine_power_off);
>>  
>> +void (*pm_power_off)(void) = machine_power_off;
>> +
>>  /* Used by sysrq-p, among others.  I don't believe r9-r15 are ever
>>     saved in the context it's used.  */
> 
> 
> There doesn't seem to be a lot of point in defining it and not using it.
> 
> Perhaps IPMI is making untoward assumptions about the architecture's power
> management?  Should we instead be disabling CONFIG_IPMI_POWEROFF on alpha
> (and others?)

Although I suppose its possible that some alpha machines have SMI 
hardware, I don't think I've ever seen ACPI or IPMI on any alpha.

	Jeff




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

* Re: [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
  2005-03-22 21:53   ` Jeff Garzik
@ 2005-03-23  8:38     ` Ivan Kokshaysky
  2005-03-23 13:51       ` Corey Minyard
  0 siblings, 1 reply; 5+ messages in thread
From: Ivan Kokshaysky @ 2005-03-23  8:38 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Andrew Morton, Pawe__ Sikora, linux-kernel, Richard Henderson,
	Corey Minyard

On Tue, Mar 22, 2005 at 04:53:12PM -0500, Jeff Garzik wrote:
> Although I suppose its possible that some alpha machines have SMI 
> hardware, I don't think I've ever seen ACPI or IPMI on any alpha.

Yes, this stuff doesn't exist. I think it would be correct to add
the following to drivers/char/ipmi/Kconfig, like it's done for ACPI:

menu "IPMI"
+	depends on IA64 || X86

config IPMI_HANDLER
       tristate 'IPMI top-level message handler'
+	depends on IA64 || X86


Ivan.

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

* Re: [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
  2005-03-23  8:38     ` Ivan Kokshaysky
@ 2005-03-23 13:51       ` Corey Minyard
  0 siblings, 0 replies; 5+ messages in thread
From: Corey Minyard @ 2005-03-23 13:51 UTC (permalink / raw)
  To: Ivan Kokshaysky
  Cc: Jeff Garzik, Andrew Morton, Pawe__ Sikora, linux-kernel,
	Richard Henderson

This is not the right fix.  I know of IPMI hardware on ppc and xscale 
systems.  There should be nothing general in the driver that limits it 
to x86/ia64.

pm_power_off is defined in linux/pm.h.  Shouldn't it be available 
everywhere?

-Corey

Ivan Kokshaysky wrote:

>On Tue, Mar 22, 2005 at 04:53:12PM -0500, Jeff Garzik wrote:
>  
>
>>Although I suppose its possible that some alpha machines have SMI 
>>hardware, I don't think I've ever seen ACPI or IPMI on any alpha.
>>    
>>
>
>Yes, this stuff doesn't exist. I think it would be correct to add
>the following to drivers/char/ipmi/Kconfig, like it's done for ACPI:
>
>menu "IPMI"
>+	depends on IA64 || X86
>
>config IPMI_HANDLER
>       tristate 'IPMI top-level message handler'
>+	depends on IA64 || X86
>
>
>Ivan.
>  
>


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

end of thread, other threads:[~2005-03-23 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 22:35 [PATCH][alpha] "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined! Paweł Sikora
2005-03-22 21:06 ` Andrew Morton
2005-03-22 21:53   ` Jeff Garzik
2005-03-23  8:38     ` Ivan Kokshaysky
2005-03-23 13:51       ` Corey Minyard

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