Skip to contentSkip to conversation

m68knommu: fix missing LCD splash screen data initializer

PATCH In review Greg Ungerer 2 participants 3 messages Apr 27, 2021

Subsystems (2)
lore
Share & tools
lore

Greg Ungerer

author maintainer
#0 lore raw

PATCH 1/1 m68knommu: fix missing LCD splash screen data initializer

The kernel test robot reports that the "screen_bits" splash screen data is missing for the dragen platform:

    arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared (first use in this function)
      73 |  LSSA = (long) screen_bits;
         |                ^~~~~~~~~~~
    arch/m68k/68000/dragen2.c:73:16: note: each undeclared identifier is reported only once for each function it appears in

Digging around a bit I found the screen_bits data structure was originally in a screen.h file that was generated from a screen.xbm file. That was removed in commit 0c0e6db80683 ("m68k: drop unused parts of 68VZ328 Makefile").

Other splash screen initializers for 68000 targets are kept here as the C data structures so lets do the same for this one. Add the missing screen.h file and include it in the dragen specific startup code.

---
 arch/m68k/68000/dragen2.c |   1 +
 arch/m68k/68000/screen.h  | 804 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 805 insertions(+)
 create mode 100644 arch/m68k/68000/screen.h
arch/m68k/68000/dragen2.c +1 -0
index 584893c57c37..62f10a9e1ab7 100644
@@ -11,6 +11,7 @@
 #include <linux/init.h>
 #include <asm/machdep.h>
 #include <asm/MC68VZ328.h>
+#include "screen.h"
 
 /***************************************************************************/
 /*                        Init Drangon Engine hardware                     */
arch/m68k/68000/screen.h new file +804 -0

804 lines not on this page · raw message

Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Greg Ungerer

The kernel test robot reports that the "screen_bits" splash screen data is missing for the dragen platform:

    arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared (first use in this function)
      73 |  LSSA = (long) screen_bits;
         |                ^~~~~~~~~~~
    arch/m68k/68000/dragen2.c:73:16: note: each undeclared identifier is reported only once for each function it appears in
Quoted 8 lines

Digging around a bit I found the screen_bits data structure was originally in a screen.h file that was generated from a screen.xbm file. That was removed in commit 0c0e6db80683 ("m68k: drop unused parts of 68VZ328 Makefile").

Other splash screen initializers for 68000 targets are kept here as the C data structures so lets do the same for this one. Add the missing screen.h file and include it in the dragen specific startup code.

Thanks, I certainly appreciate not getting the nag emails from the lkp bot any more ;-)

I also see that it started out like this even in linux-2.5.25 when Alan Cox originally merged arch/m68knommu, so presumably the platform has never been used (at least with a screen) after it got merged into mainline.

Quoted 2 lines

Note: extra '>' in your signed-off-by line

Arnd

author maintainer
#2 lore raw
Quoted 15 lines · Arnd Bergmann
Quoted 14 lines · Greg Ungerer

The kernel test robot reports that the "screen_bits" splash screen data is missing for the dragen platform:

     arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared (first use in this function)
       73 |  LSSA = (long) screen_bits;
          |                ^~~~~~~~~~~
     arch/m68k/68000/dragen2.c:73:16: note: each undeclared identifier is reported only once for each function it appears in

Digging around a bit I found the screen_bits data structure was originally in a screen.h file that was generated from a screen.xbm file. That was removed in commit 0c0e6db80683 ("m68k: drop unused parts of 68VZ328 Makefile").

Quoted 6 lines
Quoted 3 lines

Other splash screen initializers for 68000 targets are kept here as the C data structures so lets do the same for this one. Add the missing screen.h file and include it in the dragen specific startup code.

Thanks, I certainly appreciate not getting the nag emails from the lkp bot any more ;-)

You and me both :-)

Quoted 10 lines

I also see that it started out like this even in linux-2.5.25 when Alan Cox originally merged arch/m68knommu, so presumably the platform has never been used (at least with a screen) after it got merged into mainline.

Quoted 2 lines

Note: extra '>' in your signed-off-by line

Oops, yep. I'll fix that before I push it up to the m68knommu git tree (which won't be for a couple of weeks at least yet).

Regards
Greg

Quoted 2 lines

Arnd