diff --git a/hw_fence/Kbuild b/hw_fence/Kbuild index 8948d581e9..2cf74d291b 100644 --- a/hw_fence/Kbuild +++ b/hw_fence/Kbuild @@ -18,3 +18,5 @@ msm_hw_fence-$(CONFIG_DEBUG_FS) += src/hw_fence_ioctl.o CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\" endif +EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \ + -Wformat-invalid-specifier -Wformat-zero-length -Wnonnull \ No newline at end of file diff --git a/hw_fence/src/hw_fence_drv_debug.c b/hw_fence/src/hw_fence_drv_debug.c index 1844c2926c..b159c9cee4 100644 --- a/hw_fence/src/hw_fence_drv_debug.c +++ b/hw_fence/src/hw_fence_drv_debug.c @@ -500,7 +500,8 @@ static int dump_single_entry(struct hw_fence_driver_data *drv_data, char *buf, u hw_fence = msm_hw_fence_find(drv_data, NULL, context, seqno, &hash); if (!hw_fence) { - HWFNC_ERR("no valid hfence found for context:%lu seqno:%lu", context, seqno, hash); + HWFNC_ERR("no valid hfence found for context:%lu seqno:%lu hash:%lu", + context, seqno, hash); len = scnprintf(buf + len, max_size - len, "no valid hfence found for context:%lu seqno:%lu hash:%lu\n", context, seqno, hash); diff --git a/hw_fence/src/hw_fence_drv_priv.c b/hw_fence/src/hw_fence_drv_priv.c index 22a932c773..cb59f3d4d3 100644 --- a/hw_fence/src/hw_fence_drv_priv.c +++ b/hw_fence/src/hw_fence_drv_priv.c @@ -310,7 +310,7 @@ int hw_fence_update_queue(struct hw_fence_driver_data *drv_data, /* calculate the index after the write */ to_write_idx = write_idx + payload_size_u32; - HWFNC_DBG_Q("to_write_idx:%d write_idx:%d payload_size\n", to_write_idx, write_idx, + HWFNC_DBG_Q("to_write_idx:%d write_idx:%d payload_size:%u\n", to_write_idx, write_idx, payload_size_u32); HWFNC_DBG_L("client_id:%d update %s hash:%llu ctx_id:%llu seqno:%llu flags:%llu error:%u\n", hw_fence_client->client_id, _get_queue_type(queue_type), diff --git a/msm_ext_display/Kbuild b/msm_ext_display/Kbuild index 284134c0af..a54149152b 100644 --- a/msm_ext_display/Kbuild +++ b/msm_ext_display/Kbuild @@ -8,3 +8,5 @@ obj-m += msm_ext_display.o msm_ext_display-y := src/msm_ext_display.o CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\" +EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \ + -Wformat-invalid-specifier -Wformat-zero-length -Wnonnull \ No newline at end of file diff --git a/sync_fence/Kbuild b/sync_fence/Kbuild index fd631a4348..b1f9db20d7 100644 --- a/sync_fence/Kbuild +++ b/sync_fence/Kbuild @@ -12,3 +12,5 @@ sync_fence-y := src/qcom_sync_file.o CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\" endif +EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \ + -Wformat-invalid-specifier -Wformat-zero-length -Wnonnull