From patchwork Mon Sep 26 12:04:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 610049 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 1EAE8C32771 for ; Mon, 26 Sep 2022 13:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234833AbiIZNyA (ORCPT ); Mon, 26 Sep 2022 09:54:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235290AbiIZNxh (ORCPT ); Mon, 26 Sep 2022 09:53:37 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41DA647BA9; Mon, 26 Sep 2022 05:09:50 -0700 (PDT) Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MbhKJ0Sj9zpVdC; Mon, 26 Sep 2022 20:05:24 +0800 (CST) Received: from huawei.com (10.67.175.83) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 26 Sep 2022 20:08:17 +0800 From: ruanjinjie To: , , , CC: Subject: [PATCH -next] watchdog: Add __init/__exit annotations to module init/exit funcs Date: Mon, 26 Sep 2022 20:04:29 +0800 Message-ID: <20220926120429.1333802-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.67.175.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Add missing __init/__exit annotations to module init/exit funcs Signed-off-by: ruanjinjie --- drivers/watchdog/cpu5wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/cpu5wdt.c b/drivers/watchdog/cpu5wdt.c index 688b112e712b..3e4534e8fa4b 100644 --- a/drivers/watchdog/cpu5wdt.c +++ b/drivers/watchdog/cpu5wdt.c @@ -242,7 +242,7 @@ static int cpu5wdt_init(void) return err; } -static int cpu5wdt_init_module(void) +static int __init cpu5wdt_init_module(void) { return cpu5wdt_init(); } @@ -261,7 +261,7 @@ static void cpu5wdt_exit(void) } -static void cpu5wdt_exit_module(void) +static void __exit cpu5wdt_exit_module(void) { cpu5wdt_exit(); }