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 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C43F0C32771 for ; Fri, 19 Aug 2022 21:02:10 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4M8Z290jCZz3dx2 for ; Sat, 20 Aug 2022 07:02:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=ElWWJTFF; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=rdunlap@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=ElWWJTFF; dkim-atps=neutral Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4M8Z1T6cqvz3cdn for ; Sat, 20 Aug 2022 07:01:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=PAcBO42BylxKVptePXYg0sDhCMDFOaqId5YBR1i2H60=; b=ElWWJTFFs7kCRoKeWdUnDYRBYa s1nXu3QEAdQutXkJjt9dns3Y7GiyGn9FfA4SrzkuE+t1lgu0ygS1XMrHldXXz+ZyMMt5TtO1eK4Ql XGpZrWl5wSKolkWHANKzJ3P3AdQTP7cUgTdWiEqgXLjYfKPX4Rt9Yq9/5l3QNC+38qhlvUKF2aIB7 ullgyfHIehIb7UairHAs9IwvNm/0aKWtb3CaVQf67oErzbTJPUvoQmoxsFNuqGBezMHhyFaA4PWrF 3UpFV/sdMDQKag3P+L5IT327wl7BToVSazCU3o0jU1sy00X44lD9yIwfURJFsDzLIfbWinaNL2tHx kfXhAaHg==; Received: from [2601:1c0:6280:3f0::a6b3] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oP97H-00BbKA-DH; Fri, 19 Aug 2022 21:01:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Subject: [PATCH] powerpc: export cpu_smallcore_map for modules Date: Fri, 19 Aug 2022 14:01:12 -0700 Message-Id: <20220819210112.7924-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Gautham R . Shenoy" , amd-gfx@lists.freedesktop.org, Felix Kuehling , Randy Dunlap , "Pan, Xinhui" , Nicholas Piggin , Alex Deucher , linuxppc-dev@lists.ozlabs.org, =?UTF-8?q?Christian=20K=C3=B6nig?= Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Fix build error when CONFIG_DRM_AMDGPU=m: ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! by exporting 'cpu_smallcore_map' just as other per_cpu symbols are exported. drivers/gpu/drm/amd/amdkfd/kfd_device.c calls cpu_smt_mask(). This is an inline function on powerpc which references cpu_smallcore_map. Fixes: 425752c63b6f ("powerpc: Detect the presence of big-cores via "ibm, thread-groups"") Fixes: 7bc913085765 ("drm/amdkfd: Try to schedule bottom half on same core") Signed-off-by: Randy Dunlap Cc: Gautham R. Shenoy Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org Cc: amd-gfx@lists.freedesktop.org Cc: Felix Kuehling Cc: Alex Deucher Cc: Christian König Cc: "Pan, Xinhui" --- arch/powerpc/kernel/smp.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -86,6 +86,7 @@ DEFINE_PER_CPU(cpumask_var_t, cpu_core_m static DEFINE_PER_CPU(cpumask_var_t, cpu_coregroup_map); EXPORT_PER_CPU_SYMBOL(cpu_sibling_map); +EXPORT_PER_CPU_SYMBOL(cpu_smallcore_map); EXPORT_PER_CPU_SYMBOL(cpu_l2_cache_map); EXPORT_PER_CPU_SYMBOL(cpu_core_map); EXPORT_SYMBOL_GPL(has_big_cores);