Messages in this thread | | | Date | Mon, 7 Oct 2013 11:51:52 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH] static_key: WARN on usage before jump_label_init was called |
| |
On Sun, 6 Oct 2013 20:29:19 +0200 Hannes Frederic Sowa <hannes@stressinduktion.org> wrote:
> diff --git a/lib/jump_label_initialized.c b/lib/jump_label_initialized.c > new file mode 100644 > index 0000000..a668a40 > --- /dev/null > +++ b/lib/jump_label_initialized.c > @@ -0,0 +1,6 @@ > +#include <linux/types.h> > +#include <linux/cache.h> > + > +bool static_key_initialized __read_mostly = false; > +EXPORT_SYMBOL_GPL(static_key_initialized); > +
So far, the only thing I don't like about this patch is the creation of this file for the sole purpose of adding this variable.
Perhaps it can just be added to init/main.c?
-- Steve
| |