[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130325142630.faf41b11416c2e4ac3d61550@linux-foundation.org>
Date: Mon, 25 Mar 2013 14:26:30 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: Michal Hocko <mhocko@...e.cz>, Russ Anderson <rja@....com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
tglx@...utronix.de, mingo@...hat.com, hpa@...or.com
Subject: Re: [patch] mm: speedup in __early_pfn_to_nid
On Thu, 21 Mar 2013 19:03:21 +0100 Ingo Molnar <mingo@...nel.org> wrote:
> > IMO the local scope is more obvious as this is and should only be used
> > for caching purposes.
>
> It's a pattern we actively avoid in kernel code.
On the contrary, I always encourage people to move the static
definitions into function scope if possible. So the reader can see the
identifier's scope without having to search the whole file.
Unnecessarily giving the identifier file-scope seems weird.
--
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