lkml.org 
[lkml]   [2012]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 52/85] rapidio/tsi721: fix unused variable compiler warning
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.4-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Alexandre Bounine <alexandre.bounine@idt.com>

    commit 9a9a9a7adafe62a34de8b4fb48936c1c5f9bafa5 upstream.

    Fix unused variable compiler warning when built with CONFIG_RAPIDIO_DEBUG
    option off.

    This patch is applicable to kernel versions starting from v3.2

    Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
    Cc: Matt Porter <mporter@kernel.crashing.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/rapidio/devices/tsi721.c | 5 ++++-
    1 file changed, 4 insertions(+), 1 deletion(-)

    --- a/drivers/rapidio/devices/tsi721.c
    +++ b/drivers/rapidio/devices/tsi721.c
    @@ -2162,7 +2162,7 @@ static int __devinit tsi721_probe(struct
    const struct pci_device_id *id)
    {
    struct tsi721_device *priv;
    - int i, cap;
    + int cap;
    int err;
    u32 regval;

    @@ -2182,12 +2182,15 @@ static int __devinit tsi721_probe(struct
    priv->pdev = pdev;

    #ifdef DEBUG
    + {
    + int i;
    for (i = 0; i <= PCI_STD_RESOURCE_END; i++) {
    dev_dbg(&pdev->dev, "res[%d] @ 0x%llx (0x%lx, 0x%lx)\n",
    i, (unsigned long long)pci_resource_start(pdev, i),
    (unsigned long)pci_resource_len(pdev, i),
    pci_resource_flags(pdev, i));
    }
    + }
    #endif
    /*
    * Verify BAR configuration



    \
     
     \ /
      Last update: 2012-09-13 05:41    [W:4.029 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site