From patchwork Tue Oct 25 09:37:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 121523 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id ABC61B6F83 for ; Tue, 25 Oct 2011 20:39:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D5AF7290FE; Tue, 25 Oct 2011 11:38:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5keCnt3BbgvU; Tue, 25 Oct 2011 11:38:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 833CC290BB; Tue, 25 Oct 2011 11:38:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6579629060 for ; Tue, 25 Oct 2011 11:38:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VeZ5lTSpqXaC for ; Tue, 25 Oct 2011 11:38:13 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id A8A8E2901B for ; Tue, 25 Oct 2011 11:38:02 +0200 (CEST) Received: by mail-bw0-f44.google.com with SMTP id s6so241087bka.3 for ; Tue, 25 Oct 2011 02:38:02 -0700 (PDT) Received: by 10.204.156.73 with SMTP id v9mr19974378bkw.58.1319535482523; Tue, 25 Oct 2011 02:38:02 -0700 (PDT) Received: from mashiro.lan (cst-prg-176-30.cust.vodafone.cz. [46.135.176.30]) by mx.google.com with ESMTPS id f7sm10534950bkv.4.2011.10.25.02.38.00 (version=SSLv3 cipher=OTHER); Tue, 25 Oct 2011 02:38:02 -0700 (PDT) From: Marek Vasut To: u-boot@lists.denx.de Date: Tue, 25 Oct 2011 11:37:38 +0200 Message-Id: <1319535462-20693-7-git-send-email-marek.vasut@gmail.com> X-Mailer: git-send-email 1.7.6.3 In-Reply-To: <1319535462-20693-1-git-send-email-marek.vasut@gmail.com> References: <1319535462-20693-1-git-send-email-marek.vasut@gmail.com> Subject: [U-Boot] [PATCH 6/9] GCC4.6: Squash warnings in 4xx_pcie.c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 4xx_pcie.c: In function 'pcie_read_config': 4xx_pcie.c:268: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'volatile unsigned char *' Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Simon Glass Cc: Mike Frysinger --- arch/powerpc/cpu/ppc4xx/4xx_pcie.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/cpu/ppc4xx/4xx_pcie.c b/arch/powerpc/cpu/ppc4xx/4xx_pcie.c index b76890e..a87e93b 100644 --- a/arch/powerpc/cpu/ppc4xx/4xx_pcie.c +++ b/arch/powerpc/cpu/ppc4xx/4xx_pcie.c @@ -265,7 +265,8 @@ static int pcie_read_config(struct pci_controller *hose, unsigned int devfn, */ pcie_dmer_disable (); - debug("%s: cfg_data=%08x offset=%08x\n", __func__, hose->cfg_data, offset); + debug("%s: cfg_data=%p offset=%08x\n", __func__, + hose->cfg_data, offset); switch (len) { case 1: *val = in_8(hose->cfg_data + offset);