Messages in this thread Patch in this message | | | Date | Tue, 26 May 2015 10:41:20 +0800 | From | Li Bin <> | Subject | livepatch: match function return value type with prototype |
| |
The klp_is_module return type should be boolean.
Signed-off-by: Li Bin <huawei.libin@huawei.com> --- 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
| |