mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	init: fix build warnings about export.h
After commita934a57a42("scripts/misc-check: check missing #include <linux/export.h> when W=1") and7d95680d64("scripts/misc-check: check unnecessary #include <linux/export.h> when W=1"), we get some build warnings with W=1: init/main.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing init/initramfs.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing So fix these build warnings for the init code. Link: https://lkml.kernel.org/r/20250608141235.155206-1-chenhuacai@loongson.cn Fixes:a934a57a42("scripts/misc-check: check missing #include <linux/export.h> when W=1") Signed-off-by: Huacai Chen <chenhuacai@loongson.cn> Reviewed-by: Masahiro Yamada <masahiroy@kernel.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									02fb36505c
								
							
						
					
					
						commit
						66ac1a4d36
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| // SPDX-License-Identifier: GPL-2.0
 | ||||
| #include <linux/init.h> | ||||
| #include <linux/async.h> | ||||
| #include <linux/export.h> | ||||
| #include <linux/fs.h> | ||||
| #include <linux/slab.h> | ||||
| #include <linux/types.h> | ||||
|  |  | |||
|  | @ -13,6 +13,7 @@ | |||
| #define DEBUG		/* Enable initcall_debug */ | ||||
| 
 | ||||
| #include <linux/types.h> | ||||
| #include <linux/export.h> | ||||
| #include <linux/extable.h> | ||||
| #include <linux/module.h> | ||||
| #include <linux/proc_fs.h> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Huacai Chen
						Huacai Chen