Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp364801pxk; Thu, 17 Sep 2020 05:20:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzci7vdO/JNWlHmal1SDpHYb7U0+EACCOi57WPEsHUssrD1hEyRGjS0VT+2ZF7Y2ieWN3ft X-Received: by 2002:a17:906:4f16:: with SMTP id t22mr30021107eju.40.1600345214307; Thu, 17 Sep 2020 05:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600345214; cv=none; d=google.com; s=arc-20160816; b=IetToETC7G5UfzXNOwRC253hzX6O3dtqhdg/5yWijSbhwCZMHjQIrUGDtH11l+2uZ/ 29cOF5RGosuuU8A8pOomqv68Ek/O5ex0J5AjNSgkde1BseDywgxDoNXXPZSUz0MNOtq3 yLfS8mkjWqrJEjCgUS+7JpEwdZKMiwqRV9+HpqomxUa+A8BUxDv5WOwZ3N60NU7ISHox jmh/07t+YPfPIDIRrHQmWDlvN+YPLUU8YlZvaHYwBiK4iLQfVtAV/Vq4BGIYFmmxfATw z/IFAGCGHfbu/mdrCM719YPOwSW7tLcxgSC9Bn7vQ0xo0PyQHwrq0JAXSuQb6sX9uTaw 1N4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=SoisXRLqWddF3VDGVnR2urzq3JASfg0vD91MUOUDVZc=; b=kKNDNoQ0OIYLT+nahr4fcAXyaHnukcrEMSuwtG55nTOli7jYomsYHslAxL8t5mBe+6 8YGhcVADNyffqgq/nsa8nKaUQsbPnVfdiY0+nq13grWFRBoo/dc0ghmkDR62E894xtUN ZWyA3SZfqR8uiRbX/2+BTP4D0SMgzCqiwpwLOWwUT0dDLYY+VnSspv01Vy01IDSka+ZY 0jo7NdzspefJFXswUoSniMRBidU2YllGb9cS/+XPm0PDlsNPDYbTLZ0Yy06cmpCAklnz xHp4pHOcSH+dU0/zzxNcoPbLFP4UwgPEhePZjmd7DxLgMQCKIXWwiU1q2ssarhyHxAHA leVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FiBaSlUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nx23si14713120ejb.291.2020.09.17.05.19.51; Thu, 17 Sep 2020 05:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FiBaSlUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbgIQMRs (ORCPT + 99 others); Thu, 17 Sep 2020 08:17:48 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:50160 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726943AbgIQMQe (ORCPT ); Thu, 17 Sep 2020 08:16:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600344981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SoisXRLqWddF3VDGVnR2urzq3JASfg0vD91MUOUDVZc=; b=FiBaSlUxqJXoYHziPUN2GfufGwTCkXAovg3ofxWvZQPxMwAdjD76owyPsHMwSv7sok+xu9 gM4LN6xETnJfwPkqavwNSn44kolnnzXgbEBHirNckqVWTQmzbujkGF191e1cryXUjQB/IB lCtEb0rmuval67s/PUP+bl8M4Za8xvs= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-361-TM6yvxTdNuyfYgVq1SXh-g-1; Thu, 17 Sep 2020 08:16:19 -0400 X-MC-Unique: TM6yvxTdNuyfYgVq1SXh-g-1 Received: by mail-ed1-f71.google.com with SMTP id c3so820834edm.7 for ; Thu, 17 Sep 2020 05:16:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SoisXRLqWddF3VDGVnR2urzq3JASfg0vD91MUOUDVZc=; b=uXZPBWaCBG1+C8VS+1DRZ9HjfrWv1EGRv3XmGwlGRgYz3rDwLO2Eqg/g0uDPXpazp9 2sCzRu4GI1j5Am/OgxzttWN/tyqKKBHxFaRbOI9IJm7wlv1cR2uOHqktDVFAMQxj0Llm Y5SVKbXESELc+EMaBw3UUiOtBp2hwGQ2TVtxqTVAVjltuO6rwz0mpQyM5npedbJ4fsoS rFihx7H6EnvhHEQ5Dj+hE8sUr+Y5o48bRumTl0dSHDsN6goMQdKICXchEWadZynv4FwJ +bQ3QvLQklWZdJCP7bG3x/BQ21M+dubg2rrjMrN2j1gy6QloYqZN4Dkx+SX84nan/863 JerA== X-Gm-Message-State: AOAM532otm6N3KHwwBIX7VWKbsc8b+kxwwO90SVpHO7VSTl2Ejx4nPDl Tma7mWSZvYRmWH1l89LkAoHEj2SdDQkakkTtNut7X1fN1vSHHpXo65ZfnqYc7qs6WbmkJbgr7un ZFnZH6kvksrh6AUHhXTimN7wQ X-Received: by 2002:a17:906:5495:: with SMTP id r21mr29373385ejo.33.1600344978798; Thu, 17 Sep 2020 05:16:18 -0700 (PDT) X-Received: by 2002:a17:906:5495:: with SMTP id r21mr29373368ejo.33.1600344978632; Thu, 17 Sep 2020 05:16:18 -0700 (PDT) Received: from x1.localdomain ([2a0e:5700:4:11:334c:7e36:8d57:40cb]) by smtp.gmail.com with ESMTPSA id n7sm14912134eji.13.2020.09.17.05.16.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Sep 2020 05:16:17 -0700 (PDT) Subject: Re: [PATCH] platform/x86: fix kconfig dependency warning for LG_LAPTOP To: Necip Fazil Yildiran , andy@infradead.org Cc: matan@svgalib.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, paul@pgazz.com, jeho@cs.utexas.edu References: <20200915090922.16423-1-fazilyildiran@gmail.com> From: Hans de Goede Message-ID: Date: Thu, 17 Sep 2020 14:16:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200915090922.16423-1-fazilyildiran@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 9/15/20 11:09 AM, Necip Fazil Yildiran wrote: > When LG_LAPTOP is enabled and NEW_LEDS is disabled, it results in the > following Kbuild warning: > > WARNING: unmet direct dependencies detected for LEDS_CLASS > Depends on [n]: NEW_LEDS [=n] > Selected by [y]: > - LG_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && ACPI [=y] && ACPI_WMI [=y] && INPUT [=y] > > The reason is that LG_LAPTOP selects LEDS_CLASS without depending on or > selecting NEW_LEDS while LEDS_CLASS is subordinate to NEW_LEDS. > > Honor the kconfig menu hierarchy to remove kconfig dependency warnings. > > Fixes: dbf0c5a6b1f8 ("platform/x86: Add LG Gram laptop special features driver") > Signed-off-by: Necip Fazil Yildiran Thnak you, patch looks good to me: Reviewed-by: Hans de Goede Note it seems that the FUJITSU_LAPTOP Kconfig symbol has the same issue, can you submit a patch for that one too? Regards, Hans > --- > drivers/platform/x86/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > index 40219bba6801..81f6079d08e6 100644 > --- a/drivers/platform/x86/Kconfig > +++ b/drivers/platform/x86/Kconfig > @@ -1112,6 +1112,7 @@ config LG_LAPTOP > depends on ACPI_WMI > depends on INPUT > select INPUT_SPARSEKMAP > + select NEW_LEDS > select LEDS_CLASS > help > This driver adds support for hotkeys as well as control of keyboard >