Re: arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared; did you mean 'CONFIG_LOG_BUF_SHIFT'?

From: Geert Uytterhoeven
Date: Fri Mar 29 2024 - 04:40:01 EST


On Fri, Mar 29, 2024 at 3:19 AM kernel test robot <lkp@xxxxxxxxx> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 8d025e2092e29bfd13e56c78e22af25fac83c8ec
> commit: 5394f1e9b687bcf26595cabf83483e568676128d arch: define CONFIG_PAGE_SIZE_*KB on all architectures
> date: 3 weeks ago
> config: m68k-alldefconfig (https://download.01.org/0day-ci/archive/20240329/202403291057.uo43Mlue-lkp@xxxxxxxxx/config)
> compiler: m68k-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403291057.uo43Mlue-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202403291057.uo43Mlue-lkp@xxxxxxxxx/
>
> All error/warnings (new ones prefixed by >>):
>
> In file included from arch/m68k/include/asm/thread_info.h:6,
> from include/linux/thread_info.h:60,
> from include/asm-generic/preempt.h:5,
> from ./arch/m68k/include/generated/asm/preempt.h:1,
> from include/linux/preempt.h:79,
> from arch/m68k/include/asm/processor.h:11,
> from include/linux/sched.h:13,
> from arch/m68k/kernel/asm-offsets.c:15:
> arch/m68k/include/asm/page_mm.h: In function 'virt_to_pfn':
> >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'?

This is the same issue I mentioned to Arnd in IRC before: as no
platform is enabled, none of the MMU_* options, and thus none of
the HAVE_PAGE_SIZE_* options, is selected.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68korg

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds