On Tue, Mar 20, 2007 at 08:11:38AM -0800, Andrew Morton wrote: > On Tue, 20 Mar 2007 07:35:06 -0700 "Miles Lane" <[EMAIL PROTECTED]> wrote: > > > It looks like the number of section mismatches is much reduced, which > > is great. > > We fixed something? Maybe we just broke the checker ;) > > > But, I don't remember seeing "WARNING: could not find > > versions for ..." warnings before. Is this an artifact of the > > init/.missing_syscalls.h problem I encountered earlier? > > Sam says these are harmless and he's working on making them go away. > > > MODPOST vmlinux > > WARNING: could not find versions for .tmp_versions/head.mod > > WARNING: could not find versions for .tmp_versions/init_task.mod
They were caused by modpost now being called with several .o files that are not modules. The fix was just to get rid of the warning. I have committed the following to kbuild.git. Sam commit 84b48a0275b4474587cefecb455372e8df6dabda Author: Sam Ravnborg <[EMAIL PROTECTED]> Date: Tue Mar 20 21:30:23 2007 +0100 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 <[EMAIL PROTECTED]> diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index 8a28756..6873d5a 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c @@ -397,10 +397,9 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen) (int) strlen(basename) - 2, basename); file = grab_file(filelist, &len); - if (!file) { - warn("could not find versions for %s\n", filelist); + if (!file) + /* not a module or .mod file missing - ignore */ return; - } sources = strchr(file, '\n'); if (!sources) { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/