Re: [PATCH] [POWERPC] Xilinx: Fix compile warnings
From: Stephen Rothwell <hidden>
Date: 2008-04-30 15:47:27
Attachments
- (unnamed) [application/pgp-signature] 189 bytes
From: Stephen Rothwell <hidden>
Date: 2008-04-30 15:47:27
Hi Kumar, On Wed, 30 Apr 2008 10:25:46 -0500 (CDT) Kumar Gala [off-list ref] wrote:
arch/powerpc/sysdev/xilinx_intc.c: In function âxilinx_intc_initâ: arch/powerpc/sysdev/xilinx_intc.c:111: warning: format â%08Xâ expects type âunsigned intâ, but argument 2 has type âresource_size_tâ drivers/char/xilinx_hwicap/xilinx_hwicap.c: In function âhwicap_setupâ: drivers/char/xilinx_hwicap/xilinx_hwicap.c:626: warning: cast to pointer from integer of different size drivers/char/xilinx_hwicap/xilinx_hwicap.c:646: warning: format â%xâ expects type âunsigned intâ, but argument 6 has type âresource_size_tâ
If you compile with LANG=C, you don't get those strange annotations in your error messages ... The fix looks good though. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/