[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1467086888.32607.9.camel@ellerman.id.au>
Date: Tue, 28 Jun 2016 14:08:08 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: David Binderman <linuxdev.baldrick@...il.com>,
benh@...nel.crashing.org, paulus@...ba.org,
linuxppc-dev@...ts.ozlabs.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
dcb314@...mail.com
Subject: Re: arch/powerpc/xmon/dis-asm.h: 2 * wrong specifiers ?
On Mon, 2016-06-27 at 09:04 +0100, David Binderman wrote:
> Hello there,
>
> linux-4.7-rc5/arch/powerpc/xmon/dis-asm.h:20]: (warning) %x in format
> string (no. 1) requires 'unsigned int' but the argument type is
> 'unsigned long'.
> [linux-4.7-rc5/arch/powerpc/xmon/dis-asm.h:26]: (warning) %x in format
> string (no. 1) requires 'unsigned int' but the argument type is
> 'unsigned long'.
What config / toolchain are you using? I've never seen these.
Oh, I see, with CONFIG_XMON_DISASSEMBLY=n.
> static inline int print_insn_powerpc(unsigned long insn, unsigned long memaddr)
> {
> printf("%.8x", insn);
> return 0;
> }
Send me a patch to cast insn to unsigned int?
cheers
Powered by blists - more mailing lists