Re: [PATCH v4 3/5] mfd: tps65912: Add driver for the TPS65912 PMIC

From: kbuild test robot
Date: Thu Oct 01 2015 - 16:58:29 EST


Hi Andrew,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]

config: xtensa-allyesconfig (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
git checkout d617dea974adf7dc262f2d49dea24a673e0403e2
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All warnings (new ones prefixed by >>):

drivers/mfd/tps65912-core.c:29:2: error: implicit declaration of function 'REGMAP_IRQ_REG' [-Werror=implicit-function-declaration]
REGMAP_IRQ_REG(TPS65912_IRQ_PWRHOLD_F, 0, TPS65912_INT_STS_PWRHOLD_F),
^
>> drivers/mfd/tps65912-core.c:29:2: warning: missing braces around initializer [-Wmissing-braces]
>> drivers/mfd/tps65912-core.c:29:2: warning: (near initialization for 'tps65912_irqs[0]') [-Wmissing-braces]
drivers/mfd/tps65912-core.c:29:2: error: initializer element is not constant
drivers/mfd/tps65912-core.c:29:2: error: (near initialization for 'tps65912_irqs[0].reg_offset')
drivers/mfd/tps65912-core.c:30:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_VMON, 0, TPS65912_INT_STS_VMON),
^
drivers/mfd/tps65912-core.c:30:2: error: (near initialization for 'tps65912_irqs[0].mask')
drivers/mfd/tps65912-core.c:31:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PWRON, 0, TPS65912_INT_STS_PWRON),
^
drivers/mfd/tps65912-core.c:31:2: error: (near initialization for 'tps65912_irqs[1].reg_offset')
drivers/mfd/tps65912-core.c:32:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PWRON_LP, 0, TPS65912_INT_STS_PWRON_LP),
^
drivers/mfd/tps65912-core.c:32:2: error: (near initialization for 'tps65912_irqs[1].mask')
drivers/mfd/tps65912-core.c:33:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PWRHOLD_R, 0, TPS65912_INT_STS_PWRHOLD_R),
^
drivers/mfd/tps65912-core.c:33:2: error: (near initialization for 'tps65912_irqs[2].reg_offset')
drivers/mfd/tps65912-core.c:34:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_HOTDIE, 0, TPS65912_INT_STS_HOTDIE),
^
drivers/mfd/tps65912-core.c:34:2: error: (near initialization for 'tps65912_irqs[2].mask')
drivers/mfd/tps65912-core.c:35:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO1_R, 0, TPS65912_INT_STS_GPIO1_R),
^
drivers/mfd/tps65912-core.c:35:2: error: (near initialization for 'tps65912_irqs[3].reg_offset')
drivers/mfd/tps65912-core.c:36:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO1_F, 0, TPS65912_INT_STS_GPIO1_F),
^
drivers/mfd/tps65912-core.c:36:2: error: (near initialization for 'tps65912_irqs[3].mask')
drivers/mfd/tps65912-core.c:38:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO2_R, 1, TPS65912_INT_STS2_GPIO2_R),
^
drivers/mfd/tps65912-core.c:38:2: error: (near initialization for 'tps65912_irqs[4].reg_offset')
drivers/mfd/tps65912-core.c:39:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO2_F, 1, TPS65912_INT_STS2_GPIO2_F),
^
drivers/mfd/tps65912-core.c:39:2: error: (near initialization for 'tps65912_irqs[4].mask')
drivers/mfd/tps65912-core.c:40:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO3_R, 1, TPS65912_INT_STS2_GPIO3_R),
^
drivers/mfd/tps65912-core.c:40:2: error: (near initialization for 'tps65912_irqs[5].reg_offset')
drivers/mfd/tps65912-core.c:41:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO3_F, 1, TPS65912_INT_STS2_GPIO3_F),
^
drivers/mfd/tps65912-core.c:41:2: error: (near initialization for 'tps65912_irqs[5].mask')
drivers/mfd/tps65912-core.c:42:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO4_R, 1, TPS65912_INT_STS2_GPIO4_R),
^
drivers/mfd/tps65912-core.c:42:2: error: (near initialization for 'tps65912_irqs[6].reg_offset')
drivers/mfd/tps65912-core.c:43:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO4_F, 1, TPS65912_INT_STS2_GPIO4_F),
^
drivers/mfd/tps65912-core.c:43:2: error: (near initialization for 'tps65912_irqs[6].mask')
drivers/mfd/tps65912-core.c:44:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO5_R, 1, TPS65912_INT_STS2_GPIO5_R),
^
drivers/mfd/tps65912-core.c:44:2: error: (near initialization for 'tps65912_irqs[7].reg_offset')
drivers/mfd/tps65912-core.c:45:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_GPIO5_F, 1, TPS65912_INT_STS2_GPIO5_F),
^
drivers/mfd/tps65912-core.c:45:2: error: (near initialization for 'tps65912_irqs[7].mask')
drivers/mfd/tps65912-core.c:47:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_DCDC1, 2, TPS65912_INT_STS3_PGOOD_DCDC1),
^
drivers/mfd/tps65912-core.c:47:2: error: (near initialization for 'tps65912_irqs[8].reg_offset')
drivers/mfd/tps65912-core.c:48:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_DCDC2, 2, TPS65912_INT_STS3_PGOOD_DCDC2),
^
drivers/mfd/tps65912-core.c:48:2: error: (near initialization for 'tps65912_irqs[8].mask')
drivers/mfd/tps65912-core.c:49:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_DCDC3, 2, TPS65912_INT_STS3_PGOOD_DCDC3),
^
drivers/mfd/tps65912-core.c:49:2: error: (near initialization for 'tps65912_irqs[9].reg_offset')
drivers/mfd/tps65912-core.c:50:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_DCDC4, 2, TPS65912_INT_STS3_PGOOD_DCDC4),
^
drivers/mfd/tps65912-core.c:50:2: error: (near initialization for 'tps65912_irqs[9].mask')
drivers/mfd/tps65912-core.c:51:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO1, 2, TPS65912_INT_STS3_PGOOD_LDO1),
^
drivers/mfd/tps65912-core.c:51:2: error: (near initialization for 'tps65912_irqs[10].reg_offset')
drivers/mfd/tps65912-core.c:52:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO2, 2, TPS65912_INT_STS3_PGOOD_LDO2),
^
drivers/mfd/tps65912-core.c:52:2: error: (near initialization for 'tps65912_irqs[10].mask')
drivers/mfd/tps65912-core.c:53:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO3, 2, TPS65912_INT_STS3_PGOOD_LDO3),
^
drivers/mfd/tps65912-core.c:53:2: error: (near initialization for 'tps65912_irqs[11].reg_offset')
drivers/mfd/tps65912-core.c:54:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO4, 2, TPS65912_INT_STS3_PGOOD_LDO4),
^
drivers/mfd/tps65912-core.c:54:2: error: (near initialization for 'tps65912_irqs[11].mask')
drivers/mfd/tps65912-core.c:56:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO5, 3, TPS65912_INT_STS4_PGOOD_LDO5),
^
drivers/mfd/tps65912-core.c:56:2: error: (near initialization for 'tps65912_irqs[12].reg_offset')
drivers/mfd/tps65912-core.c:57:2: error: initializer element is not constant
REGMAP_IRQ_REG(TPS65912_IRQ_PGOOD_LDO6, 3, TPS65912_INT_STS4_PGOOD_LDO6),

vim +29 drivers/mfd/tps65912-core.c

13 * kind, whether expressed or implied; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License version 2 for more details.
16 *
17 * Based on the TPS65218 driver and the previous TPS65912 driver by
18 * Margarita Olaya Cabrera <magi@xxxxxxxxxxxxxxx>
19 */
20
21 #include <linux/interrupt.h>
22 #include <linux/module.h>
23 #include <linux/of_device.h>
24
25 #include <linux/mfd/tps65912.h>
26
27 static const struct regmap_irq tps65912_irqs[] = {
28 /* INT_STS IRQs */
> 29 REGMAP_IRQ_REG(TPS65912_IRQ_PWRHOLD_F, 0, TPS65912_INT_STS_PWRHOLD_F),
30 REGMAP_IRQ_REG(TPS65912_IRQ_VMON, 0, TPS65912_INT_STS_VMON),
31 REGMAP_IRQ_REG(TPS65912_IRQ_PWRON, 0, TPS65912_INT_STS_PWRON),
32 REGMAP_IRQ_REG(TPS65912_IRQ_PWRON_LP, 0, TPS65912_INT_STS_PWRON_LP),
33 REGMAP_IRQ_REG(TPS65912_IRQ_PWRHOLD_R, 0, TPS65912_INT_STS_PWRHOLD_R),
34 REGMAP_IRQ_REG(TPS65912_IRQ_HOTDIE, 0, TPS65912_INT_STS_HOTDIE),
35 REGMAP_IRQ_REG(TPS65912_IRQ_GPIO1_R, 0, TPS65912_INT_STS_GPIO1_R),
36 REGMAP_IRQ_REG(TPS65912_IRQ_GPIO1_F, 0, TPS65912_INT_STS_GPIO1_F),
37 /* INT_STS2 IRQs */

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

Attachment: .config.gz
Description: Binary data