Re: [PATCH] include/linux/pci.h: Make struct pci_driver.name constchar *

From: Stephen Hemminger
Date: Thu Sep 09 2010 - 10:55:03 EST


On Thu, 09 Sep 2010 00:38:04 -0700
Joe Perches <joe@xxxxxxxxxxx> wrote:

> As far as I can tell, name is never modified.
>
> This would allow names to be assigned
> from variables in non-writable sections.
>
> static const foo[] = "bar";
>
> struct pci_driver baz = {
> .name = foo;
> };
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> ---

I already sent same patch to Jesse
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/