ANDROID: iommu: vendor_hook: remove the obsolete code
Remove the obsolete #if .. #else .. #endif Bug: 201255968 Change-Id: I1e00f0ac0dfb30150fea6004b5da81e470fdce93 Signed-off-by: Guangming Cao <Guangming.Cao@mediatek.com>
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
#include <linux/tracepoint.h>
|
||||
#include <trace/hooks/vendor_hooks.h>
|
||||
|
||||
#if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS)
|
||||
|
||||
DECLARE_HOOK(android_vh_iommu_setup_dma_ops,
|
||||
TP_PROTO(struct device *dev, u64 dma_base, u64 size),
|
||||
TP_ARGS(dev, dma_base, size));
|
||||
@@ -25,13 +23,7 @@ DECLARE_HOOK(android_vh_iommu_alloc_iova,
|
||||
DECLARE_HOOK(android_vh_iommu_free_iova,
|
||||
TP_PROTO(dma_addr_t iova, size_t size),
|
||||
TP_ARGS(iova, size));
|
||||
#else
|
||||
|
||||
#define trace_android_vh_iommu_setup_dma_ops(dev, dma_base, size)
|
||||
#define trace_android_vh_iommu_alloc_iova(dev, iova, size)
|
||||
#define trace_android_vh_iommu_free_iova(iova, size)
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _TRACE_HOOK_IOMMU_H */
|
||||
|
||||
|
Reference in New Issue
Block a user