build it with -Werror
Change-Id: I115005ea99dea06d3e2159f18d3a3ada8bcfae7f
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
ks_features_module_name=swap_ks_features.ko
make CROSS_COMPILE=${cross_compile} ARCH=${arch} -C ${kernel_dir} M=${ks_features_dir} \
- extra_cflags="-I${modules_dir} -I${kprobe_dir} -I${kprobe_arch_dir} -I${ksyms_dir}" \
+ extra_cflags="-Werror -I${modules_dir} -I${kprobe_dir} -I${kprobe_arch_dir} -I${ksyms_dir}" \
modules || exit 1
sampler_module_name=swap_sampler.ko
struct kretprobe *rp = ri->rp;
if (rp) {
- unsigned long func_addr = rp->kp.addr;
- unsigned long ret_addr = ri->ret_addr;
+ unsigned long func_addr = (unsigned long)rp->kp.addr;
+ unsigned long ret_addr = (unsigned long)ri->ret_addr;
exit_event(regs, func_addr, ret_addr);
}