summaryrefslogtreecommitdiffstats
path: root/arch/x86/events/amd/iommu.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-04-02 16:33:12 +0200
committerJoerg Roedel <jroedel@suse.de>2021-04-07 11:14:55 +0200
commitfc1b6620501f1a4b88f583549c63666180bea177 (patch)
tree8e69214f047fd40c553baee25a612ec7b6c8bc7c /arch/x86/events/amd/iommu.c
parentiommu/amd: Remove a few unused exports (diff)
downloadlinux-fc1b6620501f1a4b88f583549c63666180bea177.tar.xz
linux-fc1b6620501f1a4b88f583549c63666180bea177.zip
iommu/amd: Move a few prototypes to include/linux/amd-iommu.h
A few functions that were intentended for the perf events support are currently declared in arch/x86/events/amd/iommu.h, which mens they are not in scope for the actual function definition. Also amdkfd has started using a few of them using externs in a .c file. End that misery by moving the prototypes to the proper header. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210402143312.372386-5-hch@lst.de Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/x86/events/amd/iommu.c')
-rw-r--r--arch/x86/events/amd/iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/events/amd/iommu.c b/arch/x86/events/amd/iommu.c
index be50ef8572cc..a573fac1ece8 100644
--- a/arch/x86/events/amd/iommu.c
+++ b/arch/x86/events/amd/iommu.c
@@ -14,6 +14,7 @@
#include <linux/init.h>
#include <linux/cpumask.h>
#include <linux/slab.h>
+#include <linux/amd-iommu.h>
#include "../perf_event.h"
#include "iommu.h"