From patchwork Mon Oct 29 23:52:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10660389 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7CB613BF for ; Mon, 29 Oct 2018 23:54:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDC8928CD0 for ; Mon, 29 Oct 2018 23:54:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEFF429238; Mon, 29 Oct 2018 23:54:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EB8528CD0 for ; Mon, 29 Oct 2018 23:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=+Jf7+vbir7T0zvZnn79P+extJa7Cfm3RtSoHy8R/7w8=; b=CIfeoFPr51bIx1jOzOqcbNHgev yCWRoGtaFPllS+Hk+iCuQ8kdE72OQc1xLCtB2jwkhe5pXw6TQ1Q/OPruHUQRYPB+2Q4/p7QYP8HtX GHmSxkJzFv2veEMN/Z199jFeZknC+lhEV5bVPpsF5brblSF3l+cgFFhTqoYQ6Pif3uFYg8FTvB6J6 KxR1cZx2YchqeZkIs1o/tXBFkQgYaT0cqC7stEVb+UssITIcoELbMqr8vkbczyBcfwqLgfC2NKj43 YsqMILdxffsv91h4Xj3FMJAE2FJNkfFF2LyLzO47jSwq6M9p6HHjCqADk+zNTUMaDCLqXggsoF9s5 5mp1PGSA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHHMK-0004i3-Aq; Mon, 29 Oct 2018 23:54:12 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHHKx-000429-JT for linux-arm-kernel@lists.infradead.org; Mon, 29 Oct 2018 23:52:59 +0000 Received: by mail-pl1-x643.google.com with SMTP id n4-v6so4010409plp.2 for ; Mon, 29 Oct 2018 16:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xRniQ/SenF/b2HkRCisGu8vGveS5ZrM6Rdu1vfSJ1hU=; b=NdfWYyrJaKwj0g5pJz1Dt03O59C9R58Rk2vAj1lodD9y2gN1oN9JDzi77jkpb18I35 xD8gUuFi8XvlfsnepqG/DnZSP2MlRo9pOG9RI9plDEcle8dggoqCC+Qm9+PLQUydjuMV 1QleRUKhNLCm0KFls5X0syhY69a3PYAHrBOmtMan9W5+pBy7VaQeveVibXo6pL6+HaYw yxVKEoZ3zGFXW62nxN5CqPv/v/yos+nucGc9VwP+QrsZyoN5IvtRsDvIs8VjGm8EU/Ww XYrZjkpHG4Hg3WpSahZvJOJWxs6gOh0pyaipEdiuSL6QxxCJaZ+M8HiUPtlR2oOb6UVq NxHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xRniQ/SenF/b2HkRCisGu8vGveS5ZrM6Rdu1vfSJ1hU=; b=RgcxDUcEDNIUhiydbrpbbozBdx/T48UY3a8z3fKGUa+ujd8QEOM5WFsTLbGVNFhLIN LamWryUqM2Nhoap9tOeq4OjFDEFiSHBjJLDSdEDiahtE/OpomC63GGX6Pj7GU4jNXvXg UE6Hvm5529XnA6P1jOLNwrwxlssHZuV7R/1N4XIXz1HTR0PVK79ZlFNAURt0e0+PJ+fO POLypMhB//bcDhZNoVXW2fVUxksqo3gYxozWmEvL8GrVWey2zhXQSk4VRfWT9J1q+PR2 KCLoN3lp8ulhuTf2G9eIJIfDxeWHUzDWQo8RlFJwNHLGdPGvuAG4mGHu8A4+T1bBM/gk SDcg== X-Gm-Message-State: AGRZ1gI5TnvVK/CAxdAqWzgbc8zwgpr7ouUgx2WQrWRXef99+ZzHG0yb 4lYEN9q1hJXICWXnIpKDleI= X-Google-Smtp-Source: AJdET5e5bw1tFJSx1qa61gkDTjZ9BaPVELRZjfaIRFIPo8U1E7PTr0pTB7nsNKPA3E34HYQe+nw5zA== X-Received: by 2002:a17:902:7201:: with SMTP id ba1-v6mr902814plb.79.1540857156701; Mon, 29 Oct 2018 16:52:36 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id k13-v6sm22537981pff.30.2018.10.29.16.52.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 16:52:35 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arch: Make phys_initrd_start and phys_initrd_size global variables Date: Mon, 29 Oct 2018 16:52:02 -0700 Message-Id: <20181029235206.30060-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029235206.30060-1-f.fainelli@gmail.com> References: <20181029235206.30060-1-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181029_165247_701672_8A1256FA X-CRM114-Status: GOOD ( 13.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: CHANDAN VN , Catalin Marinas , Will Deacon , Stefan Agner , Masahiro Yamada , deanbo422@gmail.com, Frank Rowand , Florian Fainelli , linux@armlinux.org.uk, rppt@linux.ibm.com, Andrey Ryabinin , Laura Abbott , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" , Marc Zyngier , Andrey Konovalov , Kristina Martsenko , Russell King , Rob Herring , green.hu@gmail.com, gxt@pku.edu.cn, "moderated list:ARM64 PORT AARCH64 ARCHITECTURE" , ard.biesheuvel@linaro.org, Johannes Weiner , Andrew Morton , Robin Murphy , Greg Hackmann MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Make phys_initrd_start and phys_initrd_size global variables that will later be referenced by generic code under drivers/of/fdt.c. Signed-off-by: Florian Fainelli --- arch/arm/mm/init.c | 4 ++-- arch/unicore32/mm/init.c | 4 ++-- include/linux/initrd.h | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 0cc8e04295a4..8f364aa24172 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -51,8 +51,8 @@ unsigned long __init __clear_cr(unsigned long mask) } #endif -static phys_addr_t phys_initrd_start __initdata = 0; -static unsigned long phys_initrd_size __initdata = 0; +phys_addr_t phys_initrd_start __initdata = 0; +unsigned long phys_initrd_size __initdata = 0; static int __init early_initrd(char *p) { diff --git a/arch/unicore32/mm/init.c b/arch/unicore32/mm/init.c index 8f8699e62bd5..4dd26d6f02e5 100644 --- a/arch/unicore32/mm/init.c +++ b/arch/unicore32/mm/init.c @@ -31,8 +31,8 @@ #include "mm.h" -static unsigned long phys_initrd_start __initdata = 0x01000000; -static unsigned long phys_initrd_size __initdata = SZ_8M; +phys_addr_t phys_initrd_start __initdata = 0x01000000; +unsigned long phys_initrd_size __initdata = SZ_8M; static int __init early_initrd(char *p) { diff --git a/include/linux/initrd.h b/include/linux/initrd.h index 84b423044088..14beaff9b445 100644 --- a/include/linux/initrd.h +++ b/include/linux/initrd.h @@ -21,4 +21,7 @@ extern int initrd_below_start_ok; extern unsigned long initrd_start, initrd_end; extern void free_initrd_mem(unsigned long, unsigned long); +extern phys_addr_t phys_initrd_start; +extern unsigned long phys_initrd_size; + extern unsigned int real_root_dev;