On Tue, May 13, 2025 at 09:46:11PM -0700, Pawan Gupta wrote:
From: Eric Biggers ebiggers@google.com
commit 9f35e33144ae5377d6a8de86dd3bd4d995c6ac65 upstream.
Fix several build errors when CONFIG_MODULES=n, including the following:
../arch/x86/kernel/alternative.c:195:25: error: incomplete definition of type 'struct module' 195 | for (int i = 0; i < mod->its_num_pages; i++) {
Fixes: 872df34d7c51 ("x86/its: Use dynamic thunks for indirect branches") Cc: stable@vger.kernel.org
Sorry I forgot to put the kernel version in the subject. The same patch applies to other kernel versions as well. I don't really need to send them separately I guess, stable bots will likely pick those.