From bf7aa9f3079ef939145ccce955ee21eb433b2f49 Mon Sep 17 00:00:00 2001 From: Anastasia Lyupa Date: Wed, 6 Nov 2013 17:03:51 +0400 Subject: [PATCH] [FIX] warnings in swap_message_parser build it and swap_energy with -Werror Change-Id: Ic4573509b1d2230829933dd86b91a532cc6a6b70 Signed-off-by: Anastasia Lyupa --- build.sh | 4 ++-- parser/msg_cmd.c | 5 ----- parser/us_inst.c | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index 12cdfad..d66f0db 100755 --- a/build.sh +++ b/build.sh @@ -86,11 +86,11 @@ make CROSS_COMPILE=${cross_compile} ARCH=${arch} -C ${kernel_dir} M=${sampler_di parser_module_name=swap_message_parser.ko make CROSS_COMPILE=${cross_compile} ARCH=${arch} -C ${kernel_dir} M=${parser_dir} \ - extra_cflags="-I${modules_dir}" modules || exit 1 + extra_cflags="-Werror -I${modules_dir}" modules || exit 1 energy_module_name=swap_energy.ko make CROSS_COMPILE=${cross_compile} ARCH=${arch} -C ${kernel_dir} M=${energy_dir} \ - extra_cflags="-I${modules_dir} -I${kprobe_dir} -I${kprobe_arch_dir}" modules || exit 1 + extra_cflags="-Werror -I${modules_dir} -I${kprobe_dir} -I${kprobe_arch_dir}" modules || exit 1 modules=\ "${buffer_dir}/${buffer_module_name} \ diff --git a/parser/msg_cmd.c b/parser/msg_cmd.c index f8e9c89..e0b77cc 100644 --- a/parser/msg_cmd.c +++ b/parser/msg_cmd.c @@ -32,11 +32,6 @@ #include "us_inst.h" #include "../us_manager/us_manager.h" -static int set_app_info(struct app_info_data *app_info) -{ - return 0; -} - static int set_config(struct conf_data *conf) { int ret; diff --git a/parser/us_inst.c b/parser/us_inst.c index c8da330..3cf4645 100644 --- a/parser/us_inst.c +++ b/parser/us_inst.c @@ -120,7 +120,7 @@ static int get_pfg_by_app_info(struct app_info_data *app_info, struct pf_group * *pfg = get_pf_group_by_dentry(dentry, dentry); break; default: - printk("ERROR: app_type=%0x%x\n", app_info->app_type); + printk("ERROR: app_type=0x%x\n", app_info->app_type); return -EINVAL; } @@ -150,7 +150,7 @@ static int mod_us_app_inst(struct app_inst_data *app_inst, enum MOD_TYPE mt) ret = mod_func_inst(app_inst->func[i], pfg, dentry, mt); if (ret) { - printk("Cannot mod func inst, ret = \n", ret); + printk("Cannot mod func inst, ret = %d\n", ret); return ret; } } -- 2.7.4