Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4515354ybi; Tue, 30 Jul 2019 03:26:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1TgUe2V0WI5EJbVX28U5e1dfQTI1mum43lk9DCZqoNDHS1m3Tc5rSdDUHVeeOW1bk6NQH X-Received: by 2002:a62:1515:: with SMTP id 21mr42182677pfv.100.1564482416204; Tue, 30 Jul 2019 03:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564482416; cv=none; d=google.com; s=arc-20160816; b=EkobKOmyBmbOFY71h0HeG3wm3UDIzzprkbwjJblOqP8a5Nreoq8Ug2qDS63r8RMAS7 gAaxh3i0bHL7CL+ImUKGlB8e6vLBroMm4VrfFVBytxKFrrob1/bFXIdkkHj05n7jEX1e /7fh3KlQVhi0+PnDoE+4bd6zJVUFnNWMKB+bewlh6PH36Lsn4JRGtfOjfCRYShQF9swZ vV24LOA9lVnrFJmWgP7dzjewOy7JsG0PXMYmtSPLN2TMoewsXc/NccZCnl8DoloATNz8 V95FfNW5GUyaPCyVZqUF/gSHsIY3PJWV/HlebCAuTF0g5KU+5vIqNcuun107ONtHlczt 7FGw== 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:dkim-signature:dkim-filter:date; bh=odb/ex7qOOtzc025BL4OpTK8RF6DI6yzZ3QasbAko7M=; b=Wc6AHLg8qNTKLcjL9rrAvfKa9SvWFnOqNx1ahi3Y/gn2IC/BTS+TZQ6MDbppR2ZlD1 Qw0sC+qSGoFM5QBteJpL7/piA9qhOfaXNUT9NGUEZivA6jK8/ybrjaQmRYQJYX3KlHBf S/bX+DM38xNJNEeQ2YeG/11myBd6im5a+ADNZj25+Q8TORBwrNDp09Gbyrsr14CaYnhc HGJInup1Bj0ZsiUzlvNJoI3ImHS4GIW+IY0qKn2vUL9Yob8Gw8k8XWgvvfD/dymGSorT TC5bh+zPmrRsKigfoLWjVDkFFeUWlWA8t5Cq9ijf4Snt8DtsZ4fjirVKqwQBoS4XHX70 wVMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@innovation.ch header.s=default header.b=DezN6Day; 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=innovation.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si29664509pls.69.2019.07.30.03.26.41; Tue, 30 Jul 2019 03:26:56 -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=@innovation.ch header.s=default header.b=DezN6Day; 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=innovation.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729409AbfG3HBS (ORCPT + 99 others); Tue, 30 Jul 2019 03:01:18 -0400 Received: from chill.innovation.ch ([216.218.245.220]:57186 "EHLO chill.innovation.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729357AbfG3HBS (ORCPT ); Tue, 30 Jul 2019 03:01:18 -0400 Date: Tue, 30 Jul 2019 00:01:17 -0700 DKIM-Filter: OpenDKIM Filter v2.10.3 chill.innovation.ch B809F640134 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=innovation.ch; s=default; t=1564470077; bh=odb/ex7qOOtzc025BL4OpTK8RF6DI6yzZ3QasbAko7M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DezN6DayzvMgu/0eVN8JKWYfm4qrm28k/brozTrH1P0fsv3tn3MSa7NaSubIEwMBQ +D+X7IUoEfacU9ERnhifzW/WVvNH37126TwbQWeV0+oBjAVz7aG02XXybJ+6wpZfWm FfDNHjl3+ZfPQZV6F7IyXH7ZWtQw0nuRq7uyUo1qAmlqoW8aY9QTqi+95haW68kUY7 bDETWtheGhyCZs5ByJTaU3DnkRBv+8bWpphBIhWd5FptidkrJ2EwgDz+1GwBbu/DBC fZ8O6/AoG6bP3J+KwEsHnBJDnvIVaMOeHBIMPcAkSCaqtzC3uC6EQwgVj/0/tg9Rxe 5sWhYQRjbgiBw== From: "Life is hard, and then you die" To: Dmitry Torokhov Cc: YueHaibing , nikolas@gnu.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH] Input: applespi - Fix build error Message-ID: <20190730070117.GB20206@innovation.ch> References: <20190729031455.59400-1-yuehaibing@huawei.com> <20190729140438.GA2372@penguin> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20190729140438.GA2372@penguin> 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 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. Cheers, Ronald