From patchwork Tue Nov 22 03:05:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 24147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1974361wrr; Mon, 21 Nov 2022 19:12:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7nkYnuqCc/0PMH5jMpIZ1GDtt1KQJtGYMdED5IyIfgSGzTu7t50v+Z9dvTfMsCdvcqHA9D X-Received: by 2002:a63:5409:0:b0:476:e3bb:2340 with SMTP id i9-20020a635409000000b00476e3bb2340mr1650002pgb.530.1669086770350; Mon, 21 Nov 2022 19:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669086770; cv=none; d=google.com; s=arc-20160816; b=uKFWfNmmXLs8Wq0wPBt7AIkSDF/YqsG73mdihLaFbtUt1U9fP9J+sBlmREd2RUpAv6 RaKBmjO8ZVPbtz/0GNJX/ta0bXjvh2OQh3xri+hr92RiZzddCbmTmilEZ+67NKUfolvd 5dYfC0qvX35767mjVlUD3+/0P2brS6nzFEuDD3kZZUCniTAh9QNVRTkPsz5jupPgMLVy Y8phGquHBHVWhD8U9P+37vfzRc7Zh8SklUuD2yuWEdeLrPlMrk1ODXBqBcx6lckJEtam OeFfcac5jWxkAb0r7ez+qSSVh2LvkQ51U3JfUYVpmDFFaJNpltabdGu1k5JbWnONW2eg uENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=9/ONFZV+KDeTasHwZnmi5nLXVuEsZWYBZcvduiIY+bA=; b=CvOdr42BXo2HsfW9fpVUCHahlj1Ivn/7J+/mauCZHtPS+GLBN8guwPAdrWakrnGDeA EySLrv1hR9Lj081CVxpX3jMi7ipGv8Po6Py+gWVxUtZt1/mxAA3ryWxKuAgNTqJZE7ns YOXK8wRYMjPvlziEI5DdvCm3sGBQKlW2B0Qi4tJ9RIfqczkwjYhmpVu/o1xOW70+TEqq +olUUgCrXTK8RH16E2G/VJn7mXCIEVQ5CX5PhenFh+UBu50TddVOnb+PYjrZU92UNPHq I+NRU6ZDVYlZNlwwtkRW8gm9JmCqUUF4RjxvTm2ElHLZHpEWCs1tVHrxqwrYeUb/q787 uBCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm9-20020a056a00338900b0056be3109462si12147061pfb.163.2022.11.21.19.12.37; Mon, 21 Nov 2022 19:12:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231838AbiKVDI3 (ORCPT + 99 others); Mon, 21 Nov 2022 22:08:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231512AbiKVDIZ (ORCPT ); Mon, 21 Nov 2022 22:08:25 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7294E17422; Mon, 21 Nov 2022 19:08:24 -0800 (PST) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NGThn6Kgsz15MpV; Tue, 22 Nov 2022 11:07:53 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 11:08:22 +0800 From: YueHaibing To: , , , , CC: , Subject: [PATCH -next] crypto: ccree - Fix section mismatch due to cc_debugfs_global_fini() Date: Tue, 22 Nov 2022 11:05:55 +0800 Message-ID: <20221122030555.26612-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750164285101562127?= X-GMAIL-MSGID: =?utf-8?q?1750164329210541506?= cc_debugfs_global_fini() is marked with __exit now, however it is used in __init ccree_init() for cleanup. Remove the __exit annotation to fix build warning: WARNING: modpost: drivers/crypto/ccree/ccree.o: section mismatch in reference: init_module (section: .init.text) -> cc_debugfs_global_fini (section: .exit.text) Fixes: 4f1c596df706 ("crypto: ccree - Remove debugfs when platform_driver_register failed") Signed-off-by: YueHaibing Reviewed-by: Geert Uytterhoeven --- drivers/crypto/ccree/cc_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ccree/cc_debugfs.c b/drivers/crypto/ccree/cc_debugfs.c index 7083767602fc..8f008f024f8f 100644 --- a/drivers/crypto/ccree/cc_debugfs.c +++ b/drivers/crypto/ccree/cc_debugfs.c @@ -55,7 +55,7 @@ void __init cc_debugfs_global_init(void) cc_debugfs_dir = debugfs_create_dir("ccree", NULL); } -void __exit cc_debugfs_global_fini(void) +void cc_debugfs_global_fini(void) { debugfs_remove(cc_debugfs_dir); }