Skip to contentSkip to conversation

video: fbdev: pvr2fb: add COMPILE_TEST support

PATCH Superseded Bartlomiej Zolnierkiewicz 1 participant 2 messages May 24, 2019 – Jun 7, 2019 1 message not in the archive Framebuffer layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20190524115839eucas1p135f0a6814fa1a163d903c60e602723f6@eucas1p1.samsung.com

#1 lore raw

PATCH v3 2/2 video: fbdev: pvr2fb: add COMPILE_TEST support

Add COMPILE_TEST support to pvr2fb driver for better compile testing coverage.

While at it:

- mark pvr2fb_interrupt() and pvr2fb_common_init() with __maybe_unused tag (to silence build warnings when !SH_DREAMCAST)

- convert mmio_base in struct pvr2fb_par to 'void __iomem *' from 'unsigned long' (needed to silence build warnings on ARM).

- split pvr2_get_param() on pvr2_get_param_name() and pvr2_get_param_val() (needed to silence build warnings on x86).

---
v3: fix 'space prohibited before that close parenthesis ')'
checkpatch errors
v2: fix build warnings on x86 reported by kbuild test robot

patch #1/2 is unchanged so I'm not sending it again

 drivers/video/fbdev/Kconfig  |    3 +-
 drivers/video/fbdev/pvr2fb.c |   61 +++++++++++++++++++++++--------------------
 2 files changed, 36 insertions(+), 28 deletions(-)
drivers/video/fbdev/Kconfig +2 -1
Index: b/drivers/video/fbdev/Kconfig
===================================================================
@@ -807,7 +807,8 @@ config FB_XVR1000
 
 config FB_PVR2
 	tristate "NEC PowerVR 2 display support"
-	depends on FB && SH_DREAMCAST
+	depends on FB && HAS_IOMEM
+	depends on SH_DREAMCAST || COMPILE_TEST
 	select FB_CFB_FILLRECT
 	select FB_CFB_COPYAREA
 	select FB_CFB_IMAGEBLIT
drivers/video/fbdev/pvr2fb.c +34 -27

135 lines not on this page · raw message

#2 lore raw
Quoted 13 lines · Bartlomiej Zolnierkiewicz

Add COMPILE_TEST support to pvr2fb driver for better compile testing coverage.

While at it:

- mark pvr2fb_interrupt() and pvr2fb_common_init() with __maybe_unused tag (to silence build warnings when !SH_DREAMCAST)

- convert mmio_base in struct pvr2fb_par to 'void __iomem *' from 'unsigned long' (needed to silence build warnings on ARM).

Quoted 5 lines

- split pvr2_get_param() on pvr2_get_param_name() and pvr2_get_param_val() (needed to silence build warnings on x86).

I queued the patch for v5.3.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics