diff options
Diffstat (limited to 'drivers/media/video/tiler/tiler_pack.c')
-rw-r--r-- | drivers/media/video/tiler/tiler_pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tiler/tiler_pack.c b/drivers/media/video/tiler/tiler_pack.c index e21846909bc3..14273a7726fd 100644 --- a/drivers/media/video/tiler/tiler_pack.c +++ b/drivers/media/video/tiler/tiler_pack.c @@ -144,7 +144,7 @@ void tiler_alloc_packed_nv12(s32 *count, u32 width, u32 height, void **y_sysptr, void *buf[MAX_BUFS_TO_PACK]; int n_buf, buf_w[MAX_BUFS_TO_PACK]; - char packing[] = { + static const char packing[] = { /* min(i), max(w), aligned, buffers to alloc */ 5, 16, 0, 2, /* buffer widths in a + b * w(y) + c * w(uv) */ @@ -215,7 +215,7 @@ void tiler_alloc_packed_nv12(s32 *count, u32 width, u32 height, void **y_sysptr, while (i < *count) { int n_alloc = *count - i; - char *p = packing; + char *p = (char *)packing; n_buf = 0; /* skip packings that do not apply */ |