drivers/staging/media/solo6x10: sparse warning corrections
Subsystems (2)
PATCH 1/1 drivers/staging/media/solo6x10: sparse warning corrections
From: Sami Laine <[email protected]>
Sparse warning correction:
CHECK drivers/staging/media/solo6x10/solo6x10-v4l2-enc.cdrivers/staging/media/solo6x10/solo6x10-jpeg.h:113:21: warning: symbol 'jpeg_dqt ' was not declared. Should it be static?
The symbol jpeg_dqt is used just in solo6x10-v4l2-enc.c, so I think it makes sense to declare it static, which suppresses the sparse warning.
Signed-off-by Sami Laine <[email protected]>
---
drivers/staging/media/solo6x10/solo6x10-jpeg.h +1 -1
@@ -110,7 +110,7 @@ static const unsigned char jpeg_header[] = {/* This is the byte marker for the start of the DQT */ #define DQT_START 17#define DQT_LEN 138 -const unsigned char jpeg_dqt[4 ][DQT_LEN ] = { +static const unsigned char jpeg_dqt[4 ][DQT_LEN ] = { {0xff ,0xdb ,0x00 ,0x43 ,0x00 ,0x08 ,0x06 ,0x06 ,0x07 ,0x06 ,0x05 ,0x08 ,0x07 ,