[PATCH v3 12/23] mfd: Add new driver for MAX77705 PMIC
kernel test robot
lkp at intel.com
Fri Jun 21 23:51:30 UTC 2024
Hi Dzmitry,
kernel test robot noticed the following build errors:
[auto build test ERROR on 6906a84c482f098d31486df8dc98cead21cce2d0]
url: https://github.com/intel-lab-lkp/linux/commits/Dzmitry-Sankouski/power-supply-add-undervoltage-health-status-property/20240618-222456
base: 6906a84c482f098d31486df8dc98cead21cce2d0
patch link: https://lore.kernel.org/r/20240618-starqltechn_integration_upstream-v3-12-e3f6662017ac%40gmail.com
patch subject: [PATCH v3 12/23] mfd: Add new driver for MAX77705 PMIC
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20240622/202406220754.8crTEWeR-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad79a14c9e5ec4a369eed4adf567c22cc029863f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240622/202406220754.8crTEWeR-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406220754.8crTEWeR-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/mfd/max77705-core.c:14:
In file included from include/linux/i2c.h:19:
In file included from include/linux/regulator/consumer.h:35:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:25:
In file included from include/linux/kernel_stat.h:8:
In file included from include/linux/interrupt.h:22:
In file included from arch/riscv/include/asm/sections.h:9:
In file included from include/linux/mm.h:2214:
include/linux/vmstat.h:484:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
484 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
485 | item];
| ~~~~
include/linux/vmstat.h:491:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
491 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
492 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:498:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
498 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:503:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
503 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
504 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:512:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
512 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
513 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/mfd/max77705-core.c:20:
>> include/linux/mfd/max77705-private.h:243:19: error: use of undeclared identifier 'MAX77705_USBC_REG_END'; did you mean 'MAX77705_PMIC_REG_END'?
243 | u8 reg_muic_dump[MAX77705_USBC_REG_END];
| ^~~~~~~~~~~~~~~~~~~~~
| MAX77705_PMIC_REG_END
include/linux/mfd/max77705-private.h:96:2: note: 'MAX77705_PMIC_REG_END' declared here
96 | MAX77705_PMIC_REG_END,
| ^
5 warnings and 1 error generated.
vim +243 include/linux/mfd/max77705-private.h
216
217 struct max77705_dev {
218 struct device *dev;
219 struct i2c_client *i2c; /* 0xCC; Haptic, PMIC */
220 struct i2c_client *charger; /* 0xD2; Charger */
221 struct i2c_client *fuelgauge; /* 0x6C; Fuelgauge */
222 struct i2c_client *muic; /* 0x4A; MUIC */
223 struct i2c_client *debug; /* 0xC4; Debug */
224 struct mutex i2c_lock;
225
226 struct regmap *regmap;
227 struct regmap *regmap_fg;
228 struct regmap *regmap_charger;
229 struct regmap *regmap_leds;
230
231 int type;
232
233 int irq;
234 int irq_base;
235 int irq_masks_cur[MAX77705_IRQ_GROUP_NR];
236 int irq_masks_cache[MAX77705_IRQ_GROUP_NR];
237 bool wakeup;
238 struct mutex irqlock;
239
240 #ifdef CONFIG_HIBERNATION
241 /* For hibernation */
242 u8 reg_pmic_dump[MAX77705_PMIC_REG_END];
> 243 u8 reg_muic_dump[MAX77705_USBC_REG_END];
244 u8 reg_led_dump[MAX77705_LED_REG_END];
245 #endif
246
247 /* pmic VER/REV register */
248 u8 pmic_rev; /* pmic Rev */
249 u8 pmic_ver; /* pmic version */
250
251 u8 cc_booting_complete;
252
253 wait_queue_head_t queue_empty_wait_q;
254 int doing_irq;
255 int is_usbc_queue;
256
257 struct max77705_platform_data *pdata;
258 };
259
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the dri-devel
mailing list