Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6088459ybi; Wed, 31 Jul 2019 08:10:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH91yIW98aQ2n0JZE7g0OzDaDk5JzmtHb12XEyRK1AYqBizUPl1I1E/QehE+AtUGqrLOG9 X-Received: by 2002:aa7:84d4:: with SMTP id x20mr47396364pfn.60.1564585855038; Wed, 31 Jul 2019 08:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564585855; cv=none; d=google.com; s=arc-20160816; b=ffCe0ZDvbuEtYjS57QfC+MiGQ/qmdXeKZGydFexDktRl877rfrlaiBcug91NZU6rt8 Ep+j6cqV8M0Ln+0gEXXpjSrbIKFyo3/3ZUB35vnKIzsU8LIZlN/0NDMtP6WUePdmNUc8 IaEEtGoMWGV4p/h/lkW3fzYWLOdLkldJ/CeTOWUfDTpqrxCT+/+cnHzs2JzWbRGc9Qdt bpo31Xs4BGByUp7aUXfmOh40pgrX2suM9dm4ZbACPQH+0pdC2cYE4onRTTEPbzp3a8Sc betrUZy1jCXYEX0l7y9FK5s9YpY91Vd7Dv2jrcHY+1wYjEeuWP9GMEgBFs4nUfmEh9LW Wv1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=opJOEuBf5z8nrf90rqRO+j908pMzRnqzq5ZrkM42fSM=; b=c8r2kw0GQiGJ1ROgR1WlayudpzhDMrdnofK7MYzhFvN/Ub79DVYjyQQsHsUeKj2rYi ggqPIqFt5U6/kgus0FFB+ZcAZcapwy6RKfA9BcV7t+EMGqKIUB11KIYuYJpvrSp0EPZM 7vsAbAkWvntohoXHHY0oAuXj63GF6ddb8bFyDalD9mq0pHwD/1Ge2K4+R9pdHppe+wKg 6Hfk/IciRO8t2LlKEydGMtPrQNOdyukk7dDJG2HZuPwhF3k7T/kNqj6dkkEp/AMjmqyN xtNdJPItxXUJwY6Nmt+eoBDzNDPJstuZrsmJtM9kFAzbOtbIBTwL86ArJxcNw7A0mJE9 y0Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m6gTq0Oe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si37493779plc.99.2019.07.31.08.10.39; Wed, 31 Jul 2019 08:10:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m6gTq0Oe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729653AbfGaNtl (ORCPT + 99 others); Wed, 31 Jul 2019 09:49:41 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46699 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726807AbfGaNtl (ORCPT ); Wed, 31 Jul 2019 09:49:41 -0400 Received: by mail-pl1-f196.google.com with SMTP id c2so30493625plz.13; Wed, 31 Jul 2019 06:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=opJOEuBf5z8nrf90rqRO+j908pMzRnqzq5ZrkM42fSM=; b=m6gTq0Oe2lP6FzEyyez0/yWj61/yEz8jEvzbcVWTNvSRVZIFxdZJ6cerV2kVt7jQDK cdKSIife2bS2Mo6+6+GnO/nCj17l5ia//WejVgNaCB+DZfdjcyV04VEc1lz/5CiQiCym XJbSvtlV64ICi7Aq+a7TiEJPboQaDfOVzPBVWgj4YIFUG6Y2Wdp7mU+UvWJTqoKSoB/w 0DIbG1aujRq2pej408Maim3fMjQ3C8fubYS6hxXV6F8GXrkqAri6q0scW65KPGNymIwe 84cWX2CW/IZYnLzdfhlQ4PhlNe0wekOSeCHOPEeHAqKmMkjZAjJx9Nk7V4pcH/2PgCq/ 48Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=opJOEuBf5z8nrf90rqRO+j908pMzRnqzq5ZrkM42fSM=; b=PuedDXLhJZ53y/c4wDspmd/r5WEAT8WLWGJnXsAeZLJb4zlOfnsRKLxYT+4kgtCse2 VY3mNfvvi230WyHwwb07p2Ub1UNNrjDu2HOYfP4IbnetOmHmsr09qNf16eVF8QCayvy0 s0B/urJx585A8gqC9acYsYPD1XbAEJZUNJKotKO2BI7+oKNSD4sJezKseVJVGHEKNyeV +raReinauHLHTJ36SeEzXqFtfxu27EhqbGlLh0wHJi/EbXuH72uYS0ZnmOQAK8+ZVnIe 8LK84uN2k2SJ1qKh+Q2T/EHLecmnTcyorxKFU/p0SKj5gRKbrOCzmyu2p9L25YPNX/Wd utJQ== X-Gm-Message-State: APjAAAVHbJ7vKtWDD1cF3s+wdOednBa5AFbTUETdcJE4ScC8wPklVRGA DaGqAndht9b+Ajut+Mzcd7Q= X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr117048224plp.95.1564580980257; Wed, 31 Jul 2019 06:49:40 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id s24sm23379780pgm.3.2019.07.31.06.49.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 06:49:39 -0700 (PDT) Date: Wed, 31 Jul 2019 06:49:37 -0700 From: Dmitry Torokhov To: YueHaibing Cc: ronald@innovation.ch, nikolas@gnu.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH v2] Input: applespi - Fix build error Message-ID: <20190731134937.GE147138@dtor-ws> References: <20190729031455.59400-1-yuehaibing@huawei.com> <20190730133414.49008-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730133414.49008-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 09:34:14PM +0800, YueHaibing wrote: > If CONFIG_KEYBOARD_APPLESPI=y but CONFIG_LEDS_CLASS=m > building fails: > > drivers/input/keyboard/applespi.o: In function `applespi_probe': > applespi.c:(.text+0x1fcd): undefined reference to `devm_led_classdev_register_ext' > > Add "depends on LEDS_CLASS" to the Konfig > > Reported-by: Hulk Robot > Fixes: 038b1a05eae6 ("Input: add Apple SPI keyboard and trackpad driver") > Signed-off-by: YueHaibing Applied, thank you. > --- > v2: use 'depends on LEDS_CLASS' > --- > drivers/input/keyboard/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig > index ebb19e2..90e8a7f 100644 > --- a/drivers/input/keyboard/Kconfig > +++ b/drivers/input/keyboard/Kconfig > @@ -76,6 +76,7 @@ config KEYBOARD_APPLESPI > depends on ACPI && EFI > depends on SPI > depends on X86 || COMPILE_TEST > + depends on LEDS_CLASS > select CRC16 > help > Say Y here if you are running Linux on any Apple MacBook8,1 or later, > -- > 2.7.4 > > -- Dmitry