CC:
kbuil...@lists.01.org
In-Reply-To: <
20191012122918.80...@gmail.com>
References: <
20191012122918.80...@gmail.com>
TO: Shyam Saini <
mayhs1...@gmail.com>
CC:
kernel-h...@lists.openwall.com,
io...@lists.linux-foundation.org,
linux-...@vger.kernel.org,
linu...@kvack.org, Shyam Saini <
mayhs1...@gmail.com>, Christoph Hellwig <
h...@lst.de>, Marek Szyprowski <
m.szyp...@samsung.com>, Robin Murphy <
robin....@arm.com>, Matthew Wilcox <
wi...@infradead.org>, Christopher Lameter <
c...@linux.com>, Kees Cook <
kees...@chromium.org>,
io...@lists.linux-foundation.org,
linux-...@vger.kernel.org,
linu...@kvack.org, Shyam Saini <
mayhs1...@gmail.com>, Christoph Hellwig <
h...@lst.de>, Marek Szyprowski <
m.szyp...@samsung.com>, Robin Murphy <
robin....@arm.com>, Matthew Wilcox <
wi...@infradead.org>, Christopher Lameter <
c...@linux.com>, Kees Cook <
kees...@chromium.org>
CC:
io...@lists.linux-foundation.org,
linux-...@vger.kernel.org,
linu...@kvack.org, Shyam Saini <
mayhs1...@gmail.com>, Christoph Hellwig <
h...@lst.de>, Marek Szyprowski <
m.szyp...@samsung.com>, Robin Murphy <
robin....@arm.com>, Matthew Wilcox <
wi...@infradead.org>, Christopher Lameter <
c...@linux.com>, Kees Cook <
kees...@chromium.org>
Hi Shyam,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[cannot apply to v5.4-rc2 next-20191011]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Shyam-Saini/kernel-dma-Make-CMA-boot-parameters-__ro_after_init/20191014-011828
config: arm64-defconfig (attached as .config)
compiler: clang version 10.0.0 (git://gitmirror/llvm_project 1f5823b788037b0dc8c846a22ef6a5a8a0714af7)
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <
l...@intel.com>
All errors (new ones prefixed by >>):
>> kernel/dma/contiguous.c:46:36: error: 'size_cmdline' causes a section type conflict with 'size_bytes'
static phys_addr_t __ro_after_init size_cmdline = -1;
^
kernel/dma/contiguous.c:45:42: note: declared here
static const phys_addr_t __ro_after_init size_bytes = (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
^
>> kernel/dma/contiguous.c:47:36: error: 'base_cmdline' causes a section type conflict with 'size_bytes'
static phys_addr_t __ro_after_init base_cmdline;
^
kernel/dma/contiguous.c:45:42: note: declared here
static const phys_addr_t __ro_after_init size_bytes = (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
^
>> kernel/dma/contiguous.c:48:36: error: 'limit_cmdline' causes a section type conflict with 'size_bytes'
static phys_addr_t __ro_after_init limit_cmdline;
^
kernel/dma/contiguous.c:45:42: note: declared here
static const phys_addr_t __ro_after_init size_bytes = (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
^
3 errors generated.
vim +46 kernel/dma/contiguous.c
34
35 /*
36 * Default global CMA area size can be defined in kernel's .config.
37 * This is useful mainly for distro maintainers to create a kernel
38 * that works correctly for most supported systems.
39 * The size can be set in bytes or as a percentage of the total memory
40 * in the system.
41 *
42 * Users, who want to set the size of global CMA area for their system
43 * should use cma= kernel parameter.
44 */
> 45 static const phys_addr_t __ro_after_init size_bytes = (phys_addr_t)CMA_SIZE_MBYTES * SZ_1M;
> 46 static phys_addr_t __ro_after_init size_cmdline = -1;
> 47 static phys_addr_t __ro_after_init base_cmdline;
> 48 static phys_addr_t __ro_after_init limit_cmdline;
49
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation