回复: [PATCH 2/3] arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.

2014-05-26 Thread 管雪涛

- Chen Gang  写道:
> Two driver modules need 'pm_power_off', so export it.
> 
> The related error (with allmodconfig under unicore32):
> 
> MODPOST 4039 modules
>   ERROR: "pm_power_off" [drivers/mfd/retu-mfd.ko] undefined!
>   ERROR: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
> 
> 
> Signed-off-by: Chen Gang 

Acked-by: Xuetao Guan 

> ---
>  arch/unicore32/kernel/process.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c
> index 778ebba..b008e99 100644
> --- a/arch/unicore32/kernel/process.c
> +++ b/arch/unicore32/kernel/process.c
> @@ -60,6 +60,7 @@ void machine_halt(void)
>   * Function pointers to optional machine specific functions
>   */
>  void (*pm_power_off)(void) = NULL;
> +EXPORT_SYMBOL(pm_power_off);
>  
>  void machine_power_off(void)
>  {
> -- 
> 1.9.2.459.g68773ac

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


[PATCH 2/3] arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.

2014-05-26 Thread Chen Gang
Two driver modules need 'pm_power_off', so export it.

The related error (with allmodconfig under unicore32):

MODPOST 4039 modules
  ERROR: "pm_power_off" [drivers/mfd/retu-mfd.ko] undefined!
  ERROR: "pm_power_off" [drivers/char/ipmi/ipmi_poweroff.ko] undefined!


Signed-off-by: Chen Gang 
---
 arch/unicore32/kernel/process.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c
index 778ebba..b008e99 100644
--- a/arch/unicore32/kernel/process.c
+++ b/arch/unicore32/kernel/process.c
@@ -60,6 +60,7 @@ void machine_halt(void)
  * Function pointers to optional machine specific functions
  */
 void (*pm_power_off)(void) = NULL;
+EXPORT_SYMBOL(pm_power_off);
 
 void machine_power_off(void)
 {
-- 
1.9.2.459.g68773ac
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 2/3] arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.

2014-05-26 Thread Chen Gang
Two driver modules need 'pm_power_off', so export it.

The related error (with allmodconfig under unicore32):

MODPOST 4039 modules
  ERROR: pm_power_off [drivers/mfd/retu-mfd.ko] undefined!
  ERROR: pm_power_off [drivers/char/ipmi/ipmi_poweroff.ko] undefined!


Signed-off-by: Chen Gang gang.chen.5...@gmail.com
---
 arch/unicore32/kernel/process.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c
index 778ebba..b008e99 100644
--- a/arch/unicore32/kernel/process.c
+++ b/arch/unicore32/kernel/process.c
@@ -60,6 +60,7 @@ void machine_halt(void)
  * Function pointers to optional machine specific functions
  */
 void (*pm_power_off)(void) = NULL;
+EXPORT_SYMBOL(pm_power_off);
 
 void machine_power_off(void)
 {
-- 
1.9.2.459.g68773ac
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


回复: [PATCH 2/3] arch: unicore32: ksyms: export 'pm_power_off' to avoid compiling failure.

2014-05-26 Thread 管雪涛

- Chen Gang gang.chen.5...@gmail.com 写道:
 Two driver modules need 'pm_power_off', so export it.
 
 The related error (with allmodconfig under unicore32):
 
 MODPOST 4039 modules
   ERROR: pm_power_off [drivers/mfd/retu-mfd.ko] undefined!
   ERROR: pm_power_off [drivers/char/ipmi/ipmi_poweroff.ko] undefined!
 
 
 Signed-off-by: Chen Gang gang.chen.5...@gmail.com

Acked-by: Xuetao Guan g...@mprc.pku.edu.cn

 ---
  arch/unicore32/kernel/process.c | 1 +
  1 file changed, 1 insertion(+)
 
 diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c
 index 778ebba..b008e99 100644
 --- a/arch/unicore32/kernel/process.c
 +++ b/arch/unicore32/kernel/process.c
 @@ -60,6 +60,7 @@ void machine_halt(void)
   * Function pointers to optional machine specific functions
   */
  void (*pm_power_off)(void) = NULL;
 +EXPORT_SYMBOL(pm_power_off);
  
  void machine_power_off(void)
  {
 -- 
 1.9.2.459.g68773ac

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/