mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	ring-buffer: Make the const read-only 'type' static
Don't populate the read-only 'type' on the stack at run time, instead make it static. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/20250714160858.1234719-1-colin.i.king@gmail.com Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
		
							parent
							
								
									119a5d5736
								
							
						
					
					
						commit
						6443cdf567
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -4216,7 +4216,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_unlock_commit); | |||
| 
 | ||||
| static const char *show_irq_str(int bits) | ||||
| { | ||||
| 	const char *type[] = { | ||||
| 	static const char * type[] = { | ||||
| 		".",	// 0
 | ||||
| 		"s",	// 1
 | ||||
| 		"h",	// 2
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Colin Ian King
						Colin Ian King