Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: iTCO_wdt.c: fix printk format warnings

Fix printk format warnings:

drivers/watchdog/iTCO_wdt.c:577:3: warning: format '%04llx' expects type 'long long unsigned int', but argument 2 has type 'resource_size_t'
drivers/watchdog/iTCO_wdt.c:594:3: warning: format '%04llx' expects type 'long long unsigned int', but argument 2 has type 'resource_size_t'
drivers/watchdog/iTCO_wdt.c:600:2: warning: format '%04llx' expects type 'long long unsigned int', but argument 4 has type 'resource_size_t'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Randy Dunlap and committed by
Wim Van Sebroeck
4b98b32a d9df0ef1

+3 -3
+3 -3
drivers/watchdog/iTCO_wdt.c
··· 575 575 if (!request_region(iTCO_wdt_private.smi_res->start, 576 576 resource_size(iTCO_wdt_private.smi_res), dev->name)) { 577 577 pr_err("I/O address 0x%04llx already in use, device disabled\n", 578 - SMI_EN); 578 + (u64)SMI_EN); 579 579 ret = -EBUSY; 580 580 goto unmap_gcs; 581 581 } ··· 592 592 if (!request_region(iTCO_wdt_private.tco_res->start, 593 593 resource_size(iTCO_wdt_private.tco_res), dev->name)) { 594 594 pr_err("I/O address 0x%04llx already in use, device disabled\n", 595 - TCOBASE); 595 + (u64)TCOBASE); 596 596 ret = -EBUSY; 597 597 goto unreg_smi; 598 598 } 599 599 600 600 pr_info("Found a %s TCO device (Version=%d, TCOBASE=0x%04llx)\n", 601 - ich_info->name, ich_info->iTCO_version, TCOBASE); 601 + ich_info->name, ich_info->iTCO_version, (u64)TCOBASE); 602 602 603 603 /* Clear out the (probably old) status */ 604 604 outw(0x0008, TCO1_STS); /* Clear the Time Out Status bit */