mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	devtmpfs: initify a bit
devtmpfs_mount() is only called from prepare_namespace() in init/do_mounts.c, which is an __init function, so devtmpfs_mount() can also be moved to .init.text. Then the mount_dev static variable is only referenced from __init functions (devtmpfs_mount and its initializer function mount_param). Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Link: https://lore.kernel.org/r/20200115184154.3492-5-linux@rasmusvillemoes.dk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
		
							parent
							
								
									21766d11d1
								
							
						
					
					
						commit
						fad1db8a35
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -30,7 +30,7 @@
 | 
			
		|||
 | 
			
		||||
static struct task_struct *thread;
 | 
			
		||||
 | 
			
		||||
static int mount_dev = IS_ENABLED(CONFIG_DEVTMPFS_MOUNT);
 | 
			
		||||
static int __initdata mount_dev = IS_ENABLED(CONFIG_DEVTMPFS_MOUNT);
 | 
			
		||||
 | 
			
		||||
static DEFINE_SPINLOCK(req_lock);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -355,7 +355,7 @@ static int handle_remove(const char *nodename, struct device *dev)
 | 
			
		|||
 * If configured, or requested by the commandline, devtmpfs will be
 | 
			
		||||
 * auto-mounted after the kernel mounted the root filesystem.
 | 
			
		||||
 */
 | 
			
		||||
int devtmpfs_mount(void)
 | 
			
		||||
int __init devtmpfs_mount(void)
 | 
			
		||||
{
 | 
			
		||||
	int err;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue