lkml.org 
[lkml]   [2009]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: linux-next: origin tree build warning


    On Fri, 1 Jan 2010, Stephen Rothwell wrote:
    >
    > Today's linux-next build (powerpc allnoconfig) produced this warning:
    >
    > drivers/pci/quirks.c: In function 'pci_dev_specific_reset':
    > drivers/pci/quirks.c:2699: warning: assignment discards qualifiers from pointer target type
    >
    > Introduced by commit 5b889bf237fca383b5807ad69fde3ad1e2287e42 ("PCI: Fix
    > build if quirks are not enabled").

    Does this trivial patch get rid of it?

    Linus
    ---
    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
    @@ -2694,7 +2694,7 @@ static const struct pci_dev_reset_methods pci_dev_reset_methods[] = {

    int pci_dev_specific_reset(struct pci_dev *dev, int probe)
    {
    - struct pci_dev_reset_methods *i;
    + const struct pci_dev_reset_methods *i;

    for (i = pci_dev_reset_methods; i->reset; i++) {
    if ((i->vendor == dev->vendor ||

    \
     
     \ /
      Last update: 2010-01-01 01:37    [W:0.027 / U:0.096 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site