From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3B02F37BE9C; Wed, 21 Jan 2026 18:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769020574; cv=none; b=AxJqAGjmPp2Z/qI0nJOE/4xpyQ/wmH+3pFW88vq8ZPwlT0Mb71ez2t5yqL34Gn/jbyFzOcrDvQKz8nn+S/NBQUrUNf53udyK3Tt+3+aqjwa2lPITBL+TKNYQVwFMnnfXPiQrwj+RiybGEROsrdSob/hDcRrAC1YORLrnbHHdR6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769020574; c=relaxed/simple; bh=toqRmke59ka0v6HISf7AI/RBY0U5rtmuK6C1hNgltqk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EEZh1+Pa6v14kjXpBntp5DHv7uqnDET76CK2//aMEyI7Al4D4f32/hUZTYdIAMer4dIxnSvyIc0MvgNCFi9iUdoAq7LkOgTsPhchiX3nB6jOMSZeyoc5lZ0EZS/9bv4j8kgaaWWMvrasDv/l3vwthaG05MzrbXHy8ru2uPHI5Uk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rA9vEWT6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rA9vEWT6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B4E7C2BC9E; Wed, 21 Jan 2026 18:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769020574; bh=toqRmke59ka0v6HISf7AI/RBY0U5rtmuK6C1hNgltqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rA9vEWT67bt1KG5K9aVt61w7Kra/8V6J/ctgK5pzCHSX9xT9tPvtkSBhLzbvfmTuN Ohro9x6N8NJWSgsbwjHe+UDpm6+GvQH1hRi/MOh+Q50wd0Az1CYpDbuD7br+b21jB2 t+ZvL84RYxGgW5zDfbD/XQisZRxiFEFfpL27c03E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Carlos Llamas , Baolu Lu , Jason Gunthorpe , Joerg Roedel , Kevin Tian , Robin Murphy , Vasant Hegde , Will Deacon , Andrew Morton Subject: [PATCH 6.18 198/198] iommu/sva: include mmu_notifier.h header Date: Wed, 21 Jan 2026 19:17:06 +0100 Message-ID: <20260121181425.684082633@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260121181418.537774329@linuxfoundation.org> References: <20260121181418.537774329@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Carlos Llamas commit 4b5c493ff762bb0433529ca6870b284f0a2a5ca8 upstream. A call to mmu_notifier_arch_invalidate_secondary_tlbs() was introduced in commit e37d5a2d60a3 ("iommu/sva: invalidate stale IOTLB entries for kernel address space") but without explicitly adding its corresponding header file . This was evidenced while trying to enable compile testing support for IOMMU_SVA: config IOMMU_SVA select IOMMU_MM_DATA - bool + bool "Shared Virtual Addressing" if COMPILE_TEST The thing is for certain architectures this header file is indirectly included via . However, for others such as 32-bit arm the header is missing and it results in a build failure: $ make ARCH=arm allmodconfig [...] drivers/iommu/iommu-sva.c:340:3: error: call to undeclared function 'mmu_notifier_arch_invalidate_secondary_tlbs' [...] 340 | mmu_notifier_arch_invalidate_secondary_tlbs(iommu_mm->mm, start, end); | ^ Fix this by including the appropriate header file. Link: https://lkml.kernel.org/r/20260105190747.625082-1-cmllamas@google.com Fixes: e37d5a2d60a3 ("iommu/sva: invalidate stale IOTLB entries for kernel address space") Signed-off-by: Carlos Llamas Cc: Baolu Lu Cc: Jason Gunthorpe Cc: Joerg Roedel Cc: Kevin Tian Cc: Robin Murphy Cc: Vasant Hegde Cc: Will Deacon Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/iommu-sva.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iommu/iommu-sva.c +++ b/drivers/iommu/iommu-sva.c @@ -3,6 +3,7 @@ * Helpers for IOMMU drivers implementing SVA */ #include +#include #include #include #include