sst-linux/arch/m68k
Thomas Zimmermann b6cbef573c m68k: vga: Fix I/O defines
commit 53036937a101b5faeaf98e7438555fa854a1a844 upstream.

Including m68k's <asm/raw_io.h> in vga.h on nommu platforms results
in conflicting defines with io_no.h for various I/O macros from the
__raw_read and __raw_write families. An example error is

   In file included from arch/m68k/include/asm/vga.h:12,
                 from include/video/vga.h:22,
                 from include/linux/vgaarb.h:34,
		 from drivers/video/aperture.c:12:
>> arch/m68k/include/asm/raw_io.h:39: warning: "__raw_readb" redefined
      39 | #define __raw_readb in_8
	 |
   In file included from arch/m68k/include/asm/io.h:6,
		    from include/linux/io.h:13,
		    from include/linux/irq.h:20,
		    from include/asm-generic/hardirq.h:17,
		    from ./arch/m68k/include/generated/asm/hardirq.h:1,
		    from include/linux/hardirq.h:11,
		    from include/linux/interrupt.h:11,
                    from include/linux/trace_recursion.h:5,
		    from include/linux/ftrace.h:10,
		    from include/linux/kprobes.h:28,
		    from include/linux/kgdb.h:19,
		    from include/linux/fb.h:6,
		    from drivers/video/aperture.c:5:
   arch/m68k/include/asm/io_no.h:16: note: this is the location of the previous definition
      16 | #define __raw_readb(addr) \
	 |

Include <asm/io.h>, which avoids raw_io.h on nommu platforms.
Also change the defined values of some of the read/write symbols in
vga.h to __raw_read/__raw_write as the raw_in/raw_out symbols are not
generally available.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501071629.DNEswlm8-lkp@intel.com/
Fixes: 5c3f968712 ("m68k/video: Create <asm/vga.h>")
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org # v3.5+
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/20250107095912.130530-1-tzimmermann@suse.de
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-21 13:49:38 +01:00
..
68000
amiga m68k: amiga: Turn off Warp1260 interrupts during boot 2024-08-03 08:49:34 +02:00
apollo
atari m68k: atari: Fix TT bootup freeze / unexpected (SCU) interrupt messages 2024-08-03 08:49:02 +02:00
bvme6000
coldfire m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-12-14 19:53:46 +01:00
configs
emu
fpsp040 m68k: Fix invalid .section syntax 2023-09-13 09:42:21 +02:00
hp300
ifpsp060 m68k: Fix invalid .section syntax 2023-09-13 09:42:21 +02:00
include m68k: vga: Fix I/O defines 2025-02-21 13:49:38 +01:00
kernel m68k: mvme147: Reinstate early console 2024-12-14 19:53:15 +01:00
lib
mac m68k: mac: Fix reboot hang on Mac IIci 2024-06-12 11:03:17 +02:00
math-emu
mm
mvme16x m68k: mvme16x: Add and use "mvme16x.h" 2024-12-14 19:53:15 +01:00
mvme147 m68k: mvme147: Reinstate early console 2024-12-14 19:53:15 +01:00
q40
sun3
sun3x
tools/amiga
virt
install.sh
Kbuild
Kconfig m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 20:03:46 +02:00
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile