From ad00f1292be6ceb00110157bb1978bcc1906843a Mon Sep 17 00:00:00 2001 From: Trilok Soni Date: Mon, 7 Mar 2016 11:20:35 -0800 Subject: [PATCH] defconfig: 8996: Enable OPTIMIZE_FOR_SIZE for perf defconfig Enable OPTMIZE_FOR_SIZE for msm-perf_defconfig and also fix the forbidden warning found during the compilation. Signed-off-by: Trilok Soni --- arch/arm64/configs/msm-perf_defconfig | 1 + drivers/video/fbdev/msm/mdss_mdp_ctl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/configs/msm-perf_defconfig b/arch/arm64/configs/msm-perf_defconfig index 36829b31ffef..8d60ad6b75bc 100644 --- a/arch/arm64/configs/msm-perf_defconfig +++ b/arch/arm64/configs/msm-perf_defconfig @@ -24,6 +24,7 @@ CONFIG_SCHED_HMP=y # CONFIG_NET_NS is not set CONFIG_SCHED_AUTOGROUP=y CONFIG_BLK_DEV_INITRD=y +CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_KALLSYMS_ALL=y # CONFIG_COMPAT_BRK is not set CONFIG_PROFILING=y diff --git a/drivers/video/fbdev/msm/mdss_mdp_ctl.c b/drivers/video/fbdev/msm/mdss_mdp_ctl.c index 7973620d42fe..7d2b4dfc6270 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_ctl.c +++ b/drivers/video/fbdev/msm/mdss_mdp_ctl.c @@ -325,7 +325,7 @@ static u32 mdss_mdp_perf_calc_pipe_prefill_video(struct mdss_mdp_prefill_params u32 y_buf_bytes = 0; u32 y_scaler_bytes = 0; u32 pp_bytes = 0, pp_lines = 0; - u32 post_scaler_bytes; + u32 post_scaler_bytes = 0; u32 fbc_bytes = 0; prefill_bytes = prefill->ot_bytes;