mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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>
This commit is contained in:
parent
9ff6aa027d
commit
ca66536845
1 changed files with 5 additions and 4 deletions
|
@ -42,10 +42,11 @@ struct cma *dma_contiguous_default_area;
|
||||||
* Users, who want to set the size of global CMA area for their system
|
* Users, who want to set the size of global CMA area for their system
|
||||||
* should use cma= kernel parameter.
|
* should use cma= kernel parameter.
|
||||||
*/
|
*/
|
||||||
static const phys_addr_t size_bytes = (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
|
static const phys_addr_t size_bytes __initconst =
|
||||||
static phys_addr_t size_cmdline = -1;
|
(phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
|
||||||
static phys_addr_t base_cmdline;
|
static phys_addr_t size_cmdline __initdata = -1;
|
||||||
static phys_addr_t limit_cmdline;
|
static phys_addr_t base_cmdline __initdata;
|
||||||
|
static phys_addr_t limit_cmdline __initdata;
|
||||||
|
|
||||||
static int __init early_cma(char *p)
|
static int __init early_cma(char *p)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue