https://github.com/torvalds/linux
Revision 5269a9ab7def9a3116663347d59c4d70afa2d180 authored by Grant Likely on 12 April 2012, 20:42:15 UTC, committed by Grant Likely on 12 April 2012, 22:25:48 UTC
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>
1 parent ecca5c3
History
Tip revision: 5269a9ab7def9a3116663347d59c4d70afa2d180 authored by Grant Likely on 12 April 2012, 20:42:15 UTC
irq_domain: fix type mismatch in debugfs output format
Tip revision: 5269a9a
File Mode Size
Kconfig -rw-r--r-- 4.8 KB
Makefile -rw-r--r-- 392 bytes
TODO -rw-r--r-- 772 bytes
af_ax25.c -rw-r--r-- 44.0 KB
ax25_addr.c -rw-r--r-- 6.0 KB
ax25_dev.c -rw-r--r-- 4.8 KB
ax25_ds_in.c -rw-r--r-- 7.1 KB
ax25_ds_subr.c -rw-r--r-- 5.1 KB
ax25_ds_timer.c -rw-r--r-- 5.8 KB
ax25_iface.c -rw-r--r-- 4.9 KB
ax25_in.c -rw-r--r-- 10.5 KB
ax25_ip.c -rw-r--r-- 5.3 KB
ax25_out.c -rw-r--r-- 8.9 KB
ax25_route.c -rw-r--r-- 11.2 KB
ax25_std_in.c -rw-r--r-- 11.1 KB
ax25_std_subr.c -rw-r--r-- 2.3 KB
ax25_std_timer.c -rw-r--r-- 4.2 KB
ax25_subr.c -rw-r--r-- 6.9 KB
ax25_timer.c -rw-r--r-- 5.1 KB
ax25_uid.c -rw-r--r-- 4.7 KB
sysctl_net_ax25.c -rw-r--r-- 5.1 KB

back to top