]> git.baikalelectronics.ru Git - kernel.git/commit
irq_domain: fix type mismatch in debugfs output format
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 12 Apr 2012 20:42:15 +0000 (14:42 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 12 Apr 2012 22:25:48 +0000 (16:25 -0600)
commita8d7e9d8840b7fdfbbf56b6a25dda96468bb3183
treee4c93f4f7a1cc8e6c243bce6be7b5c37ece3cc54
parentbd86dd9889b1a599c03f28d1771257adf54ae4f8
irq_domain: fix type mismatch in debugfs output format

sizeof(void*) returns an unsigned long, but it was being used as a width parameter to a "%-*s" format string which requires an int.  On 64 bit platforms this causes a type mismatch:

    linux/kernel/irq/irqdomain.c:575: warning: field width should have type
    'int', but argument 6 has type 'long unsigned int'

This change casts the size to an int so printf gets the right data type.

Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: David Daney <david.daney@cavium.com>
kernel/irq/irqdomain.c