From patchwork Wed Jan 9 01:37:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1950291 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 9B1103FC5A for ; Wed, 9 Jan 2013 01:40:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tskba-0006lo-R1; Wed, 09 Jan 2013 01:37:22 +0000 Received: from mail-gg0-f177.google.com ([209.85.161.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TskbX-0006lV-HR for linux-arm-kernel@lists.infradead.org; Wed, 09 Jan 2013 01:37:20 +0000 Received: by mail-gg0-f177.google.com with SMTP id y3so237372ggc.22 for ; Tue, 08 Jan 2013 17:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=Ud8AYtI514GImPgCSY9f/uRQGfKGRMkOv9xmM70psTs=; b=b808k8WAe6J8Q+sV2zMxexc0b+CXY1zIsFlrtaNlNVZmBE7e72ntbttH/jcZKhmnK8 Ubj1f8gEFUeu4HB+ThicP+835zQalKJX6p4i71vDiwuUPRcWaGXBotU7s11hkG4d6bT0 Kxh86BJnJmUBc9RQDkNFhJcTMkj8FnO0Kyj4XkEkt/tdjkOuR+IZd5d3y27TCyPkEJYo iMYSUcb+iqslQP1F1ggx+YhFfIVXj6pQtywz0LlUBn2Q6lh/El/uiFFEbVHnvSDNeBRW UZaxiRo6cKf6isfIPEz5WJJ3LPpHM67BiDC1x8DfCTa2/G+6dJpGdOxsyy54Yq5ZXmTD Yj5w== X-Received: by 10.236.65.66 with SMTP id e42mr65228190yhd.101.1357695436753; Tue, 08 Jan 2013 17:37:16 -0800 (PST) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([201.82.136.221]) by mx.google.com with ESMTPS id h37sm65159945anm.10.2013.01.08.17.37.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 17:37:16 -0800 (PST) From: Fabio Estevam To: kernel@pengutronix.de Subject: [PATCH] ARM: clk-imx35: Fix build warnings with W=1 Date: Tue, 8 Jan 2013 23:37:01 -0200 Message-Id: <1357695421-6862-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130108_203719_720922_51B2758A X-CRM114-Status: GOOD ( 12.30 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Fabio Estevam Fix the following warnings when building with W=1 option: arch/arm/mach-imx/clk-imx35.c: In function 'mx35_clocks_init': arch/arm/mach-imx/clk-imx35.c:70:12: warning: old-style function definition [-Wold-style-definition] arch/arm/mach-imx/clk-imx35.c:201:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Fabio Estevam --- arch/arm/mach-imx/clk-imx35.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/clk-imx35.c b/arch/arm/mach-imx/clk-imx35.c index 66f3d65..219ab6c 100644 --- a/arch/arm/mach-imx/clk-imx35.c +++ b/arch/arm/mach-imx/clk-imx35.c @@ -67,13 +67,13 @@ enum mx35_clks { static struct clk *clk[clk_max]; -int __init mx35_clocks_init() +int __init mx35_clocks_init(void) { void __iomem *base = MX35_IO_ADDRESS(MX35_CCM_BASE_ADDR); u32 pdr0, consumer_sel, hsp_sel; struct arm_ahb_div *aad; unsigned char *hsp_div; - int i; + u32 i; pdr0 = __raw_readl(base + MXC_CCM_PDR0); consumer_sel = (pdr0 >> 16) & 0xf;