Received: by 10.223.185.116 with SMTP id b49csp3965237wrg; Mon, 26 Feb 2018 08:58:20 -0800 (PST) X-Google-Smtp-Source: AH8x2271gnBhW7Q+2zRh5HYLYkph5//WWbDaIZFIm+KdBUHwxpizP3bm2M+8hLkdVzJo0n+SqczZ X-Received: by 10.98.252.22 with SMTP id e22mr11165041pfh.235.1519664299921; Mon, 26 Feb 2018 08:58:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519664299; cv=none; d=google.com; s=arc-20160816; b=kO1eP7sP1GRbpZxyYKbfeL4Nb90nFUXd+wCCTPgj9278FuIkbxrXlfhYR38Df3IabT +V3/2YSB0SMzr6GAbfm+CgEjPw1+jLkbWUW8OmwWCgMuiQ+l1CAM7/iDcM93DcTtq11a 6qvu2iTXMpLqkZaluWrgJmr1RAw4YNCs1hwRp3cDINKLLL2zi9N2RyZNXQnC/9iMlan4 JLiKYom484KU8CSsZTTS3byCTldZAhGx9Z5eZWQWbbcaEf49JJiJlRgDU5HthrK6RDHk laHrW9q9gecWBe+zZCdTlr0bNaoCX5zPaAjfk+bDZP2sBvvh37xiblMP4rjQdcowmnfI TGCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=/9TlLMILurH/U+N9z1fVu/8pKYvnFlVt9HK5jgNnAEI=; b=Y/TufJQKo5OOAlk2Upldma+kA0cpMh0MAy5yn6IE+0XTvTzpkcXbTaITrlhqrKmaBo encFIgLZDfac2p9cvEG9dlev7s/ERGI/JC7nwThKAoh+OebytdIGy55mkO9xFhVjrKco cgPOo+YfwCGyRnYs7IoXy9WjCNelk8Ds7jF9HjEVvf5Fmzma8YrA8Z6Qh/lTvgk1qj5S WFAPOQXLzlVrsnGpYLl8MUX//gfc+W53ep/IXFsY9hn6z4CAt4X3Zv9sFo+gpmohWGKI 1RL3jUdeM2m5IkfAh8M6CKZtU/m+13+I5Z6W/R8d3W4wZSawP8o80TRwrLVeK4kqEot1 0ODg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9-v6si5847453pll.680.2018.02.26.08.58.04; Mon, 26 Feb 2018 08:58:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbeBZQ5P (ORCPT + 99 others); Mon, 26 Feb 2018 11:57:15 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49830 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750941AbeBZQ5O (ORCPT ); Mon, 26 Feb 2018 11:57:14 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1QF8kLs127135 for ; Mon, 26 Feb 2018 10:16:30 -0500 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gckm7br43-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 26 Feb 2018 10:16:30 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 26 Feb 2018 15:16:27 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 26 Feb 2018 15:16:23 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1QFGNcb41156800; Mon, 26 Feb 2018 15:16:23 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 93D03A4040; Mon, 26 Feb 2018 15:09:28 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 25452A4053; Mon, 26 Feb 2018 15:09:28 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 26 Feb 2018 15:09:28 +0000 (GMT) From: Philipp Rudo To: kexec@lists.infradead.org, linux-s390@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Eric Biederman , Vivek Goyal , Michael Ellerman , Thiago Jung Bauermann , Martin Schwidefsky , Heiko Carstens , Andrew Morton , x86@kernel.org, Dave Young , AKASHI Takahiro Subject: [PATCH 01/11] kexec_file: Silence compile warnings Date: Mon, 26 Feb 2018 16:16:10 +0100 X-Mailer: git-send-email 2.13.5 In-Reply-To: <20180226151620.20970-1-prudo@linux.vnet.ibm.com> References: <20180226151620.20970-1-prudo@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18022615-0016-0000-0000-00000529FF97 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022615-0017-0000-0000-0000286627E1 Message-Id: <20180226151620.20970-2-prudo@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-26_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802260202 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building the kernel with CONFIG_KEXEC_FILE enabled gcc prints a compile warning multiple times. In file included from /linux/init/initramfs.c:526:0: /include/linux/kexec.h:120:9: warning: ‘struct kimage’ declared inside parameter list [enabled by default] unsigned long cmdline_len); ^ This is because the typedefs for kexec_file_load uses struct kimage before it is declared. Fix this by simply forward declaring struct kimage. Signed-off-by: Philipp Rudo --- include/linux/kexec.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/kexec.h b/include/linux/kexec.h index f16f6ceb3875..7bae5e87bf0d 100644 --- a/include/linux/kexec.h +++ b/include/linux/kexec.h @@ -114,6 +114,8 @@ struct purgatory_info { unsigned long purgatory_load_addr; }; +struct kimage; + typedef int (kexec_probe_t)(const char *kernel_buf, unsigned long kernel_size); typedef void *(kexec_load_t)(struct kimage *image, char *kernel_buf, unsigned long kernel_len, char *initrd, -- 2.13.5