ANDROID: Fix CRC error with iommu_* functions

In commit 1edce43f47 ("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: 1edce43f47 ("iommu/dma: Trace bounce buffer usage when mapping buffers")
Change-Id: I57aab13f789b4afe38a5bbb9b3798eab78c0df3e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2024-02-14 13:45:23 +00:00
parent c84ac52917
commit 6644fcfcbc

View File

@ -29,7 +29,9 @@
#include <linux/spinlock.h>
#include <linux/swiotlb.h>
#include <linux/vmalloc.h>
#ifndef __GENKSYMS__
#include <trace/events/swiotlb.h>
#endif
#include <trace/hooks/iommu.h>
#include "dma-iommu.h"