mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 00:28:52 +02:00 
			
		
		
		
	kernel/hung_task.c: convert simple_strtoul to kstrtouint
sysctl_hung_task_panic has been changed to unsigned int. use kstrtouint instead of obsolete simple_strtoul Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									95583e4ab5
								
							
						
					
					
						commit
						b51dbec68c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -52,8 +52,10 @@ unsigned int __read_mostly sysctl_hung_task_panic = | ||||||
| 
 | 
 | ||||||
| static int __init hung_task_panic_setup(char *str) | static int __init hung_task_panic_setup(char *str) | ||||||
| { | { | ||||||
| 	sysctl_hung_task_panic = simple_strtoul(str, NULL, 0); | 	int rc = kstrtouint(str, 0, &sysctl_hung_task_panic); | ||||||
| 
 | 
 | ||||||
|  | 	if (rc) | ||||||
|  | 		return rc; | ||||||
| 	return 1; | 	return 1; | ||||||
| } | } | ||||||
| __setup("hung_task_panic=", hung_task_panic_setup); | __setup("hung_task_panic=", hung_task_panic_setup); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Fabian Frederick
						Fabian Frederick