1 Jan 2010 01:59
pci: avoid compiler warning in quirks.c
Linux Kernel Mailing List <linux-kernel <at> vger.kernel.org>
2010-01-01 00:59:01 GMT
2010-01-01 00:59:01 GMT
Gitweb: http://git.kernel.org/linus/df9d1e8a4379119cbc47c474f168b5103e404e17 Commit: df9d1e8a4379119cbc47c474f168b5103e404e17 Parent: c03f6bfc9f4fbeee14abef81ece67e39150a1ab1 Author: Linus Torvalds <torvalds <at> linux-foundation.org> AuthorDate: Thu Dec 31 16:44:43 2009 -0800 Committer: Linus Torvalds <torvalds <at> linux-foundation.org> CommitDate: Thu Dec 31 16:44:43 2009 -0800 pci: avoid compiler warning in quirks.c Introduced by commit 5b889bf23 ("PCI: Fix build if quirks are not enabled"), which made the pci_dev_reset_methods[] array static and 'const', but didn't then change the code to match, and use a const pointer when moving it to quirks.c. Trivially fixed by just adding the required 'const' to the iterator variable. Reported-by: Stephen Rothwell <sfr <at> canb.auug.org.au> Cc: Rafael J. Wysocki <rjw <at> sisk.pl> Signed-off-by: Linus Torvalds <torvalds <at> linux-foundation.org> --- drivers/pci/quirks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 5c449fc..c746943 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c <at> <at> -2694,7 +2694,7 <at> <at> static const struct pci_dev_reset_methods pci_dev_reset_methods[] = {(Continue reading)
RSS Feed