mm-drivers: fix prink argument errors

This change fixes printk arguments in mm-drivers which is
found with additional compilation flags and add compile
flags too.

Change-Id: Ic83f044467dca6d391221182096b9c50b7da36de
Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
This commit is contained in:
Nilaan Gunabalachandran
2022-11-08 13:37:36 -05:00
parent 90774e9372
commit d881744a72
5 changed files with 9 additions and 2 deletions

View File

@@ -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')\" CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
endif endif
EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \
-Wformat-invalid-specifier -Wformat-zero-length -Wnonnull

View File

@@ -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); hw_fence = msm_hw_fence_find(drv_data, NULL, context, seqno, &hash);
if (!hw_fence) { 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, len = scnprintf(buf + len, max_size - len,
"no valid hfence found for context:%lu seqno:%lu hash:%lu\n", "no valid hfence found for context:%lu seqno:%lu hash:%lu\n",
context, seqno, hash); context, seqno, hash);

View File

@@ -310,7 +310,7 @@ int hw_fence_update_queue(struct hw_fence_driver_data *drv_data,
/* calculate the index after the write */ /* calculate the index after the write */
to_write_idx = write_idx + payload_size_u32; 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); payload_size_u32);
HWFNC_DBG_L("client_id:%d update %s hash:%llu ctx_id:%llu seqno:%llu flags:%llu error:%u\n", 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), hw_fence_client->client_id, _get_queue_type(queue_type),

View File

@@ -8,3 +8,5 @@ obj-m += msm_ext_display.o
msm_ext_display-y := src/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')\" 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

View File

@@ -12,3 +12,5 @@ sync_fence-y := src/qcom_sync_file.o
CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\" CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
endif endif
EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \
-Wformat-invalid-specifier -Wformat-zero-length -Wnonnull