Skip to contentSkip to conversation

staging: solo6x10: fix for sparse warning message

PATCH In review Anthony DeStefano 2 participants 2 messages Jun 20, 2014 – Jun 22, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: solo6x10: fix for sparse warning message

Define jpeg_dqt as static.

---
 drivers/staging/media/solo6x10/solo6x10-jpeg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/solo6x10/solo6x10-jpeg.h +1 -1
index c5218ce..9e41185 100644
@@ -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,
Signature · 1 line
2.0.0
#1 lore raw
Quoted 15 lines · On Thu, 19 Jun 2014 21:53:21 -0400 Anthony DeStefano <[email protected]> wrote:

Define jpeg_dqt as static.

---
 drivers/staging/media/solo6x10/solo6x10-jpeg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/staging/media/solo6x10/solo6x10-jpeg.h index c5218ce..9e41185 100644 --- a/drivers/staging/media/solo6x10/solo6x10-jpeg.h +++ b/drivers/staging/media/solo6x10/solo6x10-jpeg.h @@ -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

drivers/staging/media/solo6x10/solo6x10-jpeg.h static const unsigned char jpeg_header[] = { · line 116

Quoted 5 lines
drivers/staging/media/solo6x10/solo6x10-jpeg.h +1 -1
-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,