diff options
author | Barry Song <song.bao.hua@hisilicon.com> | 2020-08-24 11:03:09 +1200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-09-01 09:19:43 +0200 |
commit | 2281f797f5524abb8fff66bf8540b4f4687332a2 (patch) | |
tree | 13ce4ce2bf6a70c115809e883e5c5e6f10f9e58a /include/linux/cma.h | |
parent | c6303ab9b91e7ca20a49ff494338309259ed7c65 (diff) | |
download | linux-2281f797f5524abb8fff66bf8540b4f4687332a2.tar.gz linux-2281f797f5524abb8fff66bf8540b4f4687332a2.tar.bz2 linux-2281f797f5524abb8fff66bf8540b4f4687332a2.zip |
mm: cma: use CMA_MAX_NAME to define the length of cma name array
CMA_MAX_NAME should be visible to CMA's users as they might need it to set
the name of CMA areas and avoid hardcoding the size locally.
So this patch moves CMA_MAX_NAME from local header file to include/linux
header file and removes the hardcode in both hugetlb.c and contiguous.c.
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/cma.h')
-rw-r--r-- | include/linux/cma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cma.h b/include/linux/cma.h index 6ff79fefd01f..217999c8a762 100644 --- a/include/linux/cma.h +++ b/include/linux/cma.h @@ -18,6 +18,8 @@ #endif +#define CMA_MAX_NAME 64 + struct cma; extern unsigned long totalcma_pages; |