mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	markers/tracpoints: fix non-modular build
fix: kernel/marker.c: In function 'marker_module_notify': kernel/marker.c:905: error: 'MODULE_STATE_COMING' undeclared (first use in this function) [...] Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
		
							parent
							
								
									0a7ad64531
								
							
						
					
					
						commit
						227a837567
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -896,6 +896,8 @@ void *marker_get_private_data(const char *name, marker_probe_func *probe,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL_GPL(marker_get_private_data);
 | 
					EXPORT_SYMBOL_GPL(marker_get_private_data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CONFIG_MODULES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int marker_module_notify(struct notifier_block *self,
 | 
					int marker_module_notify(struct notifier_block *self,
 | 
				
			||||||
			 unsigned long val, void *data)
 | 
								 unsigned long val, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -924,3 +926,5 @@ static int init_markers(void)
 | 
				
			||||||
	return register_module_notifier(&marker_module_nb);
 | 
						return register_module_notifier(&marker_module_nb);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
__initcall(init_markers);
 | 
					__initcall(init_markers);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* CONFIG_MODULES */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -542,6 +542,8 @@ void tracepoint_iter_reset(struct tracepoint_iter *iter)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL_GPL(tracepoint_iter_reset);
 | 
					EXPORT_SYMBOL_GPL(tracepoint_iter_reset);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CONFIG_MODULES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int tracepoint_module_notify(struct notifier_block *self,
 | 
					int tracepoint_module_notify(struct notifier_block *self,
 | 
				
			||||||
			     unsigned long val, void *data)
 | 
								     unsigned long val, void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -570,3 +572,5 @@ static int init_tracepoints(void)
 | 
				
			||||||
	return register_module_notifier(&tracepoint_module_nb);
 | 
						return register_module_notifier(&tracepoint_module_nb);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
__initcall(init_tracepoints);
 | 
					__initcall(init_tracepoints);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* CONFIG_MODULES */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue