Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1241562pxb; Sun, 21 Feb 2021 17:40:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzs/1bPv2ztOvIMD+NiHIQHb60rUgxqQlimWqt9+qV1SjpR4EyFScU5nKM9BpX5kCqCazq/ X-Received: by 2002:a17:907:925:: with SMTP id au5mr6796401ejc.467.1613958020334; Sun, 21 Feb 2021 17:40:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613958020; cv=none; d=google.com; s=arc-20160816; b=iUTAfDBOq9HLjyNsRSB7rLlCi4IZ67AwtI0M6B1GTbgKLY5OFljel0ElW0SLzEs9Hi ykFI/PcIwtqYx2xl4C6Q0TYRLImmmDeuv268kEAeQAovp0k45MaMNFFwCHwm7Ey32kVF oTw8TnWnoCzWK3OX0u90Izja7A4syy+AIXdKNmJD8qzzoz/ArZLuET+o+UEJu63m6aWj 6pqg0ZZF6HW+xLNKVFmJ5ecKofuCqLdcivNdLAzUo0Bf/sgZFJHrVZ/RBJ8q5RE1gRsi DaRX6XWicfjdhM57VeIkoOKGb98ddP56HwIFSP8dCesVJvW1iSqfeSuAu7EyDHiQDGGu PzPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=ExCdsyPkQI85bgvWno/UIC3VrrC79Ve3YTXOyYnfvYU=; b=nvSFvUzYRZwSWZT6UuA296pt4azY+K91+pRmMhGLaoxIDC927e9emZgZYQt+kLCQd7 4zDXvZdweN6J4LTrvHoAViFWxILm4mxAuGzaUi+dCOZtMGaD72x5B1dyvGD4FpInPexA 00es4XdayCDFp9DmsLInjSj2TMm3UhwSz9QmvQb2bWJkp8iVDCtkdEooAWMI+ILWjmWy NfP9qo8aUABhwjdgyOHIsbAI8XxjkUW5wDlRy0kx0qW6Tfr2tcy/70pG3u5MBETwTx+Y mZRgD2MrfBWoheMl21XHcy/YoxUl+Q2CN9XJgOrN2TrP9Zteyyrt9WPTIIoTmiBW0cZN Z4FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Qq4J4yH6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk7si12273964ejb.570.2021.02.21.17.39.58; Sun, 21 Feb 2021 17:40:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Qq4J4yH6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231800AbhBVBgp (ORCPT + 99 others); Sun, 21 Feb 2021 20:36:45 -0500 Received: from linux.microsoft.com ([13.77.154.182]:44656 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231775AbhBVBgl (ORCPT ); Sun, 21 Feb 2021 20:36:41 -0500 Received: from [192.168.0.104] (c-73-42-176-67.hsd1.wa.comcast.net [73.42.176.67]) by linux.microsoft.com (Postfix) with ESMTPSA id D759320B57A0; Sun, 21 Feb 2021 17:35:59 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D759320B57A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1613957760; bh=ExCdsyPkQI85bgvWno/UIC3VrrC79Ve3YTXOyYnfvYU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Qq4J4yH6UugpeNQ3CD/H/jYSDYubKgYDrULJm5MSRGGMy4pVUF3ZhkkpFDiz4UKpC Fbe9plxzMLfQUkOqW20+R5R0Fp3HF31QA9jJO+T4Drq2NGRAd0AXMWGRuiHddmF4lc s/bgSL36U18cNAWtIPD4IoDQS7mWtllOclFbv2tE= Subject: Re: [PATCH v18 03/11] of: Add a common kexec FDT setup function To: Guenter Roeck Cc: zohar@linux.ibm.com, 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, mark.rutland@arm.com, benh@kernel.crashing.org, tao.li@vivo.com, paulus@samba.org, vincenzo.frascino@arm.com, frowand.list@gmail.com, sashal@kernel.org, masahiroy@kernel.org, jmorris@namei.org, allison@lohutok.net, serge@hallyn.com, devicetree@vger.kernel.org, pasha.tatashin@soleen.com, prsriva@linux.microsoft.com, hsinyi@chromium.org, linux-arm-kernel@lists.infradead.org, christophe.leroy@c-s.fr, mbrugger@suse.com, balajib@linux.microsoft.com, dmitry.kasatkin@gmail.com, linux-kernel@vger.kernel.org, james.morse@arm.com, linux-integrity@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20210213161049.6190-1-nramas@linux.microsoft.com> <20210213161049.6190-4-nramas@linux.microsoft.com> <20210222013207.GA142216@roeck-us.net> From: Lakshmi Ramasubramanian Message-ID: Date: Sun, 21 Feb 2021 17:35:59 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210222013207.GA142216@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/21/21 5:32 PM, Guenter Roeck wrote: Hi Guenter, > On Sat, Feb 13, 2021 at 08:10:41AM -0800, Lakshmi Ramasubramanian wrote: >> From: Rob Herring >> >> Both arm64 and powerpc do essentially the same FDT /chosen setup for >> kexec. The differences are either omissions that arm64 should have >> or additional properties that will be ignored. The setup code can be >> combined and shared by both powerpc and arm64. >> >> The differences relative to the arm64 version: >> - If /chosen doesn't exist, it will be created (should never happen). >> - Any old dtb and initrd reserved memory will be released. >> - The new initrd and elfcorehdr are marked reserved. >> - "linux,booted-from-kexec" is set. >> >> The differences relative to the powerpc version: >> - "kaslr-seed" and "rng-seed" may be set. >> - "linux,elfcorehdr" is set. >> - Any existing "linux,usable-memory-range" is removed. >> >> Combine the code for setting up the /chosen node in the FDT and updating >> the memory reservation for kexec, for powerpc and arm64, in >> of_kexec_alloc_and_setup_fdt() and move it to "drivers/of/kexec.c". >> >> Signed-off-by: Rob Herring >> Signed-off-by: Lakshmi Ramasubramanian > > s390:allmodconfig: > > drivers/of/kexec.c: In function 'of_kexec_alloc_and_setup_fdt': > drivers/of/kexec.c:378:10: error: 'const struct kimage' has no member named 'arch' > 378 | image->arch.elf_load_addr, > | ^~ > drivers/of/kexec.c:379:10: error: 'const struct kimage' has no member named 'arch' > 379 | image->arch.elf_headers_sz); > | ^~ > drivers/of/kexec.c:387:35: error: 'const struct kimage' has no member named 'arch' > 387 | ret = fdt_add_mem_rsv(fdt, image->arch.elf_load_addr, > | ^~ > drivers/of/kexec.c:388:16: error: 'const struct kimage' has no member named 'arch' > 388 | image->arch.elf_headers_sz); > | ^~ > I have posted a new patch set (link given below) that fixes the above build break. Could you please try that? https://patchwork.kernel.org/project/linux-integrity/patch/20210221174930.27324-14-nramas@linux.microsoft.com/ thanks, -lakshmi