From patchwork Thu Apr 25 07:39:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 10916189 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF4E31515 for ; Thu, 25 Apr 2019 07:40:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC68028ADC for ; Thu, 25 Apr 2019 07:40:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB2B528B02; Thu, 25 Apr 2019 07:40:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4172F28ADC for ; Thu, 25 Apr 2019 07:40:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbfDYHkJ (ORCPT ); Thu, 25 Apr 2019 03:40:09 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6690 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727004AbfDYHkJ (ORCPT ); Thu, 25 Apr 2019 03:40:09 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 189D7260C64FDC5FFC98; Thu, 25 Apr 2019 15:40:07 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Thu, 25 Apr 2019 15:39:58 +0800 From: Yue Haibing To: , , CC: , , YueHaibing Subject: [PATCH] HID: logitech-dj: Fix build error without CONFIG_USB_HID Date: Thu, 25 Apr 2019 15:39:42 +0800 Message-ID: <20190425073942.36980-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: YueHaibing During randconfig builds, I occasionally run into an invalid configuration drivers/hid/hid-logitech-dj.o: In function `logi_dj_probe': hid-logitech-dj.c:(.text+0x32dc): undefined reference to `usb_hid_driver' This is because CONFIG_USB_HID is not set, So this patch selects it. Reported-by: Hulk Robot Fixes: da12b224b7d5 ("HID: logitech-dj: deal with some KVMs adding an extra interface to the usbdev") Signed-off-by: YueHaibing --- drivers/hid/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 76d8206..c3c390c 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -521,6 +521,7 @@ config HID_LOGITECH config HID_LOGITECH_DJ tristate "Logitech Unifying receivers full support" + depends on USB_HID depends on HIDRAW depends on HID_LOGITECH select HID_LOGITECH_HIDPP