Hi, On Tue, Jul 12, 2011 at 2:02 PM, Anders Kaseorg <andersk@xxxxxxxxxxx> wrote: > On Tue, Jul 12, 2011 at 03:00, Alessio Igor Bogani <abogani@xxxxxxxxxx> wrote: >> +#define SEC_NAME_MATCH(name, str) (strncmp(name, str, strlen(str) - 1) == 0) > > Surely you meant strlen() or sizeof() - 1, not strlen() - 1? > >> + if (!is_vmlinux(mod->name) && strncmp(symname, "__ksymtab", 9) == 0) > > Same strncmp pattern here. BTW, your macro is the strstarts() > function in include/linux/string.h. > modpost is an host tool, it should not include kernel header. Content of this file is not exported to userland anyway. - Arnaud - Arnaud -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html