Received: by 10.213.65.68 with SMTP id h4csp1169897imn; Wed, 21 Mar 2018 04:32:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELtUUnV8Jc5P+cWTUg+WepM/WxcALmivh80kpUNXLb/rcIBKWfa/OwWqye3pfrrHd07QQjtC X-Received: by 10.98.162.26 with SMTP id m26mr16595733pff.217.1521631954544; Wed, 21 Mar 2018 04:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521631954; cv=none; d=google.com; s=arc-20160816; b=Gv0eLy6Cc/ROAVBPzMaUYLyq90A6INz9KgCpZvaVF8MolZl++9mLdludTKAcJScNEw KECZP7RzllwRdlT8AhTu6bB44yHonDqpWBwCmQusf1pqG0N9ZyDE4ug7m/4SasttnwSi LGH5xR78hiA0P3FV3G3sJ9Cs3Adg8cNGe+9C2E0v6KS/a87hsFuVyzsGRllTzIKmGxVc 6SBcnU5ZRJVzmeepaz3C0TZFfOJyTDqYMcfMF+77if/2A2W5isFr0rrgV3NqP1BBFKYf LbrQaBVCgYjrSalIfV6FQGfRZ10bx3P5qT8BLYB0gL/wzxIqhv96fWXpwRCtN95HAXR/ 1CTQ== 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=0VOk4ioIygfqQ6uEuJZv64c2LCCWyXRicU7vbDhig7dVir3ZI2AfVI0/5pMkuPHw7j Zoet33hpOUvBlGdlyAIkZo83NiYDzSh3kCJFAlQ0U5OEvs5Sc+Xtdy8NmIOkqIc5UlVO 4mOgyJOQwugx7kxA11R3D2FdQWiYE/HeLzrWNoZ1y5WF+z4Nt18r4Qrs7M9+bG96vKAZ ck7EVbTdmJbShASBtrNDkkzVP354Cq44mm81zvS+7zicaHu3r+TjBq9oq//x9avX9FGd icB+OV2Bg1OpF3bU/7hxvZNWFZBEvmQidKBe/wgeu79d+rlJqQpzu9Qb7A4p6Jue4pQ1 qJJw== 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 l30-v6si339020pli.536.2018.03.21.04.32.20; Wed, 21 Mar 2018 04:32:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890AbeCUL2G (ORCPT + 99 others); Wed, 21 Mar 2018 07:28:06 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33532 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751553AbeCUL2B (ORCPT ); Wed, 21 Mar 2018 07:28:01 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2LBQKqQ028062 for ; Wed, 21 Mar 2018 07:28:00 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gun59uus3-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 21 Mar 2018 07:27:59 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 21 Mar 2018 11:27:57 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 21 Mar 2018 11:27:54 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2LBRrO751118086; Wed, 21 Mar 2018 11:27:53 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2DAC64C050; Wed, 21 Mar 2018 11:21:01 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C41AE4C063; Wed, 21 Mar 2018 11:21:00 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 21 Mar 2018 11:21:00 +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 , Ingo Molnar Subject: [PATCH v2 01/11] kexec_file: Silence compile warnings Date: Wed, 21 Mar 2018 12:27:41 +0100 X-Mailer: git-send-email 2.13.5 In-Reply-To: <20180321112751.22196-1-prudo@linux.vnet.ibm.com> References: <20180321112751.22196-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: 18032111-0020-0000-0000-00000407BADC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18032111-0021-0000-0000-0000429BD8F2 Message-Id: <20180321112751.22196-2-prudo@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-21_04:,, 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-1803210139 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