Skip to content
Commit 5269a9ab authored by Grant Likely's avatar Grant Likely
Browse files

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: default avatarAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Cc: David Daney <david.daney@cavium.com>
parent ecca5c3a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment