Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbbEZCln (ORCPT ); Mon, 25 May 2015 22:41:43 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:52351 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791AbbEZCll (ORCPT ); Mon, 25 May 2015 22:41:41 -0400 Message-ID: <5563DD50.8090603@huawei.com> Date: Tue, 26 May 2015 10:41:20 +0800 From: Li Bin User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Jiri Kosina , Nicholas Mc Guire CC: Josh Poimboeuf , Seth Jennings , Vojtech Pavlik , , , xiexiuqi , Hanjun Guo , Libin Subject: livepatch: match function return value type with prototype References: <1431323549-27343-1-git-send-email-hofrat@osadl.org> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.181] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 835 Lines: 29 The klp_is_module return type should be boolean. Signed-off-by: Li Bin --- kernel/livepatch/core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index 284e269..30e9339 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c @@ -78,7 +78,7 @@ static struct klp_ops *klp_find_ops(unsigned long old_addr) static bool klp_is_module(struct klp_object *obj) { - return obj->name; + return !!obj->name; } static bool klp_is_object_loaded(struct klp_object *obj) -- 1.7.1 -- 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/