Re: linux-next: build warning after merge of the integrity tree

From: Petr Vorel
Date: Thu May 17 2018 - 04:49:34 EST


Hi Stephen,

> Hi all,

> After merging the integrity tree, today's linux-next build (powerpc
> allyesconfig) produced this warning:

> security/integrity/ima/ima_kexec.c:18:0: warning: "pr_fmt" redefined
> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

> In file included from include/linux/kernel.h:14:0,
> from include/asm-generic/bug.h:18,
> from arch/powerpc/include/asm/bug.h:128,
> from include/linux/bug.h:5,
> from include/linux/seq_file.h:7,
> from security/integrity/ima/ima_kexec.c:13:
> include/linux/printk.h:288:0: note: this is the location of the previous definition
> #define pr_fmt(fmt) fmt

> Introduced by commit

> 3dea0d93d257 ("ima: Unify logging")

thanks for reporting.
Reproduced, working on fix now.

Kind regards,
Petr