linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] m68knommu: fix non-specific 68328 choice interrupt build failure
@ 2022-08-26  4:03 Greg Ungerer
  2022-08-26  4:03 ` [PATCH 2/3] m68knommu: fix non-mmu classic 68000 legacy timer tick selection Greg Ungerer
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Greg Ungerer @ 2022-08-26  4:03 UTC (permalink / raw)
  To: linux-m68k; +Cc: Greg Ungerer, kernel test robot

Compiling for a classic m68k non-MMU target with no specific CPU
selected fails with the following error:

   arch/m68k/68000/ints.c: In function 'process_int':
>> arch/m68k/68000/ints.c:82:30: error: 'ISR' undeclared (first use in this function)
      82 |         unsigned long pend = ISR;
         |                              ^~~

This interrupt handling code is specific to the 68328 family of 68000
parts. There is a couple of variants (68EZ328, 68VZ328) and the common
ancestor of them the strait 68328.

The code here includes a specific header for each variant type. But if
none is selected then nothing is included to supply the appropriate
register and bit flags defines.

Rearrange the includes so that at least one type is always included.
At the very least the 68328 base type should be the fallback, so make
that true.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
---
 arch/m68k/68000/ints.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/m68k/68000/ints.c b/arch/m68k/68000/ints.c
index cda49b12d7be..f9a5ec781408 100644
--- a/arch/m68k/68000/ints.c
+++ b/arch/m68k/68000/ints.c
@@ -18,12 +18,12 @@
 #include <asm/io.h>
 #include <asm/machdep.h>
 
-#if defined(CONFIG_M68328)
-#include <asm/MC68328.h>
-#elif defined(CONFIG_M68EZ328)
+#if defined(CONFIG_M68EZ328)
 #include <asm/MC68EZ328.h>
 #elif defined(CONFIG_M68VZ328)
 #include <asm/MC68VZ328.h>
+#else
+#include <asm/MC68328.h>
 #endif
 
 /* assembler routines */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-30  7:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26  4:03 [PATCH 1/3] m68knommu: fix non-specific 68328 choice interrupt build failure Greg Ungerer
2022-08-26  4:03 ` [PATCH 2/3] m68knommu: fix non-mmu classic 68000 legacy timer tick selection Greg Ungerer
2022-08-26  7:39   ` Geert Uytterhoeven
2022-08-26  4:03 ` [PATCH 3/3] m68k: allow kexec on all MMU enabled CPUs Greg Ungerer
2022-08-26  7:44   ` Geert Uytterhoeven
2022-08-30  7:23     ` Greg Ungerer
2022-08-30  7:36       ` Geert Uytterhoeven
2022-08-26  7:38 ` [PATCH 1/3] m68knommu: fix non-specific 68328 choice interrupt build failure Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).