aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-04-12 16:42:15 -0400
committerGrant Likely <grant.likely@secretlab.ca>2012-04-12 18:25:48 -0400
commit5269a9ab7def9a3116663347d59c4d70afa2d180 (patch)
treee4c93f4f7a1cc8e6c243bce6be7b5c37ece3cc54 /kernel
parentecca5c3acc0d0933d89abc44e60afb0cc8170e35 (diff)
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/irqdomain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index d34413e78628..0e0ba5f840b2 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -629,7 +629,8 @@ static int virq_debug_show(struct seq_file *m, void *private)
629 int i; 629 int i;
630 630
631 seq_printf(m, "%-5s %-7s %-15s %-*s %s\n", "irq", "hwirq", 631 seq_printf(m, "%-5s %-7s %-15s %-*s %s\n", "irq", "hwirq",
632 "chip name", 2 * sizeof(void *) + 2, "chip data", "domain name"); 632 "chip name", (int)(2 * sizeof(void *) + 2), "chip data",
633 "domain name");
633 634
634 for (i = 1; i < nr_irqs; i++) { 635 for (i = 1; i < nr_irqs; i++) {
635 desc = irq_to_desc(i); 636 desc = irq_to_desc(i);