lkml.org 
[lkml]   [2006]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] EDAC: Add Fully-Buffered DIMM APIs to core

--- Andrew Morton <akpm@osdl.org> wrote:

> On Thu, 14 Dec 2006 10:58:09 +0000
> Alan <alan@lxorguk.ukuu.org.uk> wrote:
>
> > > +void edac_mc_handle_fbd_ue(struct mem_ctl_info *mci,
> > > + unsigned int csrow,
> > > + unsigned int channela,
> > > + unsigned int channelb,
> > > + char *msg)
> > > +{
> > > + int len = EDAC_MC_LABEL_LEN * 4;
> > > + char labels[len + 1];
> >
> > Have you checked gcc generates the right code from this and not a
> dynamic
> > allocation. I'm not sure if you want "const int len" to force that
> ?
>
> gcc does the right thing. gcc-4.0.2 on x86_64, at least.
>

should have indicated my version as well as working:
gcc version 4.1.0 (SUSE Linux) x86_64

doug t


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

\
 
 \ /
  Last update: 2006-12-14 22:15    [W:0.031 / U:1.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site