From: Tejun Heo on

This is the proper patchset to break implicit slab.h inclusion from
percpu.h. Please refer to the last RFC posting[L] for background.

This patchset contains the following four patches.


0001 and 0002 massages slightly weird inclusion problems in
preparation of further changes.

0003 updates gfp.h and slab.h inclusions such that actual users
include them explicitly. This patch is largely based on conversions
automatically generated by the following script.

The patch description explains how the conversion was done and
verified. Please read it for details. This patch was too large
(>1.7M) and only the patch description and diffstat are posted. The
whole patch is available in the git tree or via http[1].

0004 actually updates percpu.h such that slab.h is not included

The following configurations have been tested (more details in patch
0003 description),

* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig

I had only a couple of problems with the above tests and I'm fairly
confident about the coverage of the conversion and if there are
prolems, they are likely to be in arch headers which should be easy to
discover and fix on most builds of the affected arch.

If nobody objects, I'd like to publish it to linux-next through the
percpu tree, let it settle and get tested there for some time. Ingo,
it would also be great if you can put these changes through your build

After it gets some testing, if Linus agrees, I hope this could be
pulled into the mainline although the merge window is well over now.
The changes are mostly trivial and I actually think it makes more
sense to merge this kind of stuff while the code base is relatively

The patchset is available in the following git branch.

git:// slabh

and the patch tarball at



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at