]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/mod/modpost.c
kbuild: disable modpost warnings for linkonce sections
[linux-2.6-omap-h63xx.git] / scripts / mod / modpost.c
index f8b42ab0724be194a258a00e4e24f814ad3e7475..508c5895c6808880be73eda7c087e70c48348b80 100644 (file)
@@ -721,7 +721,7 @@ static int check_section(const char *modname, const char *sec)
                /* consume all digits */
                while (*e && e != sec && isdigit(*e))
                        e--;
-               if (*e == '.') {
+               if (*e == '.' && !strstr(sec, ".linkonce")) {
                        warn("%s (%s): unexpected section name.\n"
                             "The (.[number]+) following section name are "
                             "ld generated and not expected.\n"
@@ -1552,10 +1552,10 @@ static void read_symbols(char *modname)
        }
 
        license = get_modinfo(info.modinfo, info.modinfo_len, "license");
-       if (!license && !is_vmlinux(modname))
-               fatal("modpost: missing MODULE_LICENSE() in %s\n"
-                     "see include/linux/module.h for "
-                     "more information\n", modname);
+       if (info.modinfo && !license && !is_vmlinux(modname))
+               warn("modpost: missing MODULE_LICENSE() in %s\n"
+                    "see include/linux/module.h for "
+                    "more information\n", modname);
        while (license) {
                if (license_is_gpl_compatible(license))
                        mod->gpl_compatible = 1;