From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: linux-media@vger.kernel.org
Cc: Antti Laakso <antti.laakso@linux.intel.com>,
"Sapre, Sarang" <sarang.sapre@intel.com>,
Divyamani Tripathi <divyamani.tripathi@intel.com>,
Manik Bajpai <manik.bajpai@intel.com>
Subject: [PATCH 1/1] media: ipu6: Make ipu6_dma_{un,}map_sg() static
Date: Wed, 18 Nov 2026 11:57:40 +0200 [thread overview]
Message-ID: <20261118095740.208482-1-sakari.ailus@linux.intel.com> (raw)
Make ipu6_dma_map_sg() and ipu6_dma_unmap_sg() static as they are only
used within the same file.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/pci/intel/ipu6/ipu6-dma.c | 14 ++++++--------
drivers/media/pci/intel/ipu6/ipu6-dma.h | 6 ------
2 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-dma.c b/drivers/media/pci/intel/ipu6/ipu6-dma.c
index 90f530a93779..ea13a58a80f8 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-dma.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-dma.c
@@ -327,9 +327,9 @@ int ipu6_dma_mmap(struct ipu6_bus_device *sys, struct vm_area_struct *vma,
return 0;
}
-void ipu6_dma_unmap_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
- int nents, enum dma_data_direction dir,
- unsigned long attrs)
+static void ipu6_dma_unmap_sg(struct ipu6_bus_device *sys,
+ struct scatterlist *sglist, int nents,
+ enum dma_data_direction dir, unsigned long attrs)
{
struct device *dev = &sys->auxdev.dev;
struct ipu6_mmu *mmu = sys->mmu;
@@ -369,7 +369,6 @@ void ipu6_dma_unmap_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
mmu->ops->tlb_invalidate(mmu);
__free_iova(&mmu->dmap->iovad, iova);
}
-EXPORT_SYMBOL_NS_GPL(ipu6_dma_unmap_sg, "INTEL_IPU6");
static struct iova *ipu7_get_fw_code_region(struct ipu6_bus_device *sys)
{
@@ -382,9 +381,9 @@ static struct iova *ipu7_get_fw_code_region(struct ipu6_bus_device *sys)
return reserve_iova(&mmu->dmap->iovad, lo, hi);
}
-int ipu6_dma_map_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
- int nents, enum dma_data_direction dir,
- unsigned long attrs)
+static int ipu6_dma_map_sg(struct ipu6_bus_device *sys,
+ struct scatterlist *sglist, int nents,
+ enum dma_data_direction dir, unsigned long attrs)
{
struct device *dev = &sys->auxdev.dev;
struct ipu6_mmu *mmu = sys->mmu;
@@ -448,7 +447,6 @@ int ipu6_dma_map_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
return 0;
}
-EXPORT_SYMBOL_NS_GPL(ipu6_dma_map_sg, "INTEL_IPU6");
int ipu6_dma_map_sgtable(struct ipu6_bus_device *sys, struct sg_table *sgt,
enum dma_data_direction dir, unsigned long attrs)
diff --git a/drivers/media/pci/intel/ipu6/ipu6-dma.h b/drivers/media/pci/intel/ipu6/ipu6-dma.h
index e5e0e7860423..bd1a0481f1ac 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-dma.h
+++ b/drivers/media/pci/intel/ipu6/ipu6-dma.h
@@ -32,12 +32,6 @@ void ipu6_dma_free(struct ipu6_bus_device *sys, size_t size, void *vaddr,
int ipu6_dma_mmap(struct ipu6_bus_device *sys, struct vm_area_struct *vma,
void *addr, dma_addr_t iova, size_t size,
unsigned long attrs);
-int ipu6_dma_map_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
- int nents, enum dma_data_direction dir,
- unsigned long attrs);
-void ipu6_dma_unmap_sg(struct ipu6_bus_device *sys, struct scatterlist *sglist,
- int nents, enum dma_data_direction dir,
- unsigned long attrs);
int ipu6_dma_map_sgtable(struct ipu6_bus_device *sys, struct sg_table *sgt,
enum dma_data_direction dir, unsigned long attrs);
void ipu6_dma_unmap_sgtable(struct ipu6_bus_device *sys, struct sg_table *sgt,
--
2.47.3
reply other threads:[~2026-11-18 9:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261118095740.208482-1-sakari.ailus@linux.intel.com \
--to=sakari.ailus@linux.intel.com \
--cc=antti.laakso@linux.intel.com \
--cc=divyamani.tripathi@intel.com \
--cc=linux-media@vger.kernel.org \
--cc=manik.bajpai@intel.com \
--cc=sarang.sapre@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).