Message ID | 20221122030542.23920-1-yuehaibing@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1974133wrr; Mon, 21 Nov 2022 19:12:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iyztR0KqvAJqSagOcc4R1A66CcESdmaskbB/0nWyXj7JreMV0lcYWz/69P9R14CWXej8I X-Received: by 2002:a17:90b:2684:b0:218:907c:da24 with SMTP id pl4-20020a17090b268400b00218907cda24mr16362150pjb.18.1669086728663; Mon, 21 Nov 2022 19:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669086728; cv=none; d=google.com; s=arc-20160816; b=ORZYggb2sU1rNSa5CUsz47NW6dqmLw05RzMJVUaFvdFO5/G5nuK+EBiWW/SjOij74d bogRdjiIgAle9uuVCZ7Us4/YKiVYpZbvg4U9G4LlmIZ7hPN2S4YLElD3BesFWsl9Oggo ouibpGLI0/eOFwUMwcuBkKdTzed8qZR50C7x/8BTulQbkyX0HbThgrh/gdX0nxWX8uq8 XVi6a13HCGZ5mHI01HudAIBdw/6ddgITWrhL2dSIyBoEjgbZKwNrzPUYmacAMMsKST4a bVRACHqTnXTmmC0/huLwFakNbpBnJa1YQ0BOjddxHS+fvGGD4i069RBWqjibqQm5qxPN rLYQ== 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=VEla5DGdB5Q0xsLzucqjwb87mmkdijP++y/fqhWISBAsLK8QbGwV5f5oiSMiDS4/NH WPib8g+YNzD1VzxTdxU4WuX2BB2TmqTA8ZbD7jtct/K2FWSrpzlHBYMeKtv69hMFno3b 6LnvwYuLbfa6TNNx6F4rtsIlnV4LiM6Wm6T4+xc3YPJCQVjgqVzYd0qT9zRDk8I2Kv/Q 3bc3dv8Dn+k5S5WNCaYxU+kid0QdCouGAzeaUOHtLrVhoN/3h7nAQkycl3bHdknFlaQJ MZxe0vTBqKYIhMcuD1FazqgYeaTHbM5RQzzSGz+QC7czkaQ14hU3zgqnMG290QsHOQh/ uBJQ== 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 z1-20020a17090ab10100b00214292112a6si14617516pjq.82.2022.11.21.19.11.55; Mon, 21 Nov 2022 19:12:08 -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 S231993AbiKVDF5 (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 22:05:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232070AbiKVDFy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 22:05:54 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BCE71261C; Mon, 21 Nov 2022 19:05:53 -0800 (PST) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4NGTZg6FvyzJnkn; Tue, 22 Nov 2022 11:02:35 +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:05:45 +0800 From: YueHaibing <yuehaibing@huawei.com> To: <s.shtylyov@omp.ru>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <yoshihiro.shimoda.uh@renesas.com> CC: <netdev@vger.kernel.org>, <linux-renesas-soc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, YueHaibing <yuehaibing@huawei.com> Subject: [PATCH -next] crypto: ccree - Fix section mismatch due to cc_debugfs_global_fini() Date: Tue, 22 Nov 2022 11:05:42 +0800 Message-ID: <20221122030542.23920-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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: <linux-kernel.vger.kernel.org> 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?1750164285101562127?= |
Series |
[-next] crypto: ccree - Fix section mismatch due to cc_debugfs_global_fini()
|
|
Commit Message
Yue Haibing
Nov. 22, 2022, 3:05 a.m. UTC
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 <yuehaibing@huawei.com>
---
drivers/crypto/ccree/cc_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Sorry, Pls ignore this. On 2022/11/22 11:05, YueHaibing wrote: > 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 <yuehaibing@huawei.com> > --- > 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); > }
> Subject: Re: [PATCH -next] crypto: ccree - Fix section mismatch due to > cc_debugfs_global_fini() > > Sorry, Pls ignore this. This is real issue, right? "WARNING: modpost: drivers/crypto/ccree/ccree.o: section mismatch in reference: init_module (section: .init.text) -> cc_debugfs_global_fini (section: .exit.text)" Looks like the committer of the patch without building submitted the patch. 4f1c596df706 ("crypto: ccree - Remove debugfs when platform_driver_register failed") Cheers, Biju > > On 2022/11/22 11:05, YueHaibing wrote: > > 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 <yuehaibing@huawei.com> > > --- > > 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); > > }
On 2022/11/22 19:24, Biju Das wrote: >> Subject: Re: [PATCH -next] crypto: ccree - Fix section mismatch due to >> cc_debugfs_global_fini() >> >> Sorry, Pls ignore this. > > This is real issue, right? > > "WARNING: modpost: drivers/crypto/ccree/ccree.o: section mismatch in > reference: init_module (section: .init.text) -> cc_debugfs_global_fini > (section: .exit.text)" > > > Looks like the committer of the patch without building submitted the patch. > 4f1c596df706 ("crypto: ccree - Remove debugfs when platform_driver_register failed") > Yes, I send the patch to wrong mail list. A new version has sent. https://lore.kernel.org/lkml/20221122030555.26612-1-yuehaibing@huawei.com/ > Cheers, > Biju > > >> >> On 2022/11/22 11:05, YueHaibing wrote: >>> 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 <yuehaibing@huawei.com> >>> --- >>> 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); >>> }
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); }