Skip to content

Commit ecf1b4c

Browse files
committed
media: atomisp: get rid of some unused static vars
There are several static vars declared inside the system local headers. This causes lots of warnings when W=1. Remove the unused ones. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent ac82845 commit ecf1b4c

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

drivers/staging/media/atomisp/pci/isp2400_system_local.h

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838

3939
#define GP_FIFO_BASE ((hrt_address)0x0000000000090104) /* This is NOT a base address */
4040

41-
/* DDR */
42-
static const hrt_address DDR_BASE[N_DDR_ID] = {
43-
(hrt_address)0x0000000120000000ULL
44-
};
45-
4641
/* ISP */
4742
static const hrt_address ISP_CTRL_BASE[N_ISP_ID] = {
4843
(hrt_address)0x0000000000020000ULL
@@ -56,16 +51,6 @@ static const hrt_address ISP_BAMEM_BASE[N_BAMEM_ID] = {
5651
(hrt_address)0x0000000000100000ULL
5752
};
5853

59-
static const hrt_address ISP_VAMEM_BASE[N_VAMEM_ID] = {
60-
(hrt_address)0x00000000001C0000ULL,
61-
(hrt_address)0x00000000001D0000ULL,
62-
(hrt_address)0x00000000001E0000ULL
63-
};
64-
65-
static const hrt_address ISP_HMEM_BASE[N_HMEM_ID] = {
66-
(hrt_address)0x00000000001F0000ULL
67-
};
68-
6954
/* SP */
7055
static const hrt_address SP_CTRL_BASE[N_SP_ID] = {
7156
(hrt_address)0x0000000000010000ULL
@@ -75,10 +60,6 @@ static const hrt_address SP_DMEM_BASE[N_SP_ID] = {
7560
(hrt_address)0x0000000000300000ULL
7661
};
7762

78-
static const hrt_address SP_PMEM_BASE[N_SP_ID] = {
79-
(hrt_address)0x00000000000B0000ULL
80-
};
81-
8263
/* MMU */
8364
/*
8465
* MMU0_ID: The data MMU
@@ -177,11 +158,6 @@ static const hrt_address RX_BASE[N_RX_ID] = {
177158

178159
#define GP_FIFO_BASE ((hrt_address)0x00090104) /* This is NOT a base address */
179160

180-
/* DDR : Attention, this value not defined in 32-bit */
181-
static const hrt_address DDR_BASE[N_DDR_ID] = {
182-
(hrt_address)0x00000000UL
183-
};
184-
185161
/* ISP */
186162
static const hrt_address ISP_CTRL_BASE[N_ISP_ID] = {
187163
(hrt_address)0x00020000UL
@@ -195,16 +171,6 @@ static const hrt_address ISP_BAMEM_BASE[N_BAMEM_ID] = {
195171
(hrt_address)0x100000UL
196172
};
197173

198-
static const hrt_address ISP_VAMEM_BASE[N_VAMEM_ID] = {
199-
(hrt_address)0xffffffffUL,
200-
(hrt_address)0xffffffffUL,
201-
(hrt_address)0xffffffffUL
202-
};
203-
204-
static const hrt_address ISP_HMEM_BASE[N_HMEM_ID] = {
205-
(hrt_address)0xffffffffUL
206-
};
207-
208174
/* SP */
209175
static const hrt_address SP_CTRL_BASE[N_SP_ID] = {
210176
(hrt_address)0x00010000UL
@@ -214,10 +180,6 @@ static const hrt_address SP_DMEM_BASE[N_SP_ID] = {
214180
(hrt_address)0x00300000UL
215181
};
216182

217-
static const hrt_address SP_PMEM_BASE[N_SP_ID] = {
218-
(hrt_address)0x000B0000UL
219-
};
220-
221183
/* MMU */
222184
/*
223185
* MMU0_ID: The data MMU

drivers/staging/media/atomisp/pci/isp2401_system_local.h

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636

3737
#define GP_FIFO_BASE ((hrt_address)0x0000000000090104) /* This is NOT a base address */
3838

39-
/* DDR */
40-
static const hrt_address DDR_BASE[N_DDR_ID] = {
41-
0x0000000120000000ULL
42-
};
43-
4439
/* ISP */
4540
static const hrt_address ISP_CTRL_BASE[N_ISP_ID] = {
4641
0x0000000000020000ULL
@@ -54,16 +49,6 @@ static const hrt_address ISP_BAMEM_BASE[N_BAMEM_ID] = {
5449
0x0000000000100000ULL
5550
};
5651

57-
static const hrt_address ISP_VAMEM_BASE[N_VAMEM_ID] = {
58-
0x00000000001C0000ULL,
59-
0x00000000001D0000ULL,
60-
0x00000000001E0000ULL
61-
};
62-
63-
static const hrt_address ISP_HMEM_BASE[N_HMEM_ID] = {
64-
0x00000000001F0000ULL
65-
};
66-
6752
/* SP */
6853
static const hrt_address SP_CTRL_BASE[N_SP_ID] = {
6954
0x0000000000010000ULL
@@ -217,11 +202,6 @@ static const hrt_address STREAM2MMIO_CTRL_BASE[N_STREAM2MMIO_ID] = {
217202

218203
#define GP_FIFO_BASE ((hrt_address)0x00090104) /* This is NOT a base address */
219204

220-
/* DDR : Attention, this value not defined in 32-bit */
221-
static const hrt_address DDR_BASE[N_DDR_ID] = {
222-
0x00000000UL
223-
};
224-
225205
/* ISP */
226206
static const hrt_address ISP_CTRL_BASE[N_ISP_ID] = {
227207
0x00020000UL
@@ -235,16 +215,6 @@ static const hrt_address ISP_BAMEM_BASE[N_BAMEM_ID] = {
235215
0xffffffffUL
236216
};
237217

238-
static const hrt_address ISP_VAMEM_BASE[N_VAMEM_ID] = {
239-
0xffffffffUL,
240-
0xffffffffUL,
241-
0xffffffffUL
242-
};
243-
244-
static const hrt_address ISP_HMEM_BASE[N_HMEM_ID] = {
245-
0xffffffffUL
246-
};
247-
248218
/* SP */
249219
static const hrt_address SP_CTRL_BASE[N_SP_ID] = {
250220
0x00010000UL

0 commit comments

Comments
 (0)