[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130531074017.GC16809@mtj.dyndns.org>
Date: Fri, 31 May 2013 16:40:17 +0900
From: Tejun Heo <tj@...nel.org>
To: Clemens Ladisch <clemens@...isch.de>
Cc: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
Timur Tabi <timur.tabi@...xeda.com>,
Mark Langsdorf <mark.langsdorf@...xeda.com>,
linux-kernel@...r.kernel.org, linux-ide@...r.kernel.org
Subject: Re: [PATCH v2] ata: increase retry count but shorten duration for
Calxeda controller
On Fri, May 31, 2013 at 08:53:37AM +0200, Clemens Ladisch wrote:
> Sergei Shtylyov wrote:
> > On 30-05-2013 18:26, Timur Tabi wrote:
> >>> + const unsigned long timing[] = { 5, 100, 500};
> >
> >> You'll save space and time if you also make this array "static",
> >> otherwise the compiler will build the array every time this function is
> >> called.
> >
> > No, *const* specifier is enough to not build this array every time. It will be put into the .const section.
>
> gcc disagrees:
Doesn't really matter this or that way but let's do static const as,
more than anything else, that's what other places are doing.
Thanks.
--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists