linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arc: kernel: export symbol for pm_power_off in reset.c
@ 2013-10-28  3:49 Chen Gang
  2013-10-28  4:09 ` Chen Gang
  2013-10-28 14:09 ` Vineet Gupta
  0 siblings, 2 replies; 4+ messages in thread
From: Chen Gang @ 2013-10-28  3:49 UTC (permalink / raw)
  To: vgupta; +Cc: Arnd Bergmann, linux-kernel

Need export symbol for it, or can not pass compiling, the related error
with allmodconfig: 

    MODPOST 2994 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@asianux.com>
---
 arch/arc/kernel/reset.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arc/kernel/reset.c b/arch/arc/kernel/reset.c
index e227a2b..2768fa1 100644
--- a/arch/arc/kernel/reset.c
+++ b/arch/arc/kernel/reset.c
@@ -31,3 +31,4 @@ void machine_power_off(void)
 }
 
 void (*pm_power_off) (void) = NULL;
+EXPORT_SYMBOL(pm_power_off);
-- 
1.7.7.6

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

* Re: [PATCH] arc: kernel: export symbol for pm_power_off in reset.c
  2013-10-28  3:49 [PATCH] arc: kernel: export symbol for pm_power_off in reset.c Chen Gang
@ 2013-10-28  4:09 ` Chen Gang
  2013-10-28 14:09 ` Vineet Gupta
  1 sibling, 0 replies; 4+ messages in thread
From: Chen Gang @ 2013-10-28  4:09 UTC (permalink / raw)
  To: vgupta; +Cc: Arnd Bergmann, linux-kernel



After this patch, and with limitations below, arc finishes allmodconfig.

 - with EXTRA_CFLAGS=-mmedium-calls.

 - disable CONFIG_CC_OPTIMIZE_FOR_SIZE.

 - by pass 5-7 gcc issues (4-5 may duplicate).

 - by pass 1 binutils issue (when disable CONFIG_CC_OPTIMIZE_FOR_SIZE).


Next (within 2013-10-31) I will/should:

 - shrink cross-compilers information, at least.

 - finish the patch for "portable assembler code - newline"


Left:

 - it also content sevaval warnings (even not use "EXTRA_CFLAGS=-W").

 - for next-20130927 tree, arc can not pass defconfig, either.

 - not let it run under kvm (I don't know whether we support kvm).


Thanks.

On 10/28/2013 11:49 AM, Chen Gang wrote:
> Need export symbol for it, or can not pass compiling, the related error
> with allmodconfig: 
> 
>     MODPOST 2994 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@asianux.com>
> ---
>  arch/arc/kernel/reset.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arc/kernel/reset.c b/arch/arc/kernel/reset.c
> index e227a2b..2768fa1 100644
> --- a/arch/arc/kernel/reset.c
> +++ b/arch/arc/kernel/reset.c
> @@ -31,3 +31,4 @@ void machine_power_off(void)
>  }
>  
>  void (*pm_power_off) (void) = NULL;
> +EXPORT_SYMBOL(pm_power_off);
> 


-- 
Chen Gang

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

* Re: [PATCH] arc: kernel: export symbol for pm_power_off in reset.c
  2013-10-28  3:49 [PATCH] arc: kernel: export symbol for pm_power_off in reset.c Chen Gang
  2013-10-28  4:09 ` Chen Gang
@ 2013-10-28 14:09 ` Vineet Gupta
  2013-10-29  1:09   ` Chen Gang
  1 sibling, 1 reply; 4+ messages in thread
From: Vineet Gupta @ 2013-10-28 14:09 UTC (permalink / raw)
  To: Chen Gang; +Cc: Arnd Bergmann, linux-kernel

On 10/28/2013 09:19 AM, Chen Gang wrote:
> Need export symbol for it, or can not pass compiling, the related error
> with allmodconfig: 
> 
>     MODPOST 2994 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@asianux.com>

Applied for 3.13

Thx,
-Vineet

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

* Re: [PATCH] arc: kernel: export symbol for pm_power_off in reset.c
  2013-10-28 14:09 ` Vineet Gupta
@ 2013-10-29  1:09   ` Chen Gang
  0 siblings, 0 replies; 4+ messages in thread
From: Chen Gang @ 2013-10-29  1:09 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: Arnd Bergmann, linux-kernel

On 10/28/2013 10:09 PM, Vineet Gupta wrote:
> On 10/28/2013 09:19 AM, Chen Gang wrote:
>> Need export symbol for it, or can not pass compiling, the related error
>> with allmodconfig: 
>>
>>     MODPOST 2994 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@asianux.com>
> 
> Applied for 3.13
> 

Thanks.
-- 
Chen Gang

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

end of thread, other threads:[~2013-10-29  1:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-28  3:49 [PATCH] arc: kernel: export symbol for pm_power_off in reset.c Chen Gang
2013-10-28  4:09 ` Chen Gang
2013-10-28 14:09 ` Vineet Gupta
2013-10-29  1:09   ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).