Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2187700ybx; Fri, 8 Nov 2019 01:03:40 -0800 (PST) X-Google-Smtp-Source: APXvYqzsj8xye6OLnU3kYSVoj3mNVrTT7DK8M40bS5Zvt7NWnVFvUgmSsb2SyYNi/TaRxrtu6+9/ X-Received: by 2002:a17:906:27c5:: with SMTP id k5mr7356641ejc.173.1573203820576; Fri, 08 Nov 2019 01:03:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573203820; cv=none; d=google.com; s=arc-20160816; b=BVc7BH+/vVYrd8Z/iTfJSGQJlLDmwg1ZPv/1ObTlqwr1kvjWO4QmUIskTcijp5tggh 0dGuNU4UCz7RH/05S9+BIr64TpymATO4Sn+SrzeY2WuVWAkASR+Ve0Ck9nhU+qY/XHD3 g7ap3ymDF+K5dbXLNeHoqarw3eN49iRwxoGPY/p9kXgz90csxcXfeOW4530z13a07ifl jJOE9uDc01GMKEW00CQAeSRICFA+sKzB5T/fV5xuoh1AhOfE+6PRvOgjmR5UfjWYDHVJ 6BEKGQ/hY1KctGwC1RGyGgC8rI95Jqacou6GdIPopLQQpbrQ7U3yhstJFIbcAsIwjymW JXVg== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=rcMCl02DtgAodZc1y0NYd9at6CosXJepzGQl98OpFNI=; b=d8R6nMZ0XfuHU0Vrqd/a/gV6u4L6N9fpKJO+rTWVDQqNlGPXglCk6uViejrSTn+2SS wFKn2KoTQAtoSLEiVEzu68UX8N/50nm5kfW4opHfgOPS8hZiJc6+W3NPa0Lkzi9lb0rE X3vx7TUcXkDlCpqiAdI67Ewd0p0o82qMJgCj/maVRb+0rwVbh7bpRAK+JEdUAIA5yR6M 8tMbHmmb7FpsvuarPpsm9s3xkReN52Mr1YwggjX1oIol4k6NF6LAZJ10QBjqIZ2DkW5W swe97LGWg2FyKQyMRsWID/sahGic0Z/3KUExL8JwtZlEYSX+hePM/NnqYRGSJOYj+m9q C9lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iWm3B5ac; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si3416328ejt.360.2019.11.08.01.03.16; Fri, 08 Nov 2019 01:03:40 -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=@redhat.com header.s=mimecast20190719 header.b=iWm3B5ac; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731340AbfKHJBP (ORCPT + 99 others); Fri, 8 Nov 2019 04:01:15 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:22070 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728513AbfKHJBP (ORCPT ); Fri, 8 Nov 2019 04:01:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573203674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rcMCl02DtgAodZc1y0NYd9at6CosXJepzGQl98OpFNI=; b=iWm3B5acdFvtqt5EfRGjE4g529mRBRC2qKHNgNlgj8CXgTYIsvonZz4s3I91YP2wIVuEBo 71IOX2VLM4zpCeZeWuQd4eJ77QvgKYptJqaNEAQbV1sLzYgvJyssDOo7PXSz6eEQr/DDOW q0mwOWj6bXMNNWqo6RObQUAGsHjnvB8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-412-yCeEA3aXM7mippN68agMJw-1; Fri, 08 Nov 2019 04:01:10 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 45FE0800054; Fri, 8 Nov 2019 09:01:08 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-12-112.pek2.redhat.com [10.72.12.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 68AA85D6A5; Fri, 8 Nov 2019 09:00:58 +0000 (UTC) From: Lianbo Jiang To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, bhe@redhat.com, dyoung@redhat.com, jgross@suse.com, dhowells@redhat.com, Thomas.Lendacky@amd.com, ebiederm@xmission.com, vgoyal@redhat.com, d.hatayama@fujitsu.com, horms@verge.net.au, kexec@lists.infradead.org Subject: [PATCH 3/3 v9] kexec: Fix i386 build warnings that missed declaration of struct kimage Date: Fri, 8 Nov 2019 17:00:27 +0800 Message-Id: <20191108090027.11082-4-lijiang@redhat.com> In-Reply-To: <20191108090027.11082-1-lijiang@redhat.com> References: <20191108090027.11082-1-lijiang@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: yCeEA3aXM7mippN68agMJw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kbuild test robot reported some build warnings as follow: 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 int crash_load_segments(struct kimage *image); ^~~~~~ int crash_copy_backup_region(struct kimage *image); ^~~~~~ int crash_setup_memmap_entries(struct kimage *image, ^~~~~~ The 'struct kimage' is defined in the header file include/linux/kexec.h, before using it, need to include its header file or make a declaration. Otherwise the above warnings may be triggered. Add a declaration of struct kimage to the file arch/x86/include/asm/ crash.h, that will solve these compile warnings. Fixes: dd5f726076cc ("kexec: support for kexec on panic using new system ca= ll") Reported-by: kbuild test robot Signed-off-by: Lianbo Jiang Link: https://lkml.kernel.org/r/201910310233.EJRtTMWP%25lkp@intel.com --- 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 3dff55f4ed9d..88eadd08ad70 100644 --- a/arch/x86/include/asm/crash.h +++ b/arch/x86/include/asm/crash.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_CRASH_H #define _ASM_X86_CRASH_H =20 +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, --=20 2.17.1