Re: [PATCH] jump label: constify lookup functions

From: Steven Rostedt
Date: Thu Mar 20 2014 - 13:14:06 EST


On Fri, 14 Mar 2014 15:40:05 -0400
Sasha Levin <sasha.levin@xxxxxxxxxx> wrote:

> ping?
>
> On 02/12/2014 08:56 AM, Sasha Levin wrote:
> > ping?
> >
> > On 01/27/2014 02:27 PM, Sasha Levin wrote:
> >> Modify the parameters of all the lookup and the bookkeeping functions which
> >> should be const to const.
> >>
> >> For example, jump_label_text_reserved() doesn't modify the memory it works on,
> >> it just checks whether there are any jump labels there.
> >>
> >> Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx>
> >> ---
> >> arch/arm/include/asm/jump_label.h | 2 +-
> >> arch/arm/kernel/jump_label.c | 6 ++---
> >> arch/arm64/include/asm/jump_label.h | 2 +-
> >> arch/arm64/kernel/jump_label.c | 6 ++---
> >> arch/mips/include/asm/jump_label.h | 2 +-
> >> arch/mips/kernel/jump_label.c | 2 +-
> >> arch/powerpc/include/asm/jump_label.h | 2 +-
> >> arch/powerpc/kernel/jump_label.c | 2 +-
> >> arch/s390/include/asm/jump_label.h | 2 +-
> >> arch/s390/kernel/jump_label.c | 12 ++++-----
> >> arch/sparc/include/asm/jump_label.h | 2 +-
> >> arch/sparc/kernel/jump_label.c | 2 +-
> >> arch/x86/include/asm/jump_label.h | 2 +-
> >> arch/x86/include/asm/spinlock.h | 2 +-
> >> arch/x86/kernel/jump_label.c | 6 ++---

The arch changes should be broken up per arch. They are not dependent
on each other, and they require being either acked by or pulled in by
the architecture maintainers.

> >> include/linux/jump_label.h | 27 ++++++++++----------
> >> kernel/jump_label.c | 46 ++++++++++++++++++-----------------
> >> 17 files changed, 64 insertions(+), 61 deletions(-)

The jump label generic patch should also be by itself, and that I can
take.

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