Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752471AbbKYNOH (ORCPT ); Wed, 25 Nov 2015 08:14:07 -0500 Received: from m50-133.163.com ([123.125.50.133]:38224 "EHLO m50-133.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726AbbKYNOE (ORCPT ); Wed, 25 Nov 2015 08:14:04 -0500 From: Geliang Tang To: Sekhar Nori , Kevin Hilman , Russell King Cc: Geliang Tang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] ARM: davinci: fix a problematic usage of WARN() Date: Wed, 25 Nov 2015 21:12:19 +0800 Message-Id: <06d69890c56bd84a831a1dccee26e34b4988a241.1448456395.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <86c73f180d3054c1bf17bdac8c89026209167c9b.1448456395.git.geliangtang@163.com> References: <86c73f180d3054c1bf17bdac8c89026209167c9b.1448456395.git.geliangtang@163.com> In-Reply-To: References: <86c73f180d3054c1bf17bdac8c89026209167c9b.1448456395.git.geliangtang@163.com> <8bb789c0803579a01e1ee977ed67408c422acd79.1448456395.git.geliangtang@163.com> <582529c23f77af64373f59fa92e29186df700d79.1448456395.git.geliangtang@163.com> <7701ed112cc71a9a17ba5b3022166011a98d0dca.1448456395.git.geliangtang@163.com> X-CM-TRANSID: DdGowEA5fkPFs1VWgd3sAg--.1368S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zw4kWFyfWF15ZFy8uFyfZwb_yoW8GFy3pa y29w1vkr129a4fCFyUAF48Zw1DCa1DGrnFkry5Ga18X3WxuryjyF4Sk343A3WrJry8t3y8 XFnxA3Z8X3s7XrJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UCg4DUUUUU= X-Originating-IP: [116.77.146.156] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/xtbByh69mVO+gH7FFAAAsy Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1579 Lines: 44 WARN() takes a condition and a format string. The condition was omitted. So I added it. Signed-off-by: Geliang Tang --- arch/arm/mach-davinci/board-dm355-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c index c71dd99..e47f24c 100644 --- a/arch/arm/mach-davinci/board-dm355-evm.c +++ b/arch/arm/mach-davinci/board-dm355-evm.c @@ -385,7 +385,7 @@ static __init void dm355_evm_init(void) aemif = clk_get(&dm355evm_dm9000.dev, "aemif"); if (IS_ERR(aemif)) - WARN("%s: unable to get AEMIF clock\n", __func__); + WARN(1, "%s: unable to get AEMIF clock\n", __func__); else clk_prepare_enable(aemif); diff --git a/arch/arm/mach-davinci/board-dm355-leopard.c b/arch/arm/mach-davinci/board-dm355-leopard.c index 680a7a2..83b625c 100644 --- a/arch/arm/mach-davinci/board-dm355-leopard.c +++ b/arch/arm/mach-davinci/board-dm355-leopard.c @@ -243,7 +243,7 @@ static __init void dm355_leopard_init(void) aemif = clk_get(&dm355leopard_dm9000.dev, "aemif"); if (IS_ERR(aemif)) - WARN("%s: unable to get AEMIF clock\n", __func__); + WARN(1, "%s: unable to get AEMIF clock\n", __func__); else clk_prepare_enable(aemif); -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/