mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	modpost: require a MODULE_DESCRIPTION()
Since commit 1fffe7a34c ("script: modpost: emit a warning when the
description is missing"), a module without a MODULE_DESCRIPTION() has
resulted in a warning with make W=1. Since that time, all known
instances of this issue have been fixed. Therefore, now make it an
error if a MODULE_DESCRIPTION() is not present.
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
			
			
This commit is contained in:
		
							parent
							
								
									cacd22ce69
								
							
						
					
					
						commit
						6c6c1fc09d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1602,8 +1602,8 @@ static void read_symbols(const char *modname) | ||||||
| 						     namespace); | 						     namespace); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if (extra_warn && !get_modinfo(&info, "description")) | 		if (!get_modinfo(&info, "description")) | ||||||
| 			warn("missing MODULE_DESCRIPTION() in %s\n", modname); | 			error("missing MODULE_DESCRIPTION() in %s\n", modname); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { | 	for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Jeff Johnson
						Jeff Johnson