Re: 2.6.39-rc4+: Kernel leaking memory during FS scanning,regression?
From: Thomas Gleixner
Date: Fri Apr 29 2011 - 14:27:06 EST
On Fri, 29 Apr 2011, Mike Frysinger wrote:
> On Thu, Apr 28, 2011 at 18:02, Thomas Gleixner wrote:
> > -static int hrtimer_clock_to_base_table[MAX_CLOCKS];
> > +static int hrtimer_clock_to_base_table[MAX_CLOCKS] = {
> > + Â Â Â [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
> > + Â Â Â [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
> > + Â Â Â [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
> > +};
>
> this would let us constify the array too
Indeed.