diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2020-10-15 20:37:01 +0200 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2020-10-15 20:37:01 +0200 | 
| commit | 62b31a045757eac81fed94b19df47418a0818528 (patch) | |
| tree | 285fda56df8304dff6ba929bad65ddfb4e4fd726 /lib/test_bitops.c | |
| parent | cc51d171776f3a6acb6828bad0b780a4cacf5423 (diff) | |
| parent | c27e08820bc6cb7d483a8d87589bdbbbf10f2306 (diff) | |
Merge branch 'for-5.10/core' into for-linus
- nonblocking read semantics fix for hid-debug
Diffstat (limited to 'lib/test_bitops.c')
| -rw-r--r-- | lib/test_bitops.c | 18 | 
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/test_bitops.c b/lib/test_bitops.c index ced25e3a779b..471141ddd691 100644 --- a/lib/test_bitops.c +++ b/lib/test_bitops.c @@ -52,9 +52,9 @@ static unsigned long order_comb_long[][2] = {  static int __init test_bitops_startup(void)  { -	int i; +	int i, bit_set; -	pr_warn("Loaded test module\n"); +	pr_info("Starting bitops test\n");  	set_bit(BITOPS_4, g_bitmap);  	set_bit(BITOPS_7, g_bitmap);  	set_bit(BITOPS_11, g_bitmap); @@ -81,12 +81,8 @@ static int __init test_bitops_startup(void)  				       order_comb_long[i][0]);  	}  #endif -	return 0; -} -static void __exit test_bitops_unstartup(void) -{ -	int bit_set; +	barrier();  	clear_bit(BITOPS_4, g_bitmap);  	clear_bit(BITOPS_7, g_bitmap); @@ -98,7 +94,13 @@ static void __exit test_bitops_unstartup(void)  	if (bit_set != BITOPS_LAST)  		pr_err("ERROR: FOUND SET BIT %d\n", bit_set); -	pr_warn("Unloaded test module\n"); +	pr_info("Completed bitops test\n"); + +	return 0; +} + +static void __exit test_bitops_unstartup(void) +{  }  module_init(test_bitops_startup);  | 
