[hid:for-4.20/google 2/3] drivers/hid/hid-google-hammer.c:73: undefined reference to `cros_ec_cmd_xfer_status'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-4.20/google
head:   8f35260e0b6cc09d77bcbbc21554342aa79ceb2f
commit: eb1aac4c8744f75460c34d71b0c73bebf3e8ee5c [2/3] HID: google: add support tablet mode switch for Whiskers
config: x86_64-randconfig-s3-10092338 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout eb1aac4c8744f75460c34d71b0c73bebf3e8ee5c
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/hid/hid-google-hammer.o: In function `cbas_ec_query_base':
>> drivers/hid/hid-google-hammer.c:73: undefined reference to `cros_ec_cmd_xfer_status'

vim +73 drivers/hid/hid-google-hammer.c

    51	
    52	static int cbas_ec_query_base(struct cros_ec_device *ec_dev, bool get_state,
    53					  bool *state)
    54	{
    55		struct ec_params_mkbp_info *params;
    56		struct cros_ec_command *msg;
    57		int ret;
    58	
    59		msg = kzalloc(sizeof(*msg) + max(sizeof(u32), sizeof(*params)),
    60			      GFP_KERNEL);
    61		if (!msg)
    62			return -ENOMEM;
    63	
    64		msg->command = EC_CMD_MKBP_INFO;
    65		msg->version = 1;
    66		msg->outsize = sizeof(*params);
    67		msg->insize = sizeof(u32);
    68		params = (struct ec_params_mkbp_info *)msg->data;
    69		params->info_type = get_state ?
    70			EC_MKBP_INFO_CURRENT : EC_MKBP_INFO_SUPPORTED;
    71		params->event_type = EC_MKBP_EVENT_SWITCH;
    72	
  > 73		ret = cros_ec_cmd_xfer_status(ec_dev, msg);
    74		if (ret >= 0) {
    75			if (ret != sizeof(u32)) {
    76				dev_warn(ec_dev->dev, "wrong result size: %d != %zu\n",
    77					 ret, sizeof(u32));
    78				ret = -EPROTO;
    79			} else {
    80				*state = cbas_parse_base_state(msg->data);
    81				ret = 0;
    82			}
    83		}
    84	
    85		kfree(msg);
    86	
    87		return ret;
    88	}
    89	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux