Re: [PATCH] Separate tainted code from panic code

From: Alexey Dobriyan
Date: Thu Sep 15 2005 - 03:10:59 EST


On Tue, Sep 13, 2005 at 05:28:16PM -0700, Andrew Morton wrote:
> Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
> > * Create kernel/tainted.c and include/linux/tainted.h
> > * Move all tainted-related stuff from kernel/panic.c and
> > include/linux/kernel.h there.
> > * #include <linux/tainted.h> where needed.
> > * Switch #include <linux/kernel.h> to #include <linux/tainted.h> in
> > kernel/module.c and mm/page_alloc.c . Said includes were added during
> > add_taint() propagation and tainted stuff was in kernel.h back then.
>
> Why? What reason is there for making these changes?

Most tainted users are in arch/$ARCH/kernel/. The rest including
kernel.h don't want tainted stuff. And kernel.h is used often.

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