All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen.5i5j@gmail.com>
To: 管雪涛 <gxt@pku.edu.cn>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>, linux-kernel@vger.kernel.org
Subject: Re: 回复: [PATCH] arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid compiling failure
Date: Wed, 21 May 2014 17:10:45 +0800	[thread overview]
Message-ID: <537C6D95.4040803@gmail.com> (raw)
In-Reply-To: <902561559.40766.1400659266944.JavaMail.root@bj-mail03.pku.edu.cn>


On 05/21/2014 04:01 PM, 管雪涛 wrote:
> 
> ----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
>> Add generic 'screen_info' just like another architectures have done
>> (e.g. tile, sh, score, ia64, hexagon, and cris).
>>
>> The related error (with allmodconfig under unicore32):
>>
>>     LD      init/built-in.o
>>   drivers/built-in.o: In function `vgacon_save_screen':
>>   powercap_sys.c:(.text+0x21788): undefined reference to `screen_info'
>>   drivers/built-in.o: In function `vgacon_resize':
>>   powercap_sys.c:(.text+0x21b54): undefined reference to `screen_info'
>>   drivers/built-in.o: In function `vgacon_switch':
>>   powercap_sys.c:(.text+0x21cb4): undefined reference to `screen_info'
>>   drivers/built-in.o: In function `vgacon_init':
>>   powercap_sys.c:(.text+0x2296c): undefined reference to `screen_info'
>>   drivers/built-in.o: In function `vgacon_startup':
>>   powercap_sys.c:(.text+0x22e80): undefined reference to `screen_info'
>>
>>
>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
>> ---
>>  arch/unicore32/kernel/setup.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/arch/unicore32/kernel/setup.c b/arch/unicore32/kernel/setup.c
>> index 87adbf5..94bc4bc 100644
>> --- a/arch/unicore32/kernel/setup.c
>> +++ b/arch/unicore32/kernel/setup.c
>> @@ -53,6 +53,8 @@ struct stack {
>>  
>>  static struct stack stacks[NR_CPUS];
>>  
>> +struct screen_info screen_info;
>> +
> 
> could be as following if it's only used by vga console:
> 
> +#ifdef CONFIG_VGA_CONSOLE
> +struct screen_info screen_info;
> +#endif
> 

Yeah, I shall send patch v2 for it (within this week). And also thank
you for your review the other patches.

BTW: I guess, it only leaves 2 kernel related issues for allmodconfig:

 - one for 'find_first*', 'cpuc_coherent_kern_range' and 'pm_power_off'.
   I guess, we can export their symbol explicitly to fix this issue.

 - the other for additional 'clk_*' which are needed when HAVE_CLK.
   I guess, just "copy/past" the other platforms' implementation is OK.

The related errors:

  ERROR: "clk_round_rate" [sound/spi/snd-at73c213.ko] undefined!
  ERROR: "clk_set_parent" [sound/soc/jz4740/snd-soc-jz4740-i2s.ko] undefined!
  ERROR: "clk_round_rate" [sound/soc/fsl/snd-soc-fsl-ssi.ko] undefined!
  ERROR: "clk_round_rate" [sound/soc/fsl/snd-soc-fsl-spdif.ko] undefined!
  ERROR: "find_first_bit" [sound/soc/codecs/snd-soc-uda1380.ko] undefined!
  ERROR: "find_first_zero_bit" [net/sctp/sctp.ko] undefined!
  ERROR: "find_first_bit" [net/phonet/phonet.ko] undefined!
  ERROR: "find_first_zero_bit" [net/nfc/nfc.ko] undefined!
  ERROR: "find_first_zero_bit" [net/netfilter/nf_tables.ko] undefined!
  ERROR: "find_first_bit" [net/mac80211/mac80211.ko] undefined!
  ERROR: "find_first_zero_bit" [net/bridge/bridge.ko] undefined!
  ERROR: "find_first_bit" [net/bridge/bridge.ko] undefined!
  ERROR: "find_first_zero_bit" [fs/reiserfs/reiserfs.ko] undefined!
  ERROR: "find_first_bit" [fs/ocfs2/ocfs2.ko] undefined!
  ERROR: "find_first_zero_bit" [fs/ocfs2/cluster/ocfs2_nodemanager.ko] undefined!
  ERROR: "find_first_bit" [fs/ocfs2/cluster/ocfs2_nodemanager.ko] undefined!
  ERROR: "find_first_zero_bit" [fs/nfs/nfsv4.ko] undefined!
  ERROR: "find_first_zero_bit" [fs/minix/minix.ko] undefined!
  ERROR: "find_first_bit" [fs/hfsplus/hfsplus.ko] undefined!
  ERROR: "find_first_zero_bit" [fs/gfs2/gfs2.ko] undefined!
  ERROR: "find_first_zero_bit" [fs/bfs/bfs.ko] undefined!
  ERROR: "find_first_zero_bit" [drivers/uwb/uwb.ko] undefined!
  ...

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

  reply	other threads:[~2014-05-21  9:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21  0:59 [PATCH] arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid compiling failure Chen Gang
2014-05-21  8:01 ` 回复: " 管雪涛
2014-05-21  9:10   ` Chen Gang [this message]
2014-05-21  9:23     ` 回复: " 管雪涛
2014-05-21  9:31       ` Chen Gang
2014-05-21 23:59         ` 回复: " 管雪涛
2014-05-22  0:19           ` Chen Gang
2014-05-22  0:31             ` 回复: " 管雪涛
2014-05-22  0:47               ` Chen Gang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537C6D95.4040803@gmail.com \
    --to=gang.chen.5i5j@gmail.com \
    --cc=gxt@mprc.pku.edu.cn \
    --cc=gxt@pku.edu.cn \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.