Skip to content

Commit

Permalink
m68knommu: fix 'screen_bits' defined but not used
Browse files Browse the repository at this point in the history
The 'screen_bits' LCD initializer bit array is only required if
CONFIG_INIT_LCD is enabled, otherwise we get the following warning:

    arch/m68k/68000/screen.h:4:22: warning: 'screen_bits' defined but not used [-Wunused-variable]
     static unsigned char screen_bits[] = {
                          ^~~~~~~~~~~

Make the inclusion of 'screen_bits' conditional on CONFIG_INIT_LCD.

Signed-off-by: Greg Ungerer <[email protected]>
Reported-by: kernel test robot <[email protected]>
  • Loading branch information
Greg Ungerer committed Mar 7, 2022
1 parent b731192 commit 5fb4d46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/m68k/68000/screen.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* Created with The GIMP */
#ifdef CONFIG_INIT_LCD
#define screen_width 320
#define screen_height 240
static unsigned char screen_bits[] = {
Expand Down Expand Up @@ -802,3 +803,4 @@ static unsigned char screen_bits[] = {
0x93, 0x10, 0xe2, 0x11, 0x00, 0x94, 0x22, 0x52, 0x69, 0x53, 0x52, 0x45,
0x49, 0x22, 0xa4, 0x4a, 0x55, 0x29, 0x2a, 0xa4, 0x52, 0x42, 0xaa, 0xa5,
0x52, 0xa8, 0xaa, 0x55, 0x4a, 0xab, 0xa9, 0x4a, 0x54, 0x49, 0x32, 0x24 };
#endif /* CONFIG_INIT_LCD */

0 comments on commit 5fb4d46

Please sign in to comment.