From patchwork Thu Dec 12 19:51:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 3333821 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 31F8F9F243 for ; Thu, 12 Dec 2013 19:51:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D4CC20784 for ; Thu, 12 Dec 2013 19:51:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B1BB2077A for ; Thu, 12 Dec 2013 19:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751634Ab3LLTve (ORCPT ); Thu, 12 Dec 2013 14:51:34 -0500 Received: from merlin.infradead.org ([205.233.59.134]:46920 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570Ab3LLTve (ORCPT ); Thu, 12 Dec 2013 14:51:34 -0500 Received: from 107-1-141-74-ip-static.hfc.comcastbusiness.net ([107.1.141.74] helo=[192.168.254.170]) by merlin.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrCIE-000800-RZ; Thu, 12 Dec 2013 19:51:31 +0000 Message-ID: <1386877889.1002.6.camel@smoke> Subject: [PATCH v2 4/4] sh/kexec: Fix kexec build warning From: Geoff Levand To: Eric Biederman Cc: kexec@lists.infradead.org, Paul Mundt , linux-sh@vger.kernel.org, Geert Uytterhoeven Date: Thu, 12 Dec 2013 11:51:29 -0800 In-Reply-To: References: X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change the format specifiers in the kexec_info routine to match the data types. Eliminates the need for type casts and fixes a type mismatch compiler warning. Also replace indenting spaces with a tab character. Signed-off-by: Geoff Levand for Huawei, Linaro --- V2: Change from type cast fix to format specifier fix. arch/sh/kernel/machine_kexec.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c index 9fea49f..8195c35 100644 --- a/arch/sh/kernel/machine_kexec.c +++ b/arch/sh/kernel/machine_kexec.c @@ -53,17 +53,17 @@ void machine_kexec_cleanup(struct kimage *image) static void kexec_info(struct kimage *image) { - int i; + int i; printk("kexec information\n"); for (i = 0; i < image->nr_segments; i++) { - printk(" segment[%d]: 0x%08x - 0x%08x (0x%08x)\n", + printk(" segment[%d]: 0x%08lx - 0x%08lx (0x%08zx)\n", i, - (unsigned int)image->segment[i].mem, - (unsigned int)image->segment[i].mem + - image->segment[i].memsz, - (unsigned int)image->segment[i].memsz); + image->segment[i].mem, + image->segment[i].mem + + image->segment[i].memsz, + image->segment[i].memsz); } - printk(" start : 0x%08x\n\n", (unsigned int)image->start); + printk(" start : 0x%08lx\n\n", image->start); } /*