mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	kbuild: do not emit src version warning for non-modules
modpost is now called with .o files that are not modules. So do not warn if there is no corresponding .mod file listing .o files (in .tmp_versions/). Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
		
							parent
							
								
									95e30f9593
								
							
						
					
					
						commit
						4be40e2223
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -397,10 +397,9 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen)
 | 
				
			||||||
		(int) strlen(basename) - 2, basename);
 | 
							(int) strlen(basename) - 2, basename);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	file = grab_file(filelist, &len);
 | 
						file = grab_file(filelist, &len);
 | 
				
			||||||
	if (!file) {
 | 
						if (!file)
 | 
				
			||||||
		warn("could not find versions for %s\n", filelist);
 | 
							/* not a module or .mod file missing - ignore */
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sources = strchr(file, '\n');
 | 
						sources = strchr(file, '\n');
 | 
				
			||||||
	if (!sources) {
 | 
						if (!sources) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue