Re: [PATCH v4 07/13] ARM: at91: pm: find and remap the pmc

From: kbuild test robot
Date: Wed Jan 27 2016 - 12:55:56 EST


Hi Alexandre,

[auto build test ERROR on clk/clk-next]
[also build test ERROR on v4.5-rc1 next-20160127]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Alexandre-Belloni/ARM-at91-PMC-driver-rework/20160128-002052
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: arm-at91_dt_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All errors (new ones prefixed by >>):

include/linux/of.h: In function 'at91_pm_init':
>> arch/arm/mach-at91/pm.c:403:40: error: atmel_pmc_ids causes a section type conflict with ramc_ids
static __initconst struct of_device_id atmel_pmc_ids[] = {
^
arch/arm/mach-at91/pm.c:320:40: note: 'ramc_ids' was declared here
static const struct of_device_id const ramc_ids[] __initconst = {
^

vim +403 arch/arm/mach-at91/pm.c

397
398 /* Copy the pm suspend handler to SRAM */
399 at91_suspend_sram_fn = fncpy(at91_suspend_sram_fn,
400 &at91_pm_suspend_in_sram, at91_pm_suspend_in_sram_sz);
401 }
402
> 403 static __initconst struct of_device_id atmel_pmc_ids[] = {
404 { .compatible = "atmel,at91rm9200-pmc" },
405 { .compatible = "atmel,at91sam9260-pmc" },
406 { .compatible = "atmel,at91sam9g45-pmc" },

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data