Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3118764imm; Thu, 17 May 2018 03:48:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq69J7IXEnz6ddjiwd5NhnlNcs33YDrv36nsJbg4Kx7/7G+Bo81+x28bJq/wnmrRVrkyyRg X-Received: by 2002:a65:5946:: with SMTP id g6-v6mr3653521pgu.391.1526554136943; Thu, 17 May 2018 03:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526554136; cv=none; d=google.com; s=arc-20160816; b=FSlmhLkISuUMc8IjaqTZw7UkIIcSk1H6QVv7EtxdDCelxVNioIKpCfon3rKaTGwkhL hdQ6lwYlbKFU7BbRlnA4yFLd9E17Xx07JG+OZGxYNvwnS/p/hrZFpSLaspAluILaKFbA zmxelAbLM3QyZqvXXinD32ciy8zmsYCRZr6Uey4Y1284cjdiNv1bCns4zGc3GySnM8Dy BhRDz3P3DGAP57JjjGnIUYfyXQ4O20SCUEtMKIBWdfVJMLhEkGyUelATGHOBDHluVGYZ IBD6yB8bYg77TWHK8YBjf0RsXrieQH8hxrmrvvaGiNneeAZRl0clm0cI//UGyURZPNxT dAsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0LwXn5ZT572Eh9FPvSdIU7wxeqdp1ZOhpSGsdloeC6c=; b=tqPvUz8jWpvgseFYYKqctnnNumLoKHvuiilK/RrSnUf0Oxhry22LZGXZay9JAp2w2J ahfusE2jpCBD+HTbcDDeQsEVER8Iv9A0stEQn+LozHKWEms3FddT+L5xx35uWuVOHnV3 pXD3kSu1HrEKyEC9FcRM+vcA6IZJ4+YXUnf1JMzxP+2hWnj7GJfg/0/BtAYW0PysD2Fs 3aSS9GLCOFkb8map+PxjvYep8BANmCvOZE8pC5JgPgtTntsEn5xONxBVD2gPK3o0Bifp DW2Og6TK7C8rWu+2/vksICieqYq5uuf2UM+J/m5wJAn95ZLJDf2Qf9D+JnTbr+O+AVvg 3RgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j72-v6si3805890pgc.465.2018.05.17.03.48.42; Thu, 17 May 2018 03:48:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbeEQKrT (ORCPT + 99 others); Thu, 17 May 2018 06:47:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:50203 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbeEQKrR (ORCPT ); Thu, 17 May 2018 06:47:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 143A1AE6C; Thu, 17 May 2018 10:47:16 +0000 (UTC) From: Petr Vorel To: linux-integrity@vger.kernel.org Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Petr Vorel , Mimi Zohar Subject: [PATCH] ima: Fix pr_fmt() redefinition Date: Thu, 17 May 2018 12:47:02 +0200 Message-Id: <20180517104702.24689-1-pvorel@suse.cz> X-Mailer: git-send-email 2.16.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previous definition was too late and caused problems in powerpc allyesconfig: 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 Fixes: 3dea0d93d257 ("ima: Unify logging") Signed-off-by: Petr Vorel Reported-by: Stephen Rothwell --- security/integrity/ima/ima_kexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/integrity/ima/ima_kexec.c b/security/integrity/ima/ima_kexec.c index db0de585f6c0..16bd18747cfa 100644 --- a/security/integrity/ima/ima_kexec.c +++ b/security/integrity/ima/ima_kexec.c @@ -10,13 +10,13 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include #include "ima.h" -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt - #ifdef CONFIG_IMA_KEXEC static int ima_dump_measurement_list(unsigned long *buffer_size, void **buffer, unsigned long segment_size) -- 2.16.3