Re: [PATCH 1/1] netfilter/jump_label: use HAVE_JUMP_LABEL?

From: Zhouyi Zhou
Date: Thu Aug 21 2014 - 08:54:41 EST


Thanks Florian for reviewing

> -----Original Messages-----
> From: "Florian Westphal" <fw@xxxxxxxxx>

>
> Zhouyi Zhou <zhouzhouyi@xxxxxxxxx> wrote:
> >
> > CONFIG_JUMP_LABEL doesn't ensure HAVE_JUMP_LABEL, if it
> > is not the case use maintainers's own mutex to guard
> > the modification of global values.

CONFIG_JUMP_LABEL says the user wants to use jump labels.
But we also need the toolchain to support it.

That is reflected in CC_HAVE_ASM_GOTO=y, and if both are
set then HAVE_JUMP_LABEL is set to true.

> I don't understand this patch.
>
> What is the problem you are fixing?

There is basically no real problem here.
This patch only tries to make kernel code that using
static_key infrastructure appears "unified"
>
> The intent is to only use static_key infrastructure
> if user has enabled CONFIG_JUMP_LABEL.

The other parts of kernel either use #ifdef HAVE_JUMP_LABEL,
or use no "#ifdef" at all(the two exceptions are netfilter
and powerpc modules which I send patches to both).

Jason has suggested me to make the patches:
https://lkml.org/lkml/2014/8/20/761

"Unified" is the reason, I guess :-)
so rookies like me can have unified examples to follow



Cheers
Zhouyi






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