From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752021AbcF1EIN (ORCPT ); Tue, 28 Jun 2016 00:08:13 -0400 Received: from ozlabs.org ([103.22.144.67]:59467 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbcF1EIL (ORCPT ); Tue, 28 Jun 2016 00:08:11 -0400 Message-ID: <1467086888.32607.9.camel@ellerman.id.au> Subject: Re: arch/powerpc/xmon/dis-asm.h: 2 * wrong specifiers ? From: Michael Ellerman To: David Binderman , benh@kernel.crashing.org, paulus@samba.org, linuxppc-dev@lists.ozlabs.org, Linux Kernel Mailing List , dcb314@hotmail.com Date: Tue, 28 Jun 2016 14:08:08 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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