]> git.baikalelectronics.ru Git - kernel.git/commit
m68knommu: fix non-specific 68328 choice interrupt build failure
authorGreg Ungerer <gerg@linux-m68k.org>
Thu, 25 Aug 2022 03:27:03 +0000 (13:27 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Mon, 26 Sep 2022 00:27:53 +0000 (10:27 +1000)
commit7a4c180e93728377ce8de29860b9eca0e01129f8
tree712fd8911095403268655b77d218c581e1e5cbb0
parent511dd4637690121d2e93f359659a3a97b67e8098
m68knommu: fix non-specific 68328 choice interrupt build failure

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>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/68000/ints.c