From patchwork Tue Sep 22 21:43:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11793273 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B4D68112E for ; Tue, 22 Sep 2020 21:43:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E2EF23A34 for ; Tue, 22 Sep 2020 21:43:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="2/zRgyqx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbgIVVno (ORCPT ); Tue, 22 Sep 2020 17:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbgIVVnn (ORCPT ); Tue, 22 Sep 2020 17:43:43 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB6FC061755; Tue, 22 Sep 2020 14:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=E8yPXrmAmXC425PS/UGZAI8Xr/ohRxvzglQPHDRJMN4=; b=2/zRgyqxZ0fXPI21L8+RD4pVUU c3vX5CgmMAPSgO1yLQqD7NV9XT4519pQjveIRwGMg3ArPZb7d6rhu/sk4UDhDdqnljoyi7wiucH0j kRLb4+CvhPwsr73snZzcSpMclvzAJDwucleaBsQlbvMj1CrNwyJZAiiay+uUlDcwZWMEPphRcy+pz 9TaHlu6QvForEd/VdB9vly6emwFhBRXrIRMaSdZGGv8OIBdfkxLrdRrUWV8Z8phKcaivJOch6f6Kt co7ht1dNL/xwlULwM5UX7qpF0xXhsCyioHX39bGL2CutAPakwEitdi8KAZ2VHyCs77x70cd/an2yS J2e6muHg==; Received: from [2601:1c0:6280:3f0:897c:6038:c71d:ecac] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKq4X-0004fa-PC; Tue, 22 Sep 2020 21:43:38 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, Peter Zijlstra , Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, "Paul E. McKenney" , Josh Triplett , rcu@vger.kernel.org Subject: [PATCH] RCU: export rcu_idle_enter/_exit for loadable modules Date: Tue, 22 Sep 2020 14:43:30 -0700 Message-Id: <20200922214331.26608-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org drivers/acpi/processor.ko uses rcu_idle_enter()/_exit() but they are not exported. This causes build errors on IA64, so export those 2 functions. ERROR: modpost: "rcu_idle_enter" [drivers/acpi/processor.ko] undefined! ERROR: modpost: "rcu_idle_exit" [drivers/acpi/processor.ko] undefined! Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Rafael J. Wysocki Cc: linux-acpi@vger.kernel.org Cc: Peter Zijlstra Cc: Tony Luck Cc: Fenghua Yu Cc: linux-ia64@vger.kernel.org Cc: "Paul E. McKenney" Cc: Josh Triplett Cc: rcu@vger.kernel.org --- Is there a problem with exporting these functions for use by loadable modules? If so, this driver should be modified not to use rcu_idle_enter/exit. kernel/rcu/tree.c | 2 ++ 1 file changed, 2 insertions(+) --- lnx-59-rc6.orig/kernel/rcu/tree.c +++ lnx-59-rc6/kernel/rcu/tree.c @@ -673,6 +673,7 @@ void rcu_idle_enter(void) lockdep_assert_irqs_disabled(); rcu_eqs_enter(false); } +EXPORT_SYMBOL_GPL(rcu_idle_enter); #ifdef CONFIG_NO_HZ_FULL /** @@ -886,6 +887,7 @@ void rcu_idle_exit(void) rcu_eqs_exit(false); local_irq_restore(flags); } +EXPORT_SYMBOL_GPL(rcu_idle_exit); #ifdef CONFIG_NO_HZ_FULL /**