diff options
author | Greg Ungerer <gerg@linux-m68k.org> | 2022-01-17 15:21:54 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@linux-m68k.org> | 2022-03-07 14:51:11 +1000 |
commit | 5fb4d4690b77baa8611d7be90e713a9a8faa97e8 (patch) | |
tree | f576075257c98f95b7018758a080ca13ae27d8b3 /arch/m68k/68000 | |
parent | b73119222f2dd6b1c294cc6ef4b1fb7f9ff3adf5 (diff) | |
download | linux-5fb4d4690b77baa8611d7be90e713a9a8faa97e8.tar.gz linux-5fb4d4690b77baa8611d7be90e713a9a8faa97e8.tar.bz2 linux-5fb4d4690b77baa8611d7be90e713a9a8faa97e8.zip |
m68knommu: fix 'screen_bits' defined but not used
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 <gerg@linux-m68k.org>
Reported-by: kernel test robot <lkp@intel.com>
Diffstat (limited to 'arch/m68k/68000')
-rw-r--r-- | arch/m68k/68000/screen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m68k/68000/screen.h b/arch/m68k/68000/screen.h index 2089bdf02688..8f7418008908 100644 --- a/arch/m68k/68000/screen.h +++ b/arch/m68k/68000/screen.h @@ -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[] = { @@ -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 */ |