Re: [PATCH] x86/init: fix build with CONFIG_SWAP=n

From: Linus Torvalds
Date: Tue Aug 14 2018 - 14:59:45 EST


On Tue, Aug 14, 2018 at 11:51 AM Vlastimil Babka <vbabka@xxxxxxx> wrote:
>
> The introduction of generic_max_swapfile_size and arch-specific versions has
> broken linking on x86 with CONFIG_SWAP=n due to undefined reference to
> 'generic_max_swapfile_size'. Fix it by compiling the x86-specific
> max_swapfile_size() only with CONFIG_SWAP=y.

Pretty much all the x86 people are on vacation this week, so I just
took this directly.

Linus