[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B9F36C7.4020304@kernel.org>
Date: Tue, 16 Mar 2010 16:44:07 +0900
From: Tejun Heo <tj@...nel.org>
To: Ingo Molnar <mingo@...e.hu>
CC: Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
lkml <linux-kernel@...r.kernel.org>,
Lee Schermerhorn <Lee.Schermerhorn@...com>,
Christoph Lameter <cl@...ux-foundation.org>,
penberg@...helsinki.fi, adobriyan@...il.com
Subject: Re: [RFC] remove implicit slab.h inclusion from percpu.h
Hello,
On 03/16/2010 03:54 PM, Tejun Heo wrote:
> Maybe a better way is to grab for slab API usages in .c files which
> don't have slab.h inclusion. If breaking the dependency is the way to
> go, I can definitely write up some scripts and do test builds on some
> archs. There sure will be some fallouts but I think it won't be too
> bad.
Hmmm... here are some interesting numbers. Not completely exact but
should give the general ballpark idea.
all .c files : 13999
.c files which use any of slab interface : 5603
.c files which include slab.h : 2519
.c files which include slab.h but don't use it : 577
.c files which use slab but don't include it : 3661
.c files with k[mzc]alloc/k[z]free usage : 5291
.c files with other slab interface usage : 356
C files which use k[mzc]alloc/k[z]free covers ~38% of all c files.
One possibility is to separate out those into kmalloc.h and make it
available universally via kernel.h.
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