From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3365C3F9F4C; Fri, 7 Aug 2026 10:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786099152; cv=none; b=LmaSpw7YrFF4DU+x+NPGidIuzSDN2CLJvzoFUKGBZPgyVQCZiwxzFAJNLJ+Y69aw3IgeQEwme9WNAph419lUPSKMywwlCvBA0aA1zRUugwNvVDkKRIIeWRHqKBFaS+qKLTVAjPUkmqXVtCJd+q9qdMBbsBoxQLHDGqI3fhwLdgs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786099152; c=relaxed/simple; bh=fqqsQaloq3X7EORELDdRzN6fv5y1opQI77hHeUsPE5o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Hau3Lgzas/xhND6AmFsIQancWaUKK+nk5v82nXzv1r7dfgtObqEGpLtql727TaWoRK95gLYeHcMfFwSgr9FrRn7DC81qPKWuMM8MffnM48rqrqsUic1/7vCA0Ud6GB/J0W4/rSlfeN/J2FQ/Z0MtJKBst8XrateTFTJqT9x1aDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=K/B1TZEE; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="K/B1TZEE" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1786099136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IhT9Nbnrmy1FCrntkD6IOlFelDNdobApjep1pMDJx7k=; b=K/B1TZEEloG3kmATLa01mpjHRXTcYT8OdEuMPA08x4VuWBrroYrXT6NA0bUekvtBpiPO5j d3a39YO2i1b2WEXhstvivoHKfRapFZFDDTQ68bYv28/okWZKG0ykMrfKDqI3vj1LeU5hwp VCQRU7Y6V/hVnlzk62RoS48vudn7TtY= From: George Guo To: chenhuacai@kernel.org, rppt@kernel.org, pasha.tatashin@soleen.com, pratyush@kernel.org, shuah@kernel.org, ardb@kernel.org Cc: guodongtai@kylinos.cn, kernel@xen0n.name, graf@amazon.com, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-efi@vger.kernel.org, Kexin Liu Subject: [PATCH v4 3/4] liveupdate: luo_session: include linux/mm.h for virt/phys translation Date: Fri, 7 Aug 2026 18:37:13 +0800 Message-ID: <20260807103714.33074-4-dongtai.guo@linux.dev> In-Reply-To: <20260807103714.33074-1-dongtai.guo@linux.dev> References: <20260807103714.33074-1-dongtai.guo@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: George Guo luo_session.c calls virt_to_phys() and phys_to_virt(). On LoongArch with CONFIG_KFENCE=y, these macros (in arch/loongarch/include/asm/io.h) expand to offset_in_page() and page_address(), both declared in . Since luo_session.c only includes , the translation unit fails to build with CONFIG_KFENCE=y: asm/io.h: error: implicit declaration of function 'offset_in_page' asm/io.h: error: implicit declaration of function 'page_address' Add the missing include to fix these build errors. Co-developed-by: Kexin Liu Signed-off-by: Kexin Liu Signed-off-by: George Guo Acked-by: Mike Rapoport (Microsoft) --- kernel/liveupdate/luo_session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/liveupdate/luo_session.c b/kernel/liveupdate/luo_session.c index f38b5b18f3f8..31490ac7b63d 100644 --- a/kernel/liveupdate/luo_session.c +++ b/kernel/liveupdate/luo_session.c @@ -94,6 +94,7 @@ #include #include #include +#include #include #include #include -- 2.53.0