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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux