Re: [PATCH 1/2] jump label: introduce static_branch() interface

From: Jason Baron
Date: Thu Mar 10 2011 - 16:18:41 EST


On Thu, Mar 10, 2011 at 04:01:35PM -0500, Steven Rostedt wrote:
> On Wed, 2011-03-09 at 15:47 -0500, Jason Baron wrote:
>
> > diff --git a/arch/x86/kernel/jump_label.c b/arch/x86/kernel/jump_label.c
> > index 961b6b3..dfa4c3c 100644
> > --- a/arch/x86/kernel/jump_label.c
> > +++ b/arch/x86/kernel/jump_label.c
> > @@ -4,13 +4,13 @@
> > * Copyright (C) 2009 Jason Baron <jbaron@xxxxxxxxxx>
> > *
> > */
> > -#include <linux/jump_label.h>
> > #include <linux/memory.h>
> > #include <linux/uaccess.h>
> > #include <linux/module.h>
> > #include <linux/list.h>
> > #include <linux/jhash.h>
> > #include <linux/cpu.h>
> > +#include <linux/jump_label.h>
> > #include <asm/kprobes.h>
> > #include <asm/alternative.h>
> >
> > diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c
>
> Jason,
>
> I'm curious, is there a reason for this header change? Clean up? Maybe
> it could go into a separate patch. If anything, just to make this one
> slightly smaller.
>

hmm...I did that to get types.h for the new atomic_t usage.

However, now that I look at it again its bogus. The right fix is to
explicitly include <linux/types.h> from jump_label.h.

-Jason
--
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/