From 6644fcfcbcb636b43cd1eb65738e56751a55378f Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 14 Feb 2024 13:45:23 +0000 Subject: [PATCH] ANDROID: Fix CRC error with iommu_* functions In commit 1edce43f4799 ("iommu/dma: Trace bounce buffer usage when mapping buffers"), a new #include file was added, which now properly defines some structures that were previously not defined, which messes with the CRC of some iommu_* functions. Resolve this by only including the new include file if crc generation is not happening. Bug: 161946584 Fixes: 1edce43f4799 ("iommu/dma: Trace bounce buffer usage when mapping buffers") Change-Id: I57aab13f789b4afe38a5bbb9b3798eab78c0df3e Signed-off-by: Greg Kroah-Hartman --- drivers/iommu/dma-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-iommu.c index da7b023f9e03..3fd1886004c2 100644 --- a/drivers/iommu/dma-iommu.c +++ b/drivers/iommu/dma-iommu.c @@ -29,7 +29,9 @@ #include #include #include +#ifndef __GENKSYMS__ #include +#endif #include #include "dma-iommu.h"