Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2066796rwb; Fri, 19 Aug 2022 14:43:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR7HZLWqgtp0oXjeeMNCKkKXQB5pBKKuduUG9XPvXRPtUoV4/7y4cGLN00/spxgiiz01V8Pu X-Received: by 2002:a17:90a:f490:b0:1f7:6ecf:33d7 with SMTP id bx16-20020a17090af49000b001f76ecf33d7mr10615269pjb.210.1660945423890; Fri, 19 Aug 2022 14:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660945423; cv=none; d=google.com; s=arc-20160816; b=CoT9t6ys1j4e5iIKXckSXFqNuvgYwzvn2AUUsjKW56wrKYvHJFRnqeEq5zk/r7BnqF QQCAbqiLJHmYSzT8vJjVqZcJ4/EDnlDnqzCuoCvqMz5ZPvkrGVM8IUqpLjLbGYSbcL9u JPViRQQiCou/C+722BjdRSzv10zbuMnzoCjQv4P6HqtUvbteXVZWOM6yMEkGTzETd/gx /WvyKWnFUueT+mauslFh65UHh472fJQPBqU7aXJ0rqaxe8iC+QlvNr9G9YzjP1rjwWoJ 82grOncuBW6nSI1NuZl40OkZflRdgdtUVE+DRE/BY556xEhewAh41VHJBikGfW4pNT4N CIPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PAcBO42BylxKVptePXYg0sDhCMDFOaqId5YBR1i2H60=; b=X+zqvYNvZPkYop0Cvr2j86Iu9JSW1gj7GPZywZdJYipuXSiz3SsWJCJSz8bfbzIO8R SHAxMsvvHLh2qHKyHD660KHnVOmdkIN1pLYCQV08Xv3PitlreLMguZknwiOjizSiLJ3Y olx9h6cW86wD7dvKxH4MeLUxwYXgZ7OyU0yAZcL/vsygyhHBvrTVXS9PzfpJxkSuzv51 oRBQDlTckBAC5nF69rUfq4Yd3IPe3MXko+3YljgNf/LzU7YUf5K9PmvlRuW1/gzflc8q lqdH+NS3Tlez2EyIYDycQ/70NwlYHGUbPRRDMBMFMsoC6hFouoo68av7f5DoZNrH2vV6 T3pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ElWWJTFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a17090a3c8a00b001f3344bf5c6si7873375pjc.98.2022.08.19.14.43.32; Fri, 19 Aug 2022 14:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ElWWJTFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352096AbiHSVB3 (ORCPT + 99 others); Fri, 19 Aug 2022 17:01:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351994AbiHSVB0 (ORCPT ); Fri, 19 Aug 2022 17:01:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5788D8E15 for ; Fri, 19 Aug 2022 14:01:23 -0700 (PDT) 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 Cc: Randy Dunlap , "Gautham R . Shenoy" , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, amd-gfx@lists.freedesktop.org, Felix Kuehling , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" 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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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);