From patchwork Fri Sep 24 17:05:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12516149 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 B235DC433EF for ; Fri, 24 Sep 2021 17:10:14 +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 8322E61251 for ; Fri, 24 Sep 2021 17:10:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8322E61251 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=XJLdL38MmLdbPf42h40+woOrnarAyt4zQNMylGtscWs=; b=SV3oCMetSpk67X gPPRgr/fovjlmWhOESpzObuU/CDCwaVOYSWAcO9B2SwMLC2DwVrDZ1LGr1coPlv7Cz9kv/Q3w99Kt St2qIMxK06AdKKSm4keKZwV/UYCuFuupiXY9bGoP0NswYvLygpi78m5iOj388j52scHz7pTJkWPt+ KmJESOH+V6+8/H2iGhk58hU4Ey8C6Nq7Jqzcrn3c9s2I259Tw4dMLbEZT7Ur+SRsZz7dF2uP6tBo6 yaVDUghI5Ey2a6NSzwm82rLPROahDkYDhzt2z3ZSm47wABAcSaKRtMV3vXfu5OGi37qWTu5VjNskS V9BJ7oddjZrqCB1fwdBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTofG-00FASF-7o; Fri, 24 Sep 2021 17:07:10 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTof0-00FALi-AV for linux-arm-kernel@lists.infradead.org; Fri, 24 Sep 2021 17:06:56 +0000 Received: by mail-pj1-x102b.google.com with SMTP id dw14so7421825pjb.1 for ; Fri, 24 Sep 2021 10:06: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=KexeGIrvAziDcYoUK48mJY3zTzuUlfhpYMgePd+knLE=; b=d8ZXYTgT9nfLRctbFMlW9oJzgeQzv0JrVDIRcAwL3P0PEc9aidW19XBGd4C4X1wyKD nYtz7N9xS7MLTtJQSEBccaAYqpEwdKaBuG0bM7Eig2hxYCGOXqDUyP9XA4BSvLq6bNSA tYK5pYiZQqKXU3xi5MFTdy5ohgxXJARDYuxUU4Z3m9RV5+cTnR4o9aG5BBRtGC8JaMiv Cr1UldrJEiOu1/N4uqi0EPcqBOjseFv1G03qwa+Ror/iZdEu+7OSPl8ei99fOgvKlk4G 1at+HRJVsvylppI2Y1HSyAH+T9gDwRNI1upwE3i6ETYjzQf/DWvm9khDutQzeCib/U1K ZqAw== 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=KexeGIrvAziDcYoUK48mJY3zTzuUlfhpYMgePd+knLE=; b=roLoWjC+Am60JXgKiAN+if/I+jKgOPz/TBeVJbw893BRCXSQEtCV6e1SSa2rC/627l a5cNTy7SfpJWDSBRQzClOL09EhCGbqJhFvJaElTIlxzYPz+44VrosoMFD7sFEL6SeOZ/ TyKEqc4sP9HnLy/QToFPQhBllgeJtkP/BjifmAF1U/Vi6uQXdwhxjjg8hfM0OUE8G16y nK3+8XUfNh71eFxRgnjCn6wJQXiZ7q09ShNiIeg76/8EHPOy+aMI4ERuZE42tzaRGDrK XFbRmn0cAm/Kvvx3eJEb6V8KWztoQPgfFSgvb7F9EjmLe5CzoQVSRp793zfQbqgI7qOF b+Mg== X-Gm-Message-State: AOAM530nJMKxefZQn9CzFunhw33IA1ozC/3GCIeWL0EG1wmI5n7bqWmz BGaq5pz4QMOsaXFcNfNpIAA= X-Google-Smtp-Source: ABdhPJzJXERWobi3uw9D7vhpYswwOefbO0WzvR9hp2OR4tX1I7NfOw3pna4NkY/xgW9i8qQLlqhwuQ== X-Received: by 2002:a17:902:6bc6:b0:13b:8622:93ed with SMTP id m6-20020a1709026bc600b0013b862293edmr10039364plt.87.1632503213145; Fri, 24 Sep 2021 10:06:53 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k22sm9659312pfi.149.2021.09.24.10.06.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 10:06: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 01/11] arch: Export cpu_logical_map to modules Date: Fri, 24 Sep 2021 10:05:36 -0700 Message-Id: <20210924170546.805663-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210924170546.805663-1-f.fainelli@gmail.com> References: <20210924170546.805663-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-20210924_100654_383584_AD87CC32 X-CRM114-Status: GOOD ( 15.07 ) 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. 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;