Message ID | 20230202144149.1.I7f213388b358718068c63acb698dc4937716cf35@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp282759wrn; Thu, 2 Feb 2023 06:52:33 -0800 (PST) X-Google-Smtp-Source: AK7set/gnjvrL+bU1Gv2qDNn9GCvLGbxtG3lMrF9kt1A6BX45Jkf4x5acXfCuFkzVe7duDV2+jOy X-Received: by 2002:a17:902:ecd0:b0:196:8445:56be with SMTP id a16-20020a170902ecd000b00196844556bemr7820526plh.42.1675349552861; Thu, 02 Feb 2023 06:52:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675349552; cv=none; d=google.com; s=arc-20160816; b=QenSz+46cdWr7zAC+QAeP0hAOl5chbxo++qj8HVP0gRVbsVScbMAdEZzozdfy8OkWj yLyJkplEzllhY8SDv2PO82ooDT30VauJtgvwSJKgz/mYlIRl+Ds2VYcVA2d1+4cv+D08 KPjvNMLMHUusBkGnFJqRkWK8H86jidgTSvd2+52YgMsaTrj5HlmErrVkRGKrWDFwS1+p PoIxQRgbJ2tCzg1WA8TmgwUsSt2TiCFYazVN+eOMQPLqhvWDpw60ep62CXahI68dpaKS 1oXTY518BGXZXRwcniimr8owJFLrM4DimN3RDZ1x4tF6zWkxfF90dQ4XjumYkel3DfWJ KU2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qh3NU4Hu/3pryZhrjxzgEDUiKJ+C8ZvPc2LnDmxMk4Y=; b=kFToIjEtO49YgV4+ByBQIxtzEbeI0cnHI0HlmgWL6LzT72WAiqi6jVge7SIPJtssJ4 1VYAhVPN5q+bkCfd0mfLjUHAmeASNwDn6YlucrZ1eesN0pyhK9x1AM9aJNAyrU5UMFso SSMOX2pcKCNB10PB0RPuWjSeFJkZsVTCKeShoS1hkPZCmGQl85USlvob3HeEC0TWUJ3q 9zu3g1rOTxl5MK+8Hk8tAGvOfJRz6ucmb9as6IXT747YnWEpbrX1JWZokuzQozwuva78 05LqgbXwxFonAMcLwTrxocXxxVhNm2mWZzjylaWCDPnzRtYwPpfk2SvNmGqYtqoA9RRY MXhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aKgwKxTr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e3-20020a170902744300b001895a1d382dsi21536225plt.451.2023.02.02.06.52.20; Thu, 02 Feb 2023 06:52:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aKgwKxTr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232517AbjBBOrs (ORCPT <rfc822;il.mystafa@gmail.com> + 99 others); Thu, 2 Feb 2023 09:47:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbjBBOrr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Feb 2023 09:47:47 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C69708FB53 for <linux-kernel@vger.kernel.org>; Thu, 2 Feb 2023 06:47:44 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id k13so2075874plg.0 for <linux-kernel@vger.kernel.org>; Thu, 02 Feb 2023 06:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qh3NU4Hu/3pryZhrjxzgEDUiKJ+C8ZvPc2LnDmxMk4Y=; b=aKgwKxTr59GRNLgGV7nApQJaqm5e5/XYsfjiW1kjgM6Eo+0ZcCiJfFuku7F0Q5GaBz YPEmWYvLbMnxIOVtdOrrPEEUbacSuk3FQpk/FCLBodovxMcY1lDGIZrS8iYUUfTixqCk M60NjQ1u7u8gsjZnyHj7vCr7tBLrmNOqeJCAA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qh3NU4Hu/3pryZhrjxzgEDUiKJ+C8ZvPc2LnDmxMk4Y=; b=7N9GCncAFkeceIJw7GVNa9v9aGylhNQbh5xHoHhyR6l6kVgouJcMy80VQoN4WWC+2M 1Unh7v6rBu1Ba3IGmYJjaRkvHo47pcH0fmUFXMmD2Hts9ImlVeS3Bwqbjs6fGz0rgMgO qO+BVNYA7JyPpF8QeIvTXzJ25j9tkIOwQ+jqi8qN7MKz6Sy6RmhECFnfvtH29QlIe8/m fqBkh/Y15H0eiN2alB1BRBN+q3xB/505eHaa8lCxICySifkxU57dQ0AsnfK+1BssQXSV qsW6dHhgZQq7kUUZguh9ed6e18xTKmBnOQpTuJfCQcNQ0alNrEHmXzabCDCLPXmoo4Mx zZpw== X-Gm-Message-State: AO0yUKXXiwP9j08T2mb939vzvCxO/fo/fZ54rC6i2xEciZr67GqtKKZj gd5DJo/6oqGxKAmp+LgyGDp/oQ== X-Received: by 2002:a17:90a:1a5e:b0:22c:7e2a:efc8 with SMTP id 30-20020a17090a1a5e00b0022c7e2aefc8mr6722668pjl.47.1675349264087; Thu, 02 Feb 2023 06:47:44 -0800 (PST) Received: from ballway1.c.googlers.com.com (97.173.125.34.bc.googleusercontent.com. [34.125.173.97]) by smtp.gmail.com with ESMTPSA id gc5-20020a17090b310500b0022c52a0c202sm3359508pjb.18.2023.02.02.06.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 06:47:43 -0800 (PST) From: Allen Ballway <ballway@chromium.org> To: benjamin.tissoires@redhat.com Cc: jikos@kernel.org, lukas.bulwahn@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Allen Ballway <ballway@chromium.org> Subject: [PATCH] HID: multitouch: Fix typo in config check Date: Thu, 2 Feb 2023 14:47:28 +0000 Message-Id: <20230202144149.1.I7f213388b358718068c63acb698dc4937716cf35@changeid> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756731332516583256?= X-GMAIL-MSGID: =?utf-8?q?1756731332516583256?= |
Series |
HID: multitouch: Fix typo in config check
|
|
Commit Message
Allen Ballway
Feb. 2, 2023, 2:47 p.m. UTC
Fixes a typo causing a config check to look for a nonexistent config,
leaving the affected code unusable.
Signed-off-by: Allen Ballway <ballway@chromium.org>
---
drivers/hid/hid-quirks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.39.1.456.gfc5497dd1b-goog
Comments
Hi Allen,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on hid/for-next]
[also build test ERROR on next-20230202]
[cannot apply to linus/master v6.2-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Allen-Ballway/HID-multitouch-Fix-typo-in-config-check/20230202-224919
base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link: https://lore.kernel.org/r/20230202144149.1.I7f213388b358718068c63acb698dc4937716cf35%40changeid
patch subject: [PATCH] HID: multitouch: Fix typo in config check
config: x86_64-randconfig-a006 (https://download.01.org/0day-ci/archive/20230203/202302031117.u6FdSXY2-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/a2331d08db1030f3e3f2e0d9c9232780c27d954a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Allen-Ballway/HID-multitouch-Fix-typo-in-config-check/20230202-224919
git checkout a2331d08db1030f3e3f2e0d9c9232780c27d954a
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: vmlinux.o: in function `hid_lookup_quirk':
>> drivers/hid/hid-quirks.c:1305: undefined reference to `i2c_hid_get_dmi_quirks'
vim +1305 drivers/hid/hid-quirks.c
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1258
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1259 /**
0603616a5bf6cd Randy Dunlap 2021-01-19 1260 * hid_lookup_quirk - return any quirks associated with a HID device
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1261 * @hdev: the HID device to look for
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1262 *
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1263 * Description:
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1264 * Given a HID device, return any quirks associated with that device.
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1265 *
0603616a5bf6cd Randy Dunlap 2021-01-19 1266 * Return: an unsigned long quirks value.
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1267 */
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1268 unsigned long hid_lookup_quirk(const struct hid_device *hdev)
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1269 {
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1270 unsigned long quirks = 0;
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1271 const struct hid_device_id *quirk_entry = NULL;
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1272
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1273 /* NCR devices must not be queried for reports */
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1274 if (hdev->bus == BUS_USB &&
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1275 hdev->vendor == USB_VENDOR_ID_NCR &&
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1276 hdev->product >= USB_DEVICE_ID_NCR_FIRST &&
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1277 hdev->product <= USB_DEVICE_ID_NCR_LAST)
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1278 return HID_QUIRK_NO_INIT_REPORTS;
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1279
d5158e020c4593 Niels Skou Olsen 2017-10-04 1280 /* These devices must be ignored if version (bcdDevice) is too old */
d5158e020c4593 Niels Skou Olsen 2017-10-04 1281 if (hdev->bus == BUS_USB && hdev->vendor == USB_VENDOR_ID_JABRA) {
d5158e020c4593 Niels Skou Olsen 2017-10-04 1282 switch (hdev->product) {
d5158e020c4593 Niels Skou Olsen 2017-10-04 1283 case USB_DEVICE_ID_JABRA_SPEAK_410:
d5158e020c4593 Niels Skou Olsen 2017-10-04 1284 if (hdev->version < 0x0111)
d5158e020c4593 Niels Skou Olsen 2017-10-04 1285 return HID_QUIRK_IGNORE;
d5158e020c4593 Niels Skou Olsen 2017-10-04 1286 break;
d5158e020c4593 Niels Skou Olsen 2017-10-04 1287 case USB_DEVICE_ID_JABRA_SPEAK_510:
d5158e020c4593 Niels Skou Olsen 2017-10-04 1288 if (hdev->version < 0x0214)
d5158e020c4593 Niels Skou Olsen 2017-10-04 1289 return HID_QUIRK_IGNORE;
d5158e020c4593 Niels Skou Olsen 2017-10-04 1290 break;
d5158e020c4593 Niels Skou Olsen 2017-10-04 1291 }
d5158e020c4593 Niels Skou Olsen 2017-10-04 1292 }
d5158e020c4593 Niels Skou Olsen 2017-10-04 1293
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1294 mutex_lock(&dquirks_lock);
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1295 quirk_entry = hid_exists_dquirk(hdev);
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1296 if (quirk_entry)
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1297 quirks = quirk_entry->driver_data;
6e65d9d5492f37 Benjamin Tissoires 2017-11-20 1298 else
6e65d9d5492f37 Benjamin Tissoires 2017-11-20 1299 quirks = hid_gets_squirk(hdev);
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1300 mutex_unlock(&dquirks_lock);
d5d3e202753cc0 Benjamin Tissoires 2017-11-20 1301
a2f416bf062a38 Allen Ballway 2023-01-10 1302 /* Get quirks specific to I2C devices */
a2331d08db1030 Allen Ballway 2023-02-02 1303 if (IS_ENABLED(CONFIG_I2C_HID_CORE) && IS_ENABLED(CONFIG_DMI) &&
a2f416bf062a38 Allen Ballway 2023-01-10 1304 hdev->bus == BUS_I2C)
a2f416bf062a38 Allen Ballway 2023-01-10 @1305 quirks |= i2c_hid_get_dmi_quirks(hdev->vendor, hdev->product);
Hi Allen, Thank you for the patch! Yet something to improve: [auto build test ERROR on hid/for-next] [also build test ERROR on next-20230203] [cannot apply to linus/master v6.2-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Allen-Ballway/HID-multitouch-Fix-typo-in-config-check/20230202-224919 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next patch link: https://lore.kernel.org/r/20230202144149.1.I7f213388b358718068c63acb698dc4937716cf35%40changeid patch subject: [PATCH] HID: multitouch: Fix typo in config check config: x86_64-randconfig-a003 (https://download.01.org/0day-ci/archive/20230203/202302031440.9V6esF8X-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/a2331d08db1030f3e3f2e0d9c9232780c27d954a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Allen-Ballway/HID-multitouch-Fix-typo-in-config-check/20230202-224919 git checkout a2331d08db1030f3e3f2e0d9c9232780c27d954a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): >> ld.lld: error: undefined symbol: i2c_hid_get_dmi_quirks >>> referenced by hid-quirks.c:1305 (drivers/hid/hid-quirks.c:1305) >>> vmlinux.o:(hid_lookup_quirk)
diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 78452faf3c9b4..8417066b5ff72 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -1300,7 +1300,7 @@ unsigned long hid_lookup_quirk(const struct hid_device *hdev) mutex_unlock(&dquirks_lock); /* Get quirks specific to I2C devices */ - if (IS_ENABLED(CONFIG_I2C_DMI_CORE) && IS_ENABLED(CONFIG_DMI) && + if (IS_ENABLED(CONFIG_I2C_HID_CORE) && IS_ENABLED(CONFIG_DMI) && hdev->bus == BUS_I2C) quirks |= i2c_hid_get_dmi_quirks(hdev->vendor, hdev->product);