Bug 209371 - m68k: build error due to missing M680x0 dependency for MMU_MOTOROLA
Summary: m68k: build error due to missing M680x0 dependency for MMU_MOTOROLA
Status: NEW
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: platform_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-24 09:16 UTC by Necip Fazil Yildiran
Modified: 2020-09-24 09:16 UTC (History)
3 users (show)

See Also:
Kernel Version: 5.9-rc4
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Necip Fazil Yildiran 2020-09-24 09:16:55 UTC
Enabling MMU_MOTOROLA includes arch/m68k/kernel/ints.o in the build.
arch/m68k/kernel/ints.c utilizes constants from arch/m68k/include/asm/irq.h.
Some of those constants (e.g., IRQ_AUTO_1) are defined only when at least
one of M680x0 (M68020, M68030, M68040, M68060) is enabled due to an if
directive in arch/m68k/include/asm/irq.h. This suggests that MMU_MOTOROLA
depends on M680x0.

MMU_MOTOROLA is selected by a bunch of symbols; however, other than SUN3X,
none of them takes M680x0 dependency into account. When MMU_MOTOROLA is
enabled while none of M680x0 symbols are enabled, it results in a build
error such as:

arch/m68k/kernel/ints.c:61:11: error: 'IRQ_AUTO_1' undeclared (first use in this function); did you mean 'IRQ_NOAUTOEN'?
   61 |  for (i = IRQ_AUTO_1; i <= IRQ_AUTO_7; i++)                        
      |           ^~~~~~~~~~                                               
      |           IRQ_NOAUTOEN

Thanks,
Necip

Note You need to log in before you can comment on or make changes to this bug.