Received: by 10.223.185.116 with SMTP id b49csp2000053wrg; Mon, 12 Feb 2018 02:32:38 -0800 (PST) X-Google-Smtp-Source: AH8x225cBVipVmN5L86nb98TSdZFuQ1X24KN+5z5IiAQNOSCJs1jw2CQjiJ1Gis98uORr2B0OAav X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr10697400plb.402.1518431558714; Mon, 12 Feb 2018 02:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518431558; cv=none; d=google.com; s=arc-20160816; b=USe2qdTYxvQ6mSHGwkSHH0f1VH9Ssq7KBrmfUZY4SpJOP68uyWuwXcVPzsdI/Gtpbp 6NCllWIqmMUcImNy69yCWhTqwbCI2gBUvE7tV4gDNu7BCLFCrt8XYknB1IRPJQawOriC qJsev2+77tPVU0l3jEcTxlRoSgoRE3/BOUnfhIp8B7r3IEyql0PfOQtZlTA4aI2WvRSS vxKyUbzAb3wEEftdImdQorsBIlrrH5hXu+G7ZEzP/oQHjT+aI1w/YiiYQSgwIvscjwLg pYl2Q6p4nGWk/EpL6CanB4RSE5kGwuREIPCGpBtoO2VgztRpVC4Ts+tMcXPqKA5QRLIc Fhgg== 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=hGqa5s/zpmYKgv4GPC1UX2XfmxwnuMwD/nauBaE5M1KBCKikvOzhrZ8dNtdmPJlX1M e3OLAl5hAcGs/w8t5Mfvz3TT+jD236EdWo+hjaS9VQ7WxLWDGb3Ip+xBQhfweWAjhJwb ELH+E7XAzDnfiV10BYsG3IzKINQL1b7jBWTvA7PTvy2T7yllSDZzZ41CPlPgNRKVAZOT xyYqHQnqIH0uL9BSeq6/WoiHXrMidN75z8EB8ME5OS+27VfzikgrwKjzZUjWjpvgCwgC ygqBRX6zTkBTNrRLNmfxHu/GJem6o6EBllmChUNSbKpkKWE/zVYF6UqJqiIwHjgL6rkZ W4ag== 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 m63-v6si5608653pld.753.2018.02.12.02.32.23; Mon, 12 Feb 2018 02:32:38 -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 S933480AbeBLKIG (ORCPT + 99 others); Mon, 12 Feb 2018 05:08:06 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36716 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932868AbeBLKIC (ORCPT ); Mon, 12 Feb 2018 05:08:02 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1CA4PXA050160 for ; Mon, 12 Feb 2018 05:08:01 -0500 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 2g30f00rmb-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Feb 2018 05:08:00 -0500 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Feb 2018 10:07:59 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Feb 2018 10:07:56 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1CA7uoB49807532; Mon, 12 Feb 2018 10:07:56 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1305CAE04D; Mon, 12 Feb 2018 09:59:02 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B33D0AE045; Mon, 12 Feb 2018 09:59:01 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Mon, 12 Feb 2018 09:59:01 +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 Subject: [PATCH 01/17] kexec_file: Silence compile warnings Date: Mon, 12 Feb 2018 11:07:38 +0100 X-Mailer: git-send-email 2.13.5 In-Reply-To: <20180212100754.55121-1-prudo@linux.vnet.ibm.com> References: <20180212100754.55121-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: 18021210-0040-0000-0000-0000040ECB53 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021210-0041-0000-0000-000026128962 Message-Id: <20180212100754.55121-2-prudo@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-12_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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802120131 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