[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFziu1HvspbMj8LRLHd2w9vcVq_mGCL3pCOwLaduKQ4nt8+Utg@mail.gmail.com>
Date: Tue, 12 Jul 2011 14:02:37 -0400
From: Anders Kaseorg <andersk@...lice.com>
To: Alessio Igor Bogani <abogani@...nel.org>
Cc: Rusty Russell <rusty@...tcorp.com.au>,
Jan Beulich <jbeulich@...ell.com>,
Kbuild <linux-kbuild@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Tim Bird <tim.bird@...sony.com>,
Arnaud Lacombe <lacombar@...il.com>
Subject: Re: [PATCH] modpost: Fix modpost's license checking V2
On Tue, Jul 12, 2011 at 03:00, Alessio Igor Bogani <abogani@...nel.org> 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.
Anders
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists