summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <rob@ti.com>2010-11-05 08:59:37 -0500
committerDavid Sin <davidsin@ti.com>2010-11-12 15:20:56 -0600
commitd5c2de6f3d42b585038faf131720d93a8adbd4a7 (patch)
tree9bebb280fb67b54cd24f3a5a3a2cb7322ceb8fac
parentc5aa7b65c9560b0e21ed446f6ff4024cfb85db13 (diff)
TILER: Don't declare big table on stack
Signed-off-by: Rob Clark <rob@ti.com> Acked-by: Lajos Molnar <molnar@ti.com> Acked-by: David Sin <davidsin@ti.com>
-rw-r--r--drivers/media/video/tiler/tiler_pack.c4
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 */