[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 9 Sep 2010 07:54:55 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Joe Perches <joe@...ches.com>
Cc: Jesse Barnes <jbarnes@...tuousgeek.org>,
linux-pci <linux-pci@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] include/linux/pci.h: Make struct pci_driver.name const
char *
On Thu, 09 Sep 2010 00:38:04 -0700
Joe Perches <joe@...ches.com> 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@...ches.com>
> ---
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@...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