[PATCH v4 8/9] drm/selftests: Add module_exit for test-drm-helper

Alexandru Gheorghe alexandru-cosmin.gheorghe at arm.com
Fri Oct 12 16:35:59 UTC 2018


test-drm-helper.ko can't be rmmod-ed because it doesn't have a
module_exit,  that could be very inconvenient especially in the
development stage where we usually want to re-run the tests without
any rebooting.

Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe at arm.com>
---
 drivers/gpu/drm/selftests/test-drm-helper.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/selftests/test-drm-helper.c b/drivers/gpu/drm/selftests/test-drm-helper.c
index a015712b43e8..a6a1818fdafd 100644
--- a/drivers/gpu/drm/selftests/test-drm-helper.c
+++ b/drivers/gpu/drm/selftests/test-drm-helper.c
@@ -241,7 +241,12 @@ static int __init test_drm_helper_init(void)
 	return err > 0 ? 0 : err;
 }
 
+static void __exit test_drm_helper_exit(void)
+{
+}
+
 module_init(test_drm_helper_init);
+module_exit(test_drm_helper_exit);
 
 MODULE_AUTHOR("Intel Corporation");
 MODULE_LICENSE("GPL");
-- 
2.18.0



More information about the dri-devel mailing list