From patchwork Tue Sep 28 02:27:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12521573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8979CC433FE for ; Tue, 28 Sep 2021 02:30:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 488A961156 for ; Tue, 28 Sep 2021 02:30:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 488A961156 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CdQdCRSX41ULpx4s2E/XwASd/KcnE63q82xYsJHGYLg=; b=mSu1F5DYmA2tBQ Iaz3WIefkO/Q5UNNInZrmO4PJITJ1MJY9xCihEfC77PHO3yjKsncCXYsNlvhLCFNTAtI9m3ADzt76 buDkXE7/7LvgkuhvhZuathc6vb9oOA/FPf9dI5DTTSAvC1D65SaixFgyaFebNiH/uSxd4yZHf2LnC 7n0TRYdKrd0jU4kgolY7txuawNjmeI9FE0ZjCYqhwwWFXckIVZ2qPfatEkPo8txCd2DTDDRiHgQjw iAqcwP75LYa3wIPcY/g1ahM/KzH96RcWIWuj6jQ/UpU8co4zRsE0xIsUXp0hrozeHiQ7KgUVBobA2 rIfhMXjP3aANYJUxnczQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qb-005G4j-Gt; Tue, 28 Sep 2021 02:27:57 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mV2qX-005G3j-Iw for linux-arm-kernel@lists.infradead.org; Tue, 28 Sep 2021 02:27:54 +0000 Received: by mail-pj1-x102f.google.com with SMTP id ce20-20020a17090aff1400b0019f13f6a749so362609pjb.4 for ; Mon, 27 Sep 2021 19:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i0AUyB2sOpCKW6OjZ4jzAR2Vztgfecasij1zuMuy22o=; b=p9s7OQ8TW3B7mOkmDYXYe0Wq24C1wtyFzw3GockKWL2hlJ48ocOVdyr6i7w9TdbmcZ f66rdBbWzNHpgQWJbcsB3AxxspaY9RjokP44hFZ0PomE2u6UIDXxLKICiE4LSsHiluIL cW73LAiedV1l6bZCQCy8SgZES1GZST7i18vuaR2k6Gy+WlZwkCCWtGeDqSO6tyoeFBnF SKXXOb9gMJJIRBiZEA45MAHBi2LIQcWkV/tYx4Ui4EdwMDDAKfrblCuS1HZMQ4sS/XNz Au3Snoo1T2vEgLib5aV8buy0W/kU4qviA8AsvKs8a1HtToF/Dfy3U0idlMa8PNvyY8ua th5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i0AUyB2sOpCKW6OjZ4jzAR2Vztgfecasij1zuMuy22o=; b=ZGjh1yaRAY8fJMhxs1W2uWH08Kx5LY1EHcBqjXVthI9ZHEjI7fC492LJM7QTbwzC3j xpjzhfTGGooTdueCQ5DjK5hN2tWv6Q+q8IMwgKmAuQB6bAkykeAOE4bVY9NkgXMDCBr/ /xP8uCKIcdBdyT8YGg4AEq+9QOIYzdgTmPfZi43LJSSd7SL5Bj2ovo2FvONBwT9VHux4 Sq1O90ot2dUhgeeOctcVRRE8xDwlOFLrcrRXdakAgm4INPl9StdD++xAIAmnw/7UsQL/ nM1kByND+iQedz1YUXGCJu8wYmlnyngc42wU17s63jhwiJAenwKVwjWU7/bnLtfXXTkp nu/A== X-Gm-Message-State: AOAM5323l2ITfXqJayaWGjJ3VWL/g3+0vAXjjjnCQNLkfNMLbp/vlM60 KvJPLCqH0jtYLVxZM+LkASE= X-Google-Smtp-Source: ABdhPJzGz+eVNEqSY0DfTXBtwCCb3Ikt+yFBapGOIMIO+bqczMCYnuiG3Rbvb/PFqOD5252NQXxkPg== X-Received: by 2002:a17:90a:4618:: with SMTP id w24mr2661385pjg.142.1632796072796; Mon, 27 Sep 2021 19:27:52 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14sm633261pji.45.2021.09.27.19.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 19:27:52 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Russell King , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Catalin Marinas , Will Deacon , Yoshinori Sato , Rich Felker , Thomas Gleixner , Marc Zyngier , Rob Herring , Frank Rowand , Ard Biesheuvel , Mike Rapoport , Linus Walleij , Andrew Morton , Geert Uytterhoeven , Arnd Bergmann , Guenter Roeck , Kefeng Wang , Mark Rutland , Andrey Konovalov , Anshuman Khandual , Valentin Schneider , Ingo Molnar , Peter Zijlstra , linux-arm-kernel@lists.infradead.org (moderated list:ARM PORT), linux-sh@vger.kernel.org (open list:SUPERH), linux-mips@vger.kernel.org (open list:BROADCOM BMIPS MIPS ARCHITECTURE), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE) Subject: [PATCH v2 01/12] arch: Export cpu_logical_map to modules Date: Mon, 27 Sep 2021 19:27:04 -0700 Message-Id: <20210928022715.369160-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210928022715.369160-1-f.fainelli@gmail.com> References: <20210928022715.369160-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210927_192753_655542_318A3D7F X-CRM114-Status: GOOD ( 15.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to allow drivers/irqchip/irq-bcm7038-l1.c to be built as a module and usable in GKI, export cpu_logical_map or __cpu_logical_map towards the modules. This follows what MIPS has been doing since 2dc2ae344e0e ("MIPS: Export __cpu_number_map and __cpu_logical_map.") Signed-off-by: Florian Fainelli --- arch/arm/kernel/setup.c | 1 + arch/arm64/kernel/setup.c | 1 + arch/sh/kernel/smp.c | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 284a80c0b6e1..abd5c999bdb2 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -585,6 +585,7 @@ void notrace cpu_init(void) } u32 __cpu_logical_map[NR_CPUS] = { [0 ... NR_CPUS-1] = MPIDR_INVALID }; +EXPORT_SYMBOL(__cpu_logical_map); void __init smp_setup_processor_id(void) { diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index be5f85b0a24d..d8f796ae13c4 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -290,6 +290,7 @@ u64 cpu_logical_map(unsigned int cpu) { return __cpu_logical_map[cpu]; } +EXPORT_SYMBOL(cpu_logical_map); void __init __no_sanitize_address setup_arch(char **cmdline_p) { diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c index 65924d9ec245..8f16cfaad238 100644 --- a/arch/sh/kernel/smp.c +++ b/arch/sh/kernel/smp.c @@ -30,6 +30,7 @@ int __cpu_number_map[NR_CPUS]; /* Map physical to logical */ int __cpu_logical_map[NR_CPUS]; /* Map logical to physical */ +EXPORT_SYMBOL(__cpu_logical_map); struct plat_smp_ops *mp_ops = NULL;