Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11813272pjo; Thu, 2 Jan 2020 14:43:49 -0800 (PST) X-Google-Smtp-Source: APXvYqwLZJBwSdva4wJWujSPH5yA9vygqPr5rJtDtVkPyJFaOxZwj4drJqQnRknwSArMwgLMG7cM X-Received: by 2002:a05:6830:1251:: with SMTP id s17mr92951950otp.108.1578005028754; Thu, 02 Jan 2020 14:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578005028; cv=none; d=google.com; s=arc-20160816; b=zgz7G/uu7LnjMJMnrj0a381Yd3OLMivzu/htY8NuqpQ58VvBeDBqcLShnSAeiJoUy+ eMpYdLCIJaVNmtvTAJuACTFocRb1BYhBgLchx4RSp/58kaJMWZykWZfjpxRO7et1btDw 93elwr2/b9WLozvvqGd8bbLw0LR+snNF2qhmWqQtb8eB7lOFEjp9QOpgMdyFxT0yBA/T QzqJ40fPfzro+tzqNps82Ty9Zv7Cc7pxy8FlGuHOM6R+e40tBX5WuChvgcDjafF/n7s7 AKbyxykU+wAirSBgKYGvmSffcxwjWxakucMCaYm24DnCl0uPFEFgFx/pxZeCMpkLCMuo /ewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=w5WZEzmCzZ4B4450DUl89M+2i9198+Qd7LZobb1WedM=; b=t5IR7+txMYMBCqD8bXHqOILf5Ly5aj/yfFrmIMkNvmz89iThEHfd9AjqEGsKlWVicv dUUgKF0ncnU6TG90AY2ipedNc40CjS7grClWKGvZIlQ5AAUujkIHzwmJGsiBfvt4Sq1w lHtRW8sdX1cgS0N6W+DW5OEvf7WkLiqAiJtJefD/tS/e6YnorCzPiX01OJA/efifVvoa Tn/+QJgCzpmJpW7CC2VjOEhE0Be0pnab2CjWo2qkSPA49kNG/soJNL5U/yjgQ9jI/MYw cUQfuHInJs61y+FCcce9wJgdS8k79Pawzn7a191yIswp+I5HSpWStF02JkKHTSrpEjFC nzNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="cZoy/HCK"; 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 v6si29094699ota.19.2020.01.02.14.43.37; Thu, 02 Jan 2020 14:43:48 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b="cZoy/HCK"; 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 S1730735AbgABWhG (ORCPT + 99 others); Thu, 2 Jan 2020 17:37:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:48940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730775AbgABWhC (ORCPT ); Thu, 2 Jan 2020 17:37:02 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2849121835; Thu, 2 Jan 2020 22:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578004621; bh=ppgK/Z1Tl2mzmrMrhwV0dBlz3PbE2nuuFq53RhKPk8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cZoy/HCK2l+Ey5Y2yDysOlQ1LNbVUbjlG54K6yCfbB2q/adtiRD4DK0uPgi/kqi4I +zqw75CHD8BGvDjAZ5QUkcoYGc88J/fZFV2EQgV0wvEsxp1zdkMa058399nEsVSBeL JbQfmAehN1ARWC05Yymks4uOf0NnEiwVPDDEadUo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Lianbo Jiang , Borislav Petkov , bhe@redhat.com, d.hatayama@fujitsu.com, dhowells@redhat.com, dyoung@redhat.com, ebiederm@xmission.com, horms@verge.net.au, "H. Peter Anvin" , Ingo Molnar , =?UTF-8?q?J=C3=BCrgen=20Gross?= , kexec@lists.infradead.org, Thomas Gleixner , Tom Lendacky , vgoyal@redhat.com, x86-ml , Sasha Levin Subject: [PATCH 4.4 057/137] x86/crash: Add a forward declaration of struct kimage Date: Thu, 2 Jan 2020 23:07:10 +0100 Message-Id: <20200102220554.193611012@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220546.618583146@linuxfoundation.org> References: <20200102220546.618583146@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lianbo Jiang [ Upstream commit 112eee5d06007dae561f14458bde7f2a4879ef4e ] Add a forward declaration of struct kimage to the crash.h header because future changes will invoke a crash-specific function from the realmode init path and the compiler will complain otherwise like this: In file included from arch/x86/realmode/init.c:11: ./arch/x86/include/asm/crash.h:5:32: warning: ‘struct kimage’ declared inside\ parameter list will not be visible outside of this definition or declaration 5 | int crash_load_segments(struct kimage *image); | ^~~~~~ ./arch/x86/include/asm/crash.h:6:37: warning: ‘struct kimage’ declared inside\ parameter list will not be visible outside of this definition or declaration 6 | int crash_copy_backup_region(struct kimage *image); | ^~~~~~ ./arch/x86/include/asm/crash.h:7:39: warning: ‘struct kimage’ declared inside\ parameter list will not be visible outside of this definition or declaration 7 | int crash_setup_memmap_entries(struct kimage *image, | [ bp: Rewrite the commit message. ] Reported-by: kbuild test robot Signed-off-by: Lianbo Jiang Signed-off-by: Borislav Petkov Cc: bhe@redhat.com Cc: d.hatayama@fujitsu.com Cc: dhowells@redhat.com Cc: dyoung@redhat.com Cc: ebiederm@xmission.com Cc: horms@verge.net.au Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Jürgen Gross Cc: kexec@lists.infradead.org Cc: Thomas Gleixner Cc: Tom Lendacky Cc: vgoyal@redhat.com Cc: x86-ml Link: https://lkml.kernel.org/r/20191108090027.11082-4-lijiang@redhat.com Link: https://lkml.kernel.org/r/201910310233.EJRtTMWP%25lkp@intel.com Signed-off-by: Sasha Levin --- arch/x86/include/asm/crash.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/crash.h b/arch/x86/include/asm/crash.h index f498411f2500..1b15304dd098 100644 --- a/arch/x86/include/asm/crash.h +++ b/arch/x86/include/asm/crash.h @@ -1,6 +1,8 @@ #ifndef _ASM_X86_CRASH_H #define _ASM_X86_CRASH_H +struct kimage; + int crash_load_segments(struct kimage *image); int crash_copy_backup_region(struct kimage *image); int crash_setup_memmap_entries(struct kimage *image, -- 2.20.1