From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6578AC433E0 for ; Fri, 19 Feb 2021 00:10:27 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC0FD64D9F for ; Fri, 19 Feb 2021 00:10:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC0FD64D9F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.ibm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To:Date:To:From: Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5CWnj9uh0MzruiPAIATvTtjkgROD6Ver0gbPBg2oQtE=; b=QKr/v09gRj4WSEMooOIAhhrvS JpbbR96iqRT8KgczOw6VnsjPwgUyuA98WhzahzXm3EtYzkf9ySV0rw/OC8qDa1558YxlI5v0yFnYK h5PTTkO6nGIgPxIppO2AViHL90fDRemN//U+jFFlKoH+ps4VOsQzreVQDBDmbAi4Uq6EMn4HMrG4c 2Uoy40rN9RF+wfCF9MRZ8WxIo/9KLb84WaT9WaNE4G30D8uY0dP3FsrWdDZgNENDdaD2Vs0y23ya9 ugVAQ5uUado3+0gthlzGnaPzh0e7Y5lQ5afgDIYA3SWnr+qsa7X/OjeDg4jKxTR6A2zhtWWeYbmpe wPJknzbVg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCtLH-0004Uu-Dz; Fri, 19 Feb 2021 00:08:19 +0000 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lCtLE-0004U9-C7 for linux-arm-kernel@lists.infradead.org; Fri, 19 Feb 2021 00:08:17 +0000 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 11J04edt137194; Thu, 18 Feb 2021 19:07:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=Hc7iP0dSCjCglGy8CL0I7K1Mp2bmFJnmdPntjscntUw=; b=PHIUdKmmbrq3yFv6zQJdZqijTiJOtkqsmCwwDHsDFGWnX3OW2ooy8J4NExhd4A6+/kd3 4rvDVpDk7TnlMgazxPv9bW1iujhHifrALZ6J9jZAQk3b63yYTV9L2YqtlA6hHSCEd4B4 J4UjA5fgGAdlHaNOk4XvYBS1fhzFuePHfxx/SdKwAppg1mC7NlxTYiIS7HfYiFgDk9jb rLOgVOmFdZMf7N3d4YO0+DXyuKuVG5S9k/jD/bIwE9TvNLmnaVn2ULXnU6v+TbPZDz0q ljCGQweIddjonRkud2pi9DDCXKy9szN7aILJdisbSrVb7lGBEs9J3NfEBglGXE9i75bm lw== Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 36sy3aw41b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Feb 2021 19:07:54 -0500 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 11J07qIc004692; Fri, 19 Feb 2021 00:07:52 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma02fra.de.ibm.com with ESMTP id 36p6d8jp3f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Feb 2021 00:07:52 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 11J07nYa18809186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Feb 2021 00:07:49 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ABC4611C04C; Fri, 19 Feb 2021 00:07:49 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8011511C04A; Fri, 19 Feb 2021 00:07:45 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.211.66.70]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 19 Feb 2021 00:07:45 +0000 (GMT) Message-ID: Subject: Re: [PATCH] of: error: 'const struct kimage' has no member named 'arch' From: Mimi Zohar To: Lakshmi Ramasubramanian , bauerman@linux.ibm.com, robh@kernel.org, takahiro.akashi@linaro.org, gregkh@linuxfoundation.org, will@kernel.org, joe@perches.com, catalin.marinas@arm.com, mpe@ellerman.id.au, sfr@canb.auug.org.au Date: Thu, 18 Feb 2021 19:07:44 -0500 In-Reply-To: <20210218223305.2044-1-nramas@linux.microsoft.com> References: <20210218223305.2044-1-nramas@linux.microsoft.com> X-Mailer: Evolution 3.28.5 (3.28.5-14.el8) Mime-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-02-18_14:2021-02-18, 2021-02-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 adultscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1011 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102180203 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210218_190816_600275_2323EAC1 X-CRM114-Status: GOOD ( 25.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sashal@kernel.org, devicetree@vger.kernel.org, benh@kernel.crashing.org, linux-kernel@vger.kernel.org, james.morse@arm.com, linux-integrity@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 2021-02-18 at 14:33 -0800, Lakshmi Ramasubramanian wrote: > of_kexec_alloc_and_setup_fdt() defined in drivers/of/kexec.c builds > a new device tree object that includes architecture specific data > for kexec system call. This should be defined only if the architecture > being built defines kexec architecture structure "struct kimage_arch". > > Define a new boolean config OF_KEXEC that is enabled if > CONFIG_KEXEC_FILE and CONFIG_OF_FLATTREE are enabled, and > the architecture is arm64 or powerpc64. Build drivers/of/kexec.c > if CONFIG_OF_KEXEC is enabled. > > Signed-off-by: Lakshmi Ramasubramanian > Fixes: 33488dc4d61f ("of: Add a common kexec FDT setup function") > Reported-by: kernel test robot > --- > drivers/of/Kconfig | 6 ++++++ > drivers/of/Makefile | 7 +------ > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > index 18450437d5d5..f2e8fa54862a 100644 > --- a/drivers/of/Kconfig > +++ b/drivers/of/Kconfig > @@ -100,4 +100,10 @@ config OF_DMA_DEFAULT_COHERENT > # arches should select this if DMA is coherent by default for OF devices > bool > > +config OF_KEXEC > + bool > + depends on KEXEC_FILE > + depends on OF_FLATTREE > + default y if ARM64 || PPC64 > + > endif # OF > diff --git a/drivers/of/Makefile b/drivers/of/Makefile > index c13b982084a3..287579dd1695 100644 > --- a/drivers/of/Makefile > +++ b/drivers/of/Makefile > @@ -13,11 +13,6 @@ obj-$(CONFIG_OF_RESERVED_MEM) += of_reserved_mem.o > obj-$(CONFIG_OF_RESOLVE) += resolver.o > obj-$(CONFIG_OF_OVERLAY) += overlay.o > obj-$(CONFIG_OF_NUMA) += of_numa.o > - > -ifdef CONFIG_KEXEC_FILE > -ifdef CONFIG_OF_FLATTREE > -obj-y += kexec.o > -endif > -endif > +obj-$(CONFIG_OF_KEXEC) += kexec.o > > obj-$(CONFIG_OF_UNITTEST) += unittest-data/ Is it possible to reuse CONFIG_HAVE_IMA_KEXEC here? Mimi _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel