Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4937375ybi; Tue, 30 Jul 2019 10:46:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvc6NY+kATqmpx5FN5c1LatSQQ81+CSnE65Sq0VgZjZTQcpjkHVQCH9au6zM2JEQriE3bM X-Received: by 2002:a17:902:ff05:: with SMTP id f5mr112490958plj.116.1564508790461; Tue, 30 Jul 2019 10:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564508790; cv=none; d=google.com; s=arc-20160816; b=Ujy2rWoBBVxACZZNQ8Qo9HmTqssVBbGrOuuj/8HemGcjrSyb+tzsCRT/103PnByd5d mIkQXgs4Q7pa+S8ESuBRjsgZ1UYcsP0IAwQt+CAuyRDvZE7ixUkjEvpe7LvWpFLXwdEu XDOeMrpo25VlRVJhPLe6qYhA2BaP1wpcVaQcAjtLjE40f3yr/fLKIEsF7onqRGyCC9/U WVV651AnCqFgXG82M82hjZ1zQ7RkFnf4IAzTpRJIzw+oysqeOPT6Uh12xSkJffgZ0sfk cdZAI9hRN30GkxEF+omVGJ+myhVFHRPt+R3yJZZlmQJqKe2OBrnFV/LZgAc1VSPTsWmo 1k2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=NVfWkKKhIOXXUPwC3kCtkrPkKe4eb2+Q7bm/ye6hAF0=; b=WMUNYeE6NJcHbXM/zZsLtxL/KRtQxQXcFB/2eU3gGQjYItEwWTjeRN5Nc+issP42Bo V7dDZHfNGuCfC1Ogmmur0GxHdIdtpV+gQ+7PLrCR626qr/NZJiLfUIq9CY67/vrF2dgj 4bfc9+BIaCaLef+ogmsqVgaIH9PJ9BEopcGmz+jw7gzmVzQn5DLUlhJ9wFD3vRm6ivIy lQvNTJC++6mGMhtyYSfQu7B4ruyDyUEwL92LrheVZI/R8tfl01sCR1IBVttaTzGZyMR+ cZPASYEbLP0y3p01+ov9WSHiFc8o81VsozJ8Ak6iowwFR3+LfWEB54ksQa/YO7skIfV1 bWBA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si29098979plq.219.2019.07.30.10.46.14; Tue, 30 Jul 2019 10:46:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730445AbfG3NgZ (ORCPT + 99 others); Tue, 30 Jul 2019 09:36:25 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3224 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726358AbfG3NgZ (ORCPT ); Tue, 30 Jul 2019 09:36:25 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B571A76C86F14882582D; Tue, 30 Jul 2019 21:36:21 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Tue, 30 Jul 2019 21:36:13 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH v2] Input: applespi - Fix build error Date: Tue, 30 Jul 2019 21:34:14 +0800 Message-ID: <20190730133414.49008-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <20190729031455.59400-1-yuehaibing@huawei.com> References: <20190729031455.59400-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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