Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4530762ybi; Tue, 30 Jul 2019 03:43:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4/mL1wjZIk4yJl7TL/zlu6+mIf2k2RvWRr8l9Ci7L04JEDLqYZd1zJutiPiMVBHVilfyh X-Received: by 2002:a62:fc0a:: with SMTP id e10mr41223844pfh.114.1564483389683; Tue, 30 Jul 2019 03:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564483389; cv=none; d=google.com; s=arc-20160816; b=LedZKX0lkbCrcH0OysR7MbzgKOFhCvS94rx5bnt4zuoudhv+rPMEjMKH5VXzUvF+9J E0NFYpplKQga8qqFLU6hRnGrgXd9uCg0QN4rZFYUtfph28gVsaC7iubXPQ/31+ECx4No Ap4gagOu+iZEaBkkxBckbDP8bjSnpD+mwSNm/kjl2/WgYN8cg3ZqoNwXgy2IYh3ztSe7 ol2RLP4vdXYNAL6rUpoUUQcEldj5mQMMush9ZgkRi5iV+MOBeduAHv0HABGn+ourl9pm CLrWn27kpaz7y+J+QqYLsd5FVIgTR37sGg3dD7NaA284OC5Cju7Uq4Npnno3ywRaHrTP P3OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=u0n0jDR/lQjiSxhxPa86QMGXXbnHYvElf/FjjLMpjgs=; b=yO4/O5EclMTaIsQcd0Qc3EP6KOMYbsBWA5V0jm6PHibNgqbOlMJp7SufHWGIiVj6ZM Fy2qM+fL0cC7TrBG9A+iBV4aOYRcZQMcSI85BLQfIaivuhqX/JV5FEpDuUt3Mv0gDEcq 15yw4HOj9V8mifQNsUPVfiuTbRfFEgD+CNJJbqD2aa66N/QkksEPn9q6ZrE1KG05pC3/ D1EIHYAgiJdHZtp7sTzC1xHL+UwKref35MrfIfEbqoMc+j0l5wCFIz0bqO7ZDKiVP59O W11G5J81TnfvbDXdbhwx7Z3NfbEkYThSqKcRv9hNF5REZn61v+0DfsLja60y1kjteVNj ARIQ== 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 u21si31536958pgn.290.2019.07.30.03.42.54; Tue, 30 Jul 2019 03:43:09 -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 S1728737AbfG3HWw (ORCPT + 99 others); Tue, 30 Jul 2019 03:22:52 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3243 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727527AbfG3HWw (ORCPT ); Tue, 30 Jul 2019 03:22:52 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DCFCEE9B87D52890DB6C; Tue, 30 Jul 2019 15:22:49 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Tue, 30 Jul 2019 15:22:44 +0800 Subject: Re: [PATCH] Input: applespi - Fix build error To: "Life is hard, and then you die" , Dmitry Torokhov References: <20190729031455.59400-1-yuehaibing@huawei.com> <20190729140438.GA2372@penguin> <20190730070117.GB20206@innovation.ch> CC: , , From: Yuehaibing Message-ID: <59344451-4752-8610-22cd-2aa9b34e21ed@huawei.com> Date: Tue, 30 Jul 2019 15:22:43 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20190730070117.GB20206@innovation.ch> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit 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 On 2019/7/30 15:01, Life is hard, and then you die wrote: > > On Mon, Jul 29, 2019 at 04:04:38PM +0200, Dmitry Torokhov wrote: >> On Mon, Jul 29, 2019 at 11:14:55AM +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' >>> >>> Wrap it in LEDS_CLASS macro to fix this. >> >> No, we should add "depends on LEDS_CLASS" to the Konfig instead. > > While the loss of keyboard-backlight functionality is certainly not > critical, in practice when building a kernel for desktops/laptops > (i.e. where this module would be used) I see no real reason why you'd > not have/want LEDS_CLASS enabled. So I'd agree with Dmitry that a > Kconfig depends-on is probably the preferred approach. Thanks, will send v2 as suggestion. > > > Cheers, > > Ronald > > > . >