Skip to content

Commit f11a996

Browse files
FlyGoattsbogend
authored andcommitted
MIPS: Loongson64: Fix more __iomem attributes
There are some __iomem type casting being missed in previous patch. Fix them here. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202307020639.QCZOKp8B-lkp@intel.com/ Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 2046390 commit f11a996

1 file changed

Lines changed: 80 additions & 80 deletions

File tree

  • arch/mips/loongson64

arch/mips/loongson64/smp.c

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -187,181 +187,181 @@ static void csr_ipi_probe(void)
187187

188188
static void ipi_set0_regs_init(void)
189189
{
190-
ipi_set0_regs[0] = (void *)
190+
ipi_set0_regs[0] = (void __iomem *)
191191
(SMP_CORE_GROUP0_BASE + SMP_CORE0_OFFSET + SET0);
192-
ipi_set0_regs[1] = (void *)
192+
ipi_set0_regs[1] = (void __iomem *)
193193
(SMP_CORE_GROUP0_BASE + SMP_CORE1_OFFSET + SET0);
194-
ipi_set0_regs[2] = (void *)
194+
ipi_set0_regs[2] = (void __iomem *)
195195
(SMP_CORE_GROUP0_BASE + SMP_CORE2_OFFSET + SET0);
196-
ipi_set0_regs[3] = (void *)
196+
ipi_set0_regs[3] = (void __iomem *)
197197
(SMP_CORE_GROUP0_BASE + SMP_CORE3_OFFSET + SET0);
198-
ipi_set0_regs[4] = (void *)
198+
ipi_set0_regs[4] = (void __iomem *)
199199
(SMP_CORE_GROUP1_BASE + SMP_CORE0_OFFSET + SET0);
200-
ipi_set0_regs[5] = (void *)
200+
ipi_set0_regs[5] = (void __iomem *)
201201
(SMP_CORE_GROUP1_BASE + SMP_CORE1_OFFSET + SET0);
202-
ipi_set0_regs[6] = (void *)
202+
ipi_set0_regs[6] = (void __iomem *)
203203
(SMP_CORE_GROUP1_BASE + SMP_CORE2_OFFSET + SET0);
204-
ipi_set0_regs[7] = (void *)
204+
ipi_set0_regs[7] = (void __iomem *)
205205
(SMP_CORE_GROUP1_BASE + SMP_CORE3_OFFSET + SET0);
206-
ipi_set0_regs[8] = (void *)
206+
ipi_set0_regs[8] = (void __iomem *)
207207
(SMP_CORE_GROUP2_BASE + SMP_CORE0_OFFSET + SET0);
208-
ipi_set0_regs[9] = (void *)
208+
ipi_set0_regs[9] = (void __iomem *)
209209
(SMP_CORE_GROUP2_BASE + SMP_CORE1_OFFSET + SET0);
210-
ipi_set0_regs[10] = (void *)
210+
ipi_set0_regs[10] = (void __iomem *)
211211
(SMP_CORE_GROUP2_BASE + SMP_CORE2_OFFSET + SET0);
212-
ipi_set0_regs[11] = (void *)
212+
ipi_set0_regs[11] = (void __iomem *)
213213
(SMP_CORE_GROUP2_BASE + SMP_CORE3_OFFSET + SET0);
214-
ipi_set0_regs[12] = (void *)
214+
ipi_set0_regs[12] = (void __iomem *)
215215
(SMP_CORE_GROUP3_BASE + SMP_CORE0_OFFSET + SET0);
216-
ipi_set0_regs[13] = (void *)
216+
ipi_set0_regs[13] = (void __iomem *)
217217
(SMP_CORE_GROUP3_BASE + SMP_CORE1_OFFSET + SET0);
218-
ipi_set0_regs[14] = (void *)
218+
ipi_set0_regs[14] = (void __iomem *)
219219
(SMP_CORE_GROUP3_BASE + SMP_CORE2_OFFSET + SET0);
220-
ipi_set0_regs[15] = (void *)
220+
ipi_set0_regs[15] = (void __iomem *)
221221
(SMP_CORE_GROUP3_BASE + SMP_CORE3_OFFSET + SET0);
222222
}
223223

224224
static void ipi_clear0_regs_init(void)
225225
{
226-
ipi_clear0_regs[0] = (void *)
226+
ipi_clear0_regs[0] = (void __iomem *)
227227
(SMP_CORE_GROUP0_BASE + SMP_CORE0_OFFSET + CLEAR0);
228-
ipi_clear0_regs[1] = (void *)
228+
ipi_clear0_regs[1] = (void __iomem *)
229229
(SMP_CORE_GROUP0_BASE + SMP_CORE1_OFFSET + CLEAR0);
230-
ipi_clear0_regs[2] = (void *)
230+
ipi_clear0_regs[2] = (void __iomem *)
231231
(SMP_CORE_GROUP0_BASE + SMP_CORE2_OFFSET + CLEAR0);
232-
ipi_clear0_regs[3] = (void *)
232+
ipi_clear0_regs[3] = (void __iomem *)
233233
(SMP_CORE_GROUP0_BASE + SMP_CORE3_OFFSET + CLEAR0);
234-
ipi_clear0_regs[4] = (void *)
234+
ipi_clear0_regs[4] = (void __iomem *)
235235
(SMP_CORE_GROUP1_BASE + SMP_CORE0_OFFSET + CLEAR0);
236-
ipi_clear0_regs[5] = (void *)
236+
ipi_clear0_regs[5] = (void __iomem *)
237237
(SMP_CORE_GROUP1_BASE + SMP_CORE1_OFFSET + CLEAR0);
238-
ipi_clear0_regs[6] = (void *)
238+
ipi_clear0_regs[6] = (void __iomem *)
239239
(SMP_CORE_GROUP1_BASE + SMP_CORE2_OFFSET + CLEAR0);
240-
ipi_clear0_regs[7] = (void *)
240+
ipi_clear0_regs[7] = (void __iomem *)
241241
(SMP_CORE_GROUP1_BASE + SMP_CORE3_OFFSET + CLEAR0);
242-
ipi_clear0_regs[8] = (void *)
242+
ipi_clear0_regs[8] = (void __iomem *)
243243
(SMP_CORE_GROUP2_BASE + SMP_CORE0_OFFSET + CLEAR0);
244-
ipi_clear0_regs[9] = (void *)
244+
ipi_clear0_regs[9] = (void __iomem *)
245245
(SMP_CORE_GROUP2_BASE + SMP_CORE1_OFFSET + CLEAR0);
246-
ipi_clear0_regs[10] = (void *)
246+
ipi_clear0_regs[10] = (void __iomem *)
247247
(SMP_CORE_GROUP2_BASE + SMP_CORE2_OFFSET + CLEAR0);
248-
ipi_clear0_regs[11] = (void *)
248+
ipi_clear0_regs[11] = (void __iomem *)
249249
(SMP_CORE_GROUP2_BASE + SMP_CORE3_OFFSET + CLEAR0);
250-
ipi_clear0_regs[12] = (void *)
250+
ipi_clear0_regs[12] = (void __iomem *)
251251
(SMP_CORE_GROUP3_BASE + SMP_CORE0_OFFSET + CLEAR0);
252-
ipi_clear0_regs[13] = (void *)
252+
ipi_clear0_regs[13] = (void __iomem *)
253253
(SMP_CORE_GROUP3_BASE + SMP_CORE1_OFFSET + CLEAR0);
254-
ipi_clear0_regs[14] = (void *)
254+
ipi_clear0_regs[14] = (void __iomem *)
255255
(SMP_CORE_GROUP3_BASE + SMP_CORE2_OFFSET + CLEAR0);
256-
ipi_clear0_regs[15] = (void *)
256+
ipi_clear0_regs[15] = (void __iomem *)
257257
(SMP_CORE_GROUP3_BASE + SMP_CORE3_OFFSET + CLEAR0);
258258
}
259259

260260
static void ipi_status0_regs_init(void)
261261
{
262-
ipi_status0_regs[0] = (void *)
262+
ipi_status0_regs[0] = (void __iomem *)
263263
(SMP_CORE_GROUP0_BASE + SMP_CORE0_OFFSET + STATUS0);
264-
ipi_status0_regs[1] = (void *)
264+
ipi_status0_regs[1] = (void __iomem *)
265265
(SMP_CORE_GROUP0_BASE + SMP_CORE1_OFFSET + STATUS0);
266-
ipi_status0_regs[2] = (void *)
266+
ipi_status0_regs[2] = (void __iomem *)
267267
(SMP_CORE_GROUP0_BASE + SMP_CORE2_OFFSET + STATUS0);
268-
ipi_status0_regs[3] = (void *)
268+
ipi_status0_regs[3] = (void __iomem *)
269269
(SMP_CORE_GROUP0_BASE + SMP_CORE3_OFFSET + STATUS0);
270-
ipi_status0_regs[4] = (void *)
270+
ipi_status0_regs[4] = (void __iomem *)
271271
(SMP_CORE_GROUP1_BASE + SMP_CORE0_OFFSET + STATUS0);
272-
ipi_status0_regs[5] = (void *)
272+
ipi_status0_regs[5] = (void __iomem *)
273273
(SMP_CORE_GROUP1_BASE + SMP_CORE1_OFFSET + STATUS0);
274-
ipi_status0_regs[6] = (void *)
274+
ipi_status0_regs[6] = (void __iomem *)
275275
(SMP_CORE_GROUP1_BASE + SMP_CORE2_OFFSET + STATUS0);
276-
ipi_status0_regs[7] = (void *)
276+
ipi_status0_regs[7] = (void __iomem *)
277277
(SMP_CORE_GROUP1_BASE + SMP_CORE3_OFFSET + STATUS0);
278-
ipi_status0_regs[8] = (void *)
278+
ipi_status0_regs[8] = (void __iomem *)
279279
(SMP_CORE_GROUP2_BASE + SMP_CORE0_OFFSET + STATUS0);
280-
ipi_status0_regs[9] = (void *)
280+
ipi_status0_regs[9] = (void __iomem *)
281281
(SMP_CORE_GROUP2_BASE + SMP_CORE1_OFFSET + STATUS0);
282-
ipi_status0_regs[10] = (void *)
282+
ipi_status0_regs[10] = (void __iomem *)
283283
(SMP_CORE_GROUP2_BASE + SMP_CORE2_OFFSET + STATUS0);
284-
ipi_status0_regs[11] = (void *)
284+
ipi_status0_regs[11] = (void __iomem *)
285285
(SMP_CORE_GROUP2_BASE + SMP_CORE3_OFFSET + STATUS0);
286-
ipi_status0_regs[12] = (void *)
286+
ipi_status0_regs[12] = (void __iomem *)
287287
(SMP_CORE_GROUP3_BASE + SMP_CORE0_OFFSET + STATUS0);
288-
ipi_status0_regs[13] = (void *)
288+
ipi_status0_regs[13] = (void __iomem *)
289289
(SMP_CORE_GROUP3_BASE + SMP_CORE1_OFFSET + STATUS0);
290-
ipi_status0_regs[14] = (void *)
290+
ipi_status0_regs[14] = (void __iomem *)
291291
(SMP_CORE_GROUP3_BASE + SMP_CORE2_OFFSET + STATUS0);
292-
ipi_status0_regs[15] = (void *)
292+
ipi_status0_regs[15] = (void __iomem *)
293293
(SMP_CORE_GROUP3_BASE + SMP_CORE3_OFFSET + STATUS0);
294294
}
295295

296296
static void ipi_en0_regs_init(void)
297297
{
298-
ipi_en0_regs[0] = (void *)
298+
ipi_en0_regs[0] = (void __iomem *)
299299
(SMP_CORE_GROUP0_BASE + SMP_CORE0_OFFSET + EN0);
300-
ipi_en0_regs[1] = (void *)
300+
ipi_en0_regs[1] = (void __iomem *)
301301
(SMP_CORE_GROUP0_BASE + SMP_CORE1_OFFSET + EN0);
302-
ipi_en0_regs[2] = (void *)
302+
ipi_en0_regs[2] = (void __iomem *)
303303
(SMP_CORE_GROUP0_BASE + SMP_CORE2_OFFSET + EN0);
304-
ipi_en0_regs[3] = (void *)
304+
ipi_en0_regs[3] = (void __iomem *)
305305
(SMP_CORE_GROUP0_BASE + SMP_CORE3_OFFSET + EN0);
306-
ipi_en0_regs[4] = (void *)
306+
ipi_en0_regs[4] = (void __iomem *)
307307
(SMP_CORE_GROUP1_BASE + SMP_CORE0_OFFSET + EN0);
308-
ipi_en0_regs[5] = (void *)
308+
ipi_en0_regs[5] = (void __iomem *)
309309
(SMP_CORE_GROUP1_BASE + SMP_CORE1_OFFSET + EN0);
310-
ipi_en0_regs[6] = (void *)
310+
ipi_en0_regs[6] = (void __iomem *)
311311
(SMP_CORE_GROUP1_BASE + SMP_CORE2_OFFSET + EN0);
312-
ipi_en0_regs[7] = (void *)
312+
ipi_en0_regs[7] = (void __iomem *)
313313
(SMP_CORE_GROUP1_BASE + SMP_CORE3_OFFSET + EN0);
314-
ipi_en0_regs[8] = (void *)
314+
ipi_en0_regs[8] = (void __iomem *)
315315
(SMP_CORE_GROUP2_BASE + SMP_CORE0_OFFSET + EN0);
316-
ipi_en0_regs[9] = (void *)
316+
ipi_en0_regs[9] = (void __iomem *)
317317
(SMP_CORE_GROUP2_BASE + SMP_CORE1_OFFSET + EN0);
318-
ipi_en0_regs[10] = (void *)
318+
ipi_en0_regs[10] = (void __iomem *)
319319
(SMP_CORE_GROUP2_BASE + SMP_CORE2_OFFSET + EN0);
320-
ipi_en0_regs[11] = (void *)
320+
ipi_en0_regs[11] = (void __iomem *)
321321
(SMP_CORE_GROUP2_BASE + SMP_CORE3_OFFSET + EN0);
322-
ipi_en0_regs[12] = (void *)
322+
ipi_en0_regs[12] = (void __iomem *)
323323
(SMP_CORE_GROUP3_BASE + SMP_CORE0_OFFSET + EN0);
324-
ipi_en0_regs[13] = (void *)
324+
ipi_en0_regs[13] = (void __iomem *)
325325
(SMP_CORE_GROUP3_BASE + SMP_CORE1_OFFSET + EN0);
326-
ipi_en0_regs[14] = (void *)
326+
ipi_en0_regs[14] = (void __iomem *)
327327
(SMP_CORE_GROUP3_BASE + SMP_CORE2_OFFSET + EN0);
328-
ipi_en0_regs[15] = (void *)
328+
ipi_en0_regs[15] = (void __iomem *)
329329
(SMP_CORE_GROUP3_BASE + SMP_CORE3_OFFSET + EN0);
330330
}
331331

332332
static void ipi_mailbox_buf_init(void)
333333
{
334-
ipi_mailbox_buf[0] = (void *)
334+
ipi_mailbox_buf[0] = (void __iomem *)
335335
(SMP_CORE_GROUP0_BASE + SMP_CORE0_OFFSET + BUF);
336-
ipi_mailbox_buf[1] = (void *)
336+
ipi_mailbox_buf[1] = (void __iomem *)
337337
(SMP_CORE_GROUP0_BASE + SMP_CORE1_OFFSET + BUF);
338-
ipi_mailbox_buf[2] = (void *)
338+
ipi_mailbox_buf[2] = (void __iomem *)
339339
(SMP_CORE_GROUP0_BASE + SMP_CORE2_OFFSET + BUF);
340-
ipi_mailbox_buf[3] = (void *)
340+
ipi_mailbox_buf[3] = (void __iomem *)
341341
(SMP_CORE_GROUP0_BASE + SMP_CORE3_OFFSET + BUF);
342-
ipi_mailbox_buf[4] = (void *)
342+
ipi_mailbox_buf[4] = (void __iomem *)
343343
(SMP_CORE_GROUP1_BASE + SMP_CORE0_OFFSET + BUF);
344-
ipi_mailbox_buf[5] = (void *)
344+
ipi_mailbox_buf[5] = (void __iomem *)
345345
(SMP_CORE_GROUP1_BASE + SMP_CORE1_OFFSET + BUF);
346-
ipi_mailbox_buf[6] = (void *)
346+
ipi_mailbox_buf[6] = (void __iomem *)
347347
(SMP_CORE_GROUP1_BASE + SMP_CORE2_OFFSET + BUF);
348-
ipi_mailbox_buf[7] = (void *)
348+
ipi_mailbox_buf[7] = (void __iomem *)
349349
(SMP_CORE_GROUP1_BASE + SMP_CORE3_OFFSET + BUF);
350-
ipi_mailbox_buf[8] = (void *)
350+
ipi_mailbox_buf[8] = (void __iomem *)
351351
(SMP_CORE_GROUP2_BASE + SMP_CORE0_OFFSET + BUF);
352-
ipi_mailbox_buf[9] = (void *)
352+
ipi_mailbox_buf[9] = (void __iomem *)
353353
(SMP_CORE_GROUP2_BASE + SMP_CORE1_OFFSET + BUF);
354-
ipi_mailbox_buf[10] = (void *)
354+
ipi_mailbox_buf[10] = (void __iomem *)
355355
(SMP_CORE_GROUP2_BASE + SMP_CORE2_OFFSET + BUF);
356-
ipi_mailbox_buf[11] = (void *)
356+
ipi_mailbox_buf[11] = (void __iomem *)
357357
(SMP_CORE_GROUP2_BASE + SMP_CORE3_OFFSET + BUF);
358-
ipi_mailbox_buf[12] = (void *)
358+
ipi_mailbox_buf[12] = (void __iomem *)
359359
(SMP_CORE_GROUP3_BASE + SMP_CORE0_OFFSET + BUF);
360-
ipi_mailbox_buf[13] = (void *)
360+
ipi_mailbox_buf[13] = (void __iomem *)
361361
(SMP_CORE_GROUP3_BASE + SMP_CORE1_OFFSET + BUF);
362-
ipi_mailbox_buf[14] = (void *)
362+
ipi_mailbox_buf[14] = (void __iomem *)
363363
(SMP_CORE_GROUP3_BASE + SMP_CORE2_OFFSET + BUF);
364-
ipi_mailbox_buf[15] = (void *)
364+
ipi_mailbox_buf[15] = (void __iomem *)
365365
(SMP_CORE_GROUP3_BASE + SMP_CORE3_OFFSET + BUF);
366366
}
367367

0 commit comments

Comments
 (0)