diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2016-11-25 14:38:32 +0000 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2016-11-25 14:45:30 +0000 |
commit | b51f67cbf559ce1ea68daaa6111395daa34d15fe (patch) | |
tree | baf69b2c0db08bd2f1671b8cde3f63bb87fa1b51 | |
parent | f31be2b72f069ebc44e5df912584d6edbab69de4 (diff) |
misc: mediatek: cameraisp: Conceal const-ness warning
This code, which is compiled with -Werror, does not compile cleanly
with gcc-5.3.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rwxr-xr-x | drivers/misc/mediatek/cameraisp/src/mt6797/camera_isp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mediatek/cameraisp/src/mt6797/camera_isp.c b/drivers/misc/mediatek/cameraisp/src/mt6797/camera_isp.c index c7b3d3a4edc6..335d3d5f1321 100755 --- a/drivers/misc/mediatek/cameraisp/src/mt6797/camera_isp.c +++ b/drivers/misc/mediatek/cameraisp/src/mt6797/camera_isp.c @@ -6579,7 +6579,7 @@ static long ISP_ioctl(struct file *pFile, unsigned int Cmd, unsigned long Param) LOG_ERR("get module fail\n"); Ret = -EFAULT; } else { - if (copy_to_user((void *)Param, &g_DmaErr_CAM[DebugFlag[0]], sizeof(MUINT32)*nDMA_ERR) != 0) { + if (copy_to_user((void *)Param, (void *)&g_DmaErr_CAM[DebugFlag[0]], sizeof(MUINT32)*nDMA_ERR) != 0) { LOG_ERR("get dma_err fail\n"); } |