From patchwork Tue Feb 22 10:23:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Leroy X-Patchwork-Id: 12754769 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97553C433F5 for ; Tue, 22 Feb 2022 10:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230507AbiBVKYS (ORCPT ); Tue, 22 Feb 2022 05:24:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbiBVKYR (ORCPT ); Tue, 22 Feb 2022 05:24:17 -0500 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D846158DB0; Tue, 22 Feb 2022 02:23:52 -0800 (PST) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4K2wHf6MWRz9sSN; Tue, 22 Feb 2022 11:23:42 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQ-gzpr5xSeH; Tue, 22 Feb 2022 11:23:42 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4K2wHd4nnzz9sSK; Tue, 22 Feb 2022 11:23:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 932F58B779; Tue, 22 Feb 2022 11:23:41 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 8vrDJrTd5eun; Tue, 22 Feb 2022 11:23:41 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (unknown [172.25.230.108]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 772808B776; Tue, 22 Feb 2022 11:23:41 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 21MANWRt1075626 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 22 Feb 2022 11:23:32 +0100 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 21MANWiC1075624; Tue, 22 Feb 2022 11:23:32 +0100 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Aaron Tomlin , Luis Chamberlain , linux-modules@vger.kernel.org Cc: Christophe Leroy , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] Fixup for 1df95c1b9fb2 ("module: Move latched RB-tree support to a separate file") Date: Tue, 22 Feb 2022 11:23:25 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1645525381; l=1020; s=20211009; h=from:subject:message-id; bh=NOXJ5Q8e1krS6qZJ9mBihpkQrnS7a/WBEIo+/dze10c=; b=BDMY4vgJF0gcp2MqvOEGtH2HXvbetkUITO0cF6DCzxt/BvOq07dX4Cd6pxAMoDTk3i53BFRZyTh6 arThliuYB4ShUhhPe8FqrE3PqHNSEVdTCJC7qHiPLsdzNlXx2D5Q X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Precedence: bulk List-ID: Fixes: 1df95c1b9fb2 ("module: Move latched RB-tree support to a separate file") Signed-off-by: Christophe Leroy --- kernel/module/internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/module/internal.h b/kernel/module/internal.h index 47353c2e595b..97d9faec3a9a 100644 --- a/kernel/module/internal.h +++ b/kernel/module/internal.h @@ -158,9 +158,9 @@ void mod_tree_remove(struct module *mod); struct module *mod_find(unsigned long addr); #else /* !CONFIG_MODULES_TREE_LOOKUP */ -static void mod_tree_insert(struct module *mod) { } -static void mod_tree_remove_init(struct module *mod) { } -static void mod_tree_remove(struct module *mod) { } +static inline void mod_tree_insert(struct module *mod) { } +static inline void mod_tree_remove_init(struct module *mod) { } +static inline void mod_tree_remove(struct module *mod) { } static inline struct module *mod_find(unsigned long addr) { struct module *mod;