diff options
author | Shyam Saini <mayhs11saini@gmail.com> | 2019-10-20 07:03:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-10-30 19:10:45 +0100 |
commit | ca66536845cd55c6a5fccd82694dcc87ed970780 (patch) | |
tree | 7826d7d60feb69c603d443732532f3e4bbbbe468 /kernel | |
parent | dma-debug: add a schedule point in debug_dma_dump_mappings() (diff) | |
download | linux-ca66536845cd55c6a5fccd82694dcc87ed970780.tar.xz linux-ca66536845cd55c6a5fccd82694dcc87ed970780.zip |
kernel: dma-contiguous: mark CMA parameters __initdata/__initconst
These parameters are only referenced by __init routine calls during
early boot so they should be marked as __initdata and __initconst
accordingly.
Signed-off-by: Shyam Saini <mayhs11saini@gmail.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/dma/contiguous.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c index 69cfb4345388..daa4e6eefdde 100644 --- a/kernel/dma/contiguous.c +++ b/kernel/dma/contiguous.c @@ -42,10 +42,11 @@ struct cma *dma_contiguous_default_area; * Users, who want to set the size of global CMA area for their system * should use cma= kernel parameter. */ -static const phys_addr_t size_bytes = (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M; -static phys_addr_t size_cmdline = -1; -static phys_addr_t base_cmdline; -static phys_addr_t limit_cmdline; +static const phys_addr_t size_bytes __initconst = + (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M; +static phys_addr_t size_cmdline __initdata = -1; +static phys_addr_t base_cmdline __initdata; +static phys_addr_t limit_cmdline __initdata; static int __init early_cma(char *p) { |