summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/dma-mapping.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2015-11-20 17:59:10 +0800
committerWill Deacon <will.deacon@arm.com>2015-12-02 12:17:11 +0000
commita7c61a3452d39078919f0e1f493ff966fb64f0db (patch)
tree8c468378d735c901987460c7a14c958ea4b432c7 /arch/arm64/mm/dma-mapping.c
parent76c714be0e5e60c935a53b31be58939510ba1d0f (diff)
downloadop-kernel-dev-a7c61a3452d39078919f0e1f493ff966fb64f0db.zip
op-kernel-dev-a7c61a3452d39078919f0e1f493ff966fb64f0db.tar.gz
arm64: add __init/__initdata section marker to some functions/variables
These functions/variables are not needed after booting, so mark them as __init or __initdata. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/dma-mapping.c')
-rw-r--r--arch/arm64/mm/dma-mapping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
index 7963aa4..331c4ca 100644
--- a/arch/arm64/mm/dma-mapping.c
+++ b/arch/arm64/mm/dma-mapping.c
@@ -40,7 +40,7 @@ static pgprot_t __get_dma_pgprot(struct dma_attrs *attrs, pgprot_t prot,
static struct gen_pool *atomic_pool;
#define DEFAULT_DMA_COHERENT_POOL_SIZE SZ_256K
-static size_t atomic_pool_size = DEFAULT_DMA_COHERENT_POOL_SIZE;
+static size_t atomic_pool_size __initdata = DEFAULT_DMA_COHERENT_POOL_SIZE;
static int __init early_coherent_pool(char *p)
{
@@ -896,7 +896,7 @@ static int __iommu_attach_notifier(struct notifier_block *nb,
return 0;
}
-static int register_iommu_dma_ops_notifier(struct bus_type *bus)
+static int __init register_iommu_dma_ops_notifier(struct bus_type *bus)
{
struct notifier_block *nb = kzalloc(sizeof(*nb), GFP_KERNEL);
int ret;
OpenPOWER on IntegriCloud