Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ubi: Fix ubi_init() ubiblock_exit() section mismatch
@ 2024-07-13  7:35 Richard Weinberger
  2024-07-13  8:16 ` Zhihao Cheng
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2024-07-13  7:35 UTC (permalink / raw)
  To: linux-mtd
  Cc: linux-kernel, chengzhihao1, Richard Weinberger, Ben Hutchings,
	kernel test robot

Since ubiblock_exit() is now called from an init function,
the __exit section no longer makes sense.

Cc: Ben Hutchings <bwh@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407131403.wZJpd8n2-lkp@intel.com/
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/mtd/ubi/block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c
index bf7308e8ec2fe..60d0155be869f 100644
--- a/drivers/mtd/ubi/block.c
+++ b/drivers/mtd/ubi/block.c
@@ -670,7 +670,7 @@ int __init ubiblock_init(void)
 	return ret;
 }
 
-void __exit ubiblock_exit(void)
+void ubiblock_exit(void)
 {
 	ubi_unregister_volume_notifier(&ubiblock_notifier);
 	ubiblock_remove_all();
-- 
2.35.3


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-13  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-13  7:35 [PATCH] ubi: Fix ubi_init() ubiblock_exit() section mismatch Richard Weinberger
2024-07-13  8:16 ` Zhihao Cheng
2024-07-13  8:46   ` Richard Weinberger
2024-07-13  9:02     ` Zhihao Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox