linux-mips
[Top] [All Lists]

Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: COMMAND_LINE_SIZE and CONFIG_FRAME_WARN
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sat, 07 Nov 2009 00:18:46 +0800
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=QqzD6zHmfa1/WAXJ/NKaDumw9p2kslWA5L7MKQURKZ0=; b=YNZimz0ang+4LoHhxUKHp3/SaAaodzYwwN95OB/iIEAoV+aQFPPC1aIZQ6vBWLa8CJ i7jjNVfr7K8ikNjIVxmBDYod61Y5h2WbA44ObgEyaGTjODYOMmIor79WOjshbwXo6N+Q lukiKSawso8tx2Q89RJ9xddUBL9gNDViUkRVg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=tYE1I+ymgC//CMps86AHthFPMw1ZhspHlDKt1u4jmSs55MEM6/0Y+2gbzcZjEJ4Z5w x1zd+szhK0INfmPaSU7tIRDMS2Q+V8Kb2ts8B5AlfONCo0ZKErX74zjFaNtGWMdkkD63 I3ySLZ+JnxbxMRSgLnKE/GWDNhPhvYiJh0qh0=
In-reply-to: <20091107.010839.246840249.anemo@mba.ocn.ne.jp>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20091107.010839.246840249.anemo@mba.ocn.ne.jp>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
On Sat, 2009-11-07 at 01:08 +0900, Atsushi Nemoto wrote:
> Recently COMMAND_LINE_SIZE (CL_SIZE) was extended to 4096 from 512.
> (commit 22242681 "MIPS: Extend COMMAND_LINE_SIZE")
> 
> This cause warning if something like buf[CL_SIZE] was declared as a
> local variable, for example in prom_init_cmdline() on some platforms.
> 
> And since many Makefiles in arch/mips enables -Werror, this cause
> build failure.
> 
> How can we avoid this error?
> 
> - do not use local array? (but dynamic allocation cannot be used in
>   such an early stage.  static array?)
> - are there any way to disable -Wframe-larger-than for the file or function?
> - make COMMAND_LINE_SIZE customizable?
> - use non default CONFIG_FRAME_WARN?
> 
> Any comments or suggestions?

does "static" helps this problem?

Regards,
        Wu Zhangjin


<Prev in Thread] Current Thread [Next in Thread>