Re: [PATCH v4 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

From: kbuild test robot
Date: Tue Mar 08 2016 - 13:10:50 EST


Hi Sameer,

[auto build test WARNING on v4.5-rc7]
[also build test WARNING on next-20160308]
[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/Tomeu-Vizoso/mfd-cros_ec-Add-MKBP-event-support/20160308-184326
config: blackfin-allmodconfig (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=blackfin

All warnings (new ones prefixed by >>):

drivers/power/cros_usbpd-charger.c: In function 'get_ec_usb_pd_power_info':
drivers/power/cros_usbpd-charger.c:241:21: error: 'POWER_SUPPLY_TYPE_USB_PD_DRP' undeclared (first use in this function)
drivers/power/cros_usbpd-charger.c:241:21: note: each undeclared identifier is reported only once for each function it appears in
drivers/power/cros_usbpd-charger.c:249:20: error: 'POWER_SUPPLY_TYPE_USB_TYPE_C' undeclared (first use in this function)
drivers/power/cros_usbpd-charger.c:261:21: error: 'POWER_SUPPLY_TYPE_USB_PD' undeclared (first use in this function)
drivers/power/cros_usbpd-charger.c: In function 'cros_usb_pd_print_log_entry':
>> drivers/power/cros_usbpd-charger.c:527:2: warning: comparison of distinct pointer types lacks a cast [enabled by default]

vim +527 drivers/power/cros_usbpd-charger.c

511 MCDP_FAMILY(minfo->family),
512 MCDP_CHIPID(minfo->chipid),
513 minfo->irom.major, minfo->irom.minor,
514 minfo->irom.build, minfo->fw.major,
515 minfo->fw.minor, minfo->fw.build);
516 break;
517 default:
518 APPEND_STRING(buf, len,
519 "Event %02x (%04x) [", r->type, r->data);
520 for (i = 0; i < PD_LOG_SIZE(r->size_port); i++)
521 APPEND_STRING(buf, len, "%02x ", r->payload[i]);
522 APPEND_STRING(buf, len, "]");
523 break;
524 }
525
526 msecs = ktime_to_ms(tstamp);
> 527 do_div(msecs, MSEC_PER_SEC);
528 pr_info("PDLOG %d/%02d/%02d %02d:%02d:%02d.%03lld P%d %s\n",
529 rt.tm_year + 1900, rt.tm_mon + 1, rt.tm_mday,
530 rt.tm_hour, rt.tm_min, rt.tm_sec, msecs,
531 PD_LOG_PORT(r->size_port), buf);
532 }
533
534 static void cros_usb_pd_log_check(struct work_struct *work)
535 {

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

Attachment: .config.gz
Description: Binary data