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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 226AFC07E9D for ; Mon, 26 Sep 2022 09:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234157AbiIZJ2v (ORCPT ); Mon, 26 Sep 2022 05:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234666AbiIZJ2Y (ORCPT ); Mon, 26 Sep 2022 05:28:24 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1409733415; Mon, 26 Sep 2022 02:26:41 -0700 (PDT) Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mbchc6dQ1zHtnk; Mon, 26 Sep 2022 17:21:52 +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 17:26:38 +0800 From: ruanjinjie To: , , CC: Subject: [PATCH -next] block/swim3: add __init annotation to module init func Date: Mon, 26 Sep 2022 17:22:41 +0800 Message-ID: <20220926092241.1191846-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.83] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Add missing __init annotation to module init func. Signed-off-by: ruanjinjie --- drivers/block/swim3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index da811a7da03f..1f65d506fbc9 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -1278,7 +1278,7 @@ static struct macio_driver swim3_driver = }; -int swim3_init(void) +int __init swim3_init(void) { macio_register_driver(&swim3_driver); return 0; -- 2.25.1