From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta1.migadu.com (out-171.mta1.migadu.com [95.215.58.171]) (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 916312BE053 for ; Thu, 21 May 2026 06:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779344808; cv=none; b=uqn6xoapPEP/DH86SFPADTdZgatl3gQ6blo2WgX8OUZ4D090P2n723SJ7aiidps0TgWhKcNeT/1d7AOf6J5+YN5zjwfWxhQvLcleG4ifxZ9+dM3gSnRg/cpEzxSk4pOSglpCGiuqbb0D1G+aV17gXCAfc6Z012vK1CDji2rEWl4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779344808; c=relaxed/simple; bh=52k9hWVIoG0lg2BOay7c/oJnbtIbRhlwpKhfltLrghs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=aoh4xv3pxhh3rywqybF6OQDgwtjkvFS+hkdTgSHJrHUx3tAVG6IvkUAkbtMLGuJoJa+1tnGp1LoNkulF3B/EMBCmfSYCRMsDUR3OM6vC8YgR2KACSYSmxKuBcDfTvwpmCclwuZRd5Ph0/60q4+BmdeDqShSkr6m9P8ANSnVg64I= 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=Nd65KAle; arc=none smtp.client-ip=95.215.58.171 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="Nd65KAle" 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=1779344803; 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; bh=MppCV6/Zn4Jf3ikj5oSLg+V1TZEWQlhrDiHV9yvOb2M=; b=Nd65KAle9ezEInetE8EWIrD7GzXhSZC0U0UCkob2mD68DfEVE+bhF/XNiv/U3c26BMsDbY rDIF7Qo5IsJdAmhYxD80LKv/qz+jPcCytKpdCX4uSWfrNgTKwqVVn8uAxfEM9TMKdx/ckv Gou5SKZebgrTeQ3cnQWmvDqRdd85UGw= From: George Guo To: Huacai Chen , loongarch@lists.linux.dev Cc: WANG Xuerui , Jiaxun Yang , linux-kernel@vger.kernel.org, George Guo , Kexin Liu Subject: [PATCH 1/8] LoongArch: Add missing linux/mm.h include in asm/io.h Date: Thu, 21 May 2026 14:26:31 +0800 Message-Id: <20260521062631.51517-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 When CONFIG_KFENCE is enabled, the virt_to_phys() and phys_to_virt() macros in arch/loongarch/include/asm/io.h expand to use offset_in_page() and page_address(), both of which are declared in . Without this include, any translation unit that includes and expands these macros with CONFIG_KFENCE=y will fail to build: 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. Fixes: 0ca84aeaee15 ("LoongArch: Make {virt, phys, page, pfn} translation work with KFENCE") Co-developed-by: Kexin Liu Signed-off-by: Kexin Liu Signed-off-by: George Guo --- arch/loongarch/include/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/include/asm/io.h b/arch/loongarch/include/asm/io.h index 0130185e0349..7ff4aa72a34a 100644 --- a/arch/loongarch/include/asm/io.h +++ b/arch/loongarch/include/asm/io.h @@ -13,6 +13,7 @@ #include #include #include +#include extern void __init __iomem *early_ioremap(phys_addr_t phys_addr, unsigned long size); extern void __init early_iounmap(void __iomem *addr, unsigned long size); -- 2.25.1