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 X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 556F6C433ED for ; Fri, 14 May 2021 21:38:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2E67A61446 for ; Fri, 14 May 2021 21:38:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233554AbhENVj2 (ORCPT ); Fri, 14 May 2021 17:39:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:58500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbhENVj0 (ORCPT ); Fri, 14 May 2021 17:39:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F7EE613C5; Fri, 14 May 2021 21:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621028294; bh=UcuZNIaqkNWPOujnjzDWX0I5zM5lWfeS4cAZ3AZjwS8=; h=From:To:Cc:Subject:Date:From; b=gk1d9M0nJDuxCn4aHFd3jICWVXN8mbuFbu9SHnH1wQqO7fdsjmpc1bsG16Jvos9J4 BiW5/m7tq0H7w8IluhvpLY6ZPjP8qtKrMGSnSFmSk0XZrnsFuv7u/zLE8wxCiI1kHb 6uRib8dWdYvHmtfw4wX91GiPgmE61u0T9u8ILNUmb7Fmy6Zz8iFnzGcuFu6xMjs6mN WAFQoVfTXJ8aOUah25oXQa8wB49qHvam2GxGBHfgTx5sPuYjNipDtzI3E2v6pVJV42 De4Wpg6mp+/zsgwsxfvYcf95yNt1GF5UlBsPf8ldAMfWZuWyZhkK2QIZ2dA7K2M218 8FYhVMlmdENVQ== From: Arnd Bergmann To: Richard Henderson , Ivan Kokshaysky , Matt Turner Cc: Arnd Bergmann , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] alpha: fp_emul: avoid init/cleanup_module names Date: Fri, 14 May 2021 23:37:20 +0200 Message-Id: <20210514213724.778831-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann This is one of the last modules using the old calling conventions for module init/exit functions. Change it over to the style used everywhere else. Signed-off-by: Arnd Bergmann --- arch/alpha/math-emu/math.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/alpha/math-emu/math.c b/arch/alpha/math-emu/math.c index d568cd9a3e43..4212258f3cfd 100644 --- a/arch/alpha/math-emu/math.c +++ b/arch/alpha/math-emu/math.c @@ -65,7 +65,7 @@ static long (*save_emul) (unsigned long pc); long do_alpha_fp_emul_imprecise(struct pt_regs *, unsigned long); long do_alpha_fp_emul(unsigned long); -int init_module(void) +static int alpha_fp_emul_init_module(void) { save_emul_imprecise = alpha_fp_emul_imprecise; save_emul = alpha_fp_emul; @@ -73,12 +73,14 @@ int init_module(void) alpha_fp_emul = do_alpha_fp_emul; return 0; } +module_init(alpha_fp_emul_init_module); -void cleanup_module(void) +static void alpha_fp_emul_cleanup_module(void) { alpha_fp_emul_imprecise = save_emul_imprecise; alpha_fp_emul = save_emul; } +module_exit(alpha_fp_emul_cleanup_module); #undef alpha_fp_emul_imprecise #define alpha_fp_emul_imprecise do_alpha_fp_emul_imprecise -- 2.29.2