lkml.org 
[lkml]   [2010]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH -next] cs5535: fix printk format warnings
    From: Randy Dunlap <randy.dunlap@oracle.com>

    Fix printk format warnings in cs5535 drivers:

    drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
    drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
    drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
    drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'

    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Andres Salomon <dilinger@collabora.co.uk>
    ---
    drivers/gpio/cs5535-gpio.c | 5 +++--
    drivers/misc/cs5535-mfgpt.c | 5 +++--
    2 files changed, 6 insertions(+), 4 deletions(-)

    --- linux-next-20101213.orig/drivers/gpio/cs5535-gpio.c
    +++ linux-next-20101213/drivers/gpio/cs5535-gpio.c
    @@ -266,8 +266,9 @@ static int __devinit cs5535_gpio_probe(s
    cs5535_gpio_chip.pdev = pdev;
    spin_lock_init(&cs5535_gpio_chip.lock);

    - dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n",
    - res->start, res->end);
    + dev_info(&pdev->dev, "region 0x%llx - 0x%llx reserved\n",
    + (unsigned long long)res->start,
    + (unsigned long long)res->end);

    /* mask out reserved pins */
    mask &= 0x1F7FFFFF;
    --- linux-next-20101213.orig/drivers/misc/cs5535-mfgpt.c
    +++ linux-next-20101213/drivers/misc/cs5535-mfgpt.c
    @@ -317,8 +317,9 @@ static int __devinit cs5535_mfgpt_probe(
    cs5535_mfgpt_chip.pdev = pdev;
    spin_lock_init(&cs5535_mfgpt_chip.lock);

    - dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n", res->start,
    - res->end);
    + dev_info(&pdev->dev, "region 0x%llx - 0x%llx reserved\n",
    + (unsigned long long)res->start,
    + (unsigned long long)res->end);

    /* detect the available timers */
    t = scan_timers(&cs5535_mfgpt_chip);

    \
     
     \ /
      Last update: 2010-12-13 20:47    [W:0.025 / U:32.492 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site