iommu/amd: Move a few prototypes to include/linux/amd-iommu.h
authorChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 14:33:12 +0000 (16:33 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Apr 2021 09:14:55 +0000 (11:14 +0200)
commitfc1b6620501f1a4b88f583549c63666180bea177
tree8e69214f047fd40c553baee25a612ec7b6c8bc7c
parentb29a1fc7595a868fc49ed3083a2766c3cab06c19
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>
arch/x86/events/amd/iommu.c
arch/x86/events/amd/iommu.h
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
drivers/iommu/amd/amd_iommu.h
include/linux/amd-iommu.h