Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2785627pxk; Tue, 15 Sep 2020 02:13:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8V08sVDWY1TAYdHlzcknpScy7vA1Lq0kPJhZxodaup4RjRL7TSnHqngErgXzoh0m0Annt X-Received: by 2002:a17:907:94cf:: with SMTP id dn15mr19489078ejc.114.1600161223692; Tue, 15 Sep 2020 02:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600161223; cv=none; d=google.com; s=arc-20160816; b=cJlxvSnhVukLmuNZsBGKGA7Oj+sSLXKdyXKuhkqjh5CTG9g0sUe/zvvwn0Co2E2mhG Tb8Hr3kHQbKvi87mTmiaU9JgKO1bcnvA+lCeeZN9Ol32QaT1qO2YNNra9JS+cDdBoT4F RIT4Z3OVaQQGACIXwxEdZb75Y3ij/OlHohe3bUtwQJI8JBO6OA2OVbbGpjCrqJkq71WU GDUffMU/MU3m9lLrZiDymG9wlg5zUXNlfiNl3Dhy0AChAJt53RsJtmVi+yXst5388zPH cqycqsqJSumKnMGydNrBBw+ZlwyUMzSRiozqeYYxu3Fe20MY56oDgP15ayJmrVuVZuKj y+pw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=txzfbZrnakH2vaBjHQaalxnwyww01JCiom2JkdV9wmw=; b=HD64z16H+z9vW1ge5V36fYRAJsT43nXP4cUbF0pFMTTOe0Vw5rtkzIHsAioBWaT7LM TR0tibb4FdMsodtw7kF8jRSaN41QYnEde/lGnwSK26gYs0+4o+oOmBI0xHKDUhTVInzt PGOGAwxWoxZqJAILVS4F/yK+EXWvzXBBXuPww0Muqb1+zpUarch4fDy6VxzmP0lfcHel pgxKwNg+huoba7nUEdBU5h31QGdrDH+VrPOrUnQJUTunxTZO55TIYMYus+sCxc3F5PrD u+4gWW9T8WRictmxErRw+5O3s0EgmMsLCSQ3cLsuwr/q0Jw56SG+PhcO+5Cd4dbV2S0I amwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kUnELQIT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x3si1412629ejj.733.2020.09.15.02.13.20; Tue, 15 Sep 2020 02:13:43 -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=@gmail.com header.s=20161025 header.b=kUnELQIT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726269AbgIOJKt (ORCPT + 99 others); Tue, 15 Sep 2020 05:10:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbgIOJKp (ORCPT ); Tue, 15 Sep 2020 05:10:45 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E1DC06174A; Tue, 15 Sep 2020 02:10:44 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id t10so2501836wrv.1; Tue, 15 Sep 2020 02:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=txzfbZrnakH2vaBjHQaalxnwyww01JCiom2JkdV9wmw=; b=kUnELQITvGByzN0wd3bKx6OJ8cJu1FkJ9Pr9qtd4PWLcZRGOmv2Ig3K2HXRQLNwwT3 Z4Vak+BFA2C6caVthL7H6Nl0hDPfI0nmPbEJn5i+FrRPU09AsFQyAlWpYvZLhvLZzZXU MuePsAIavbIZHbxXqMd1q5YNAMQW0kBM30a2mabmO1DARz/MxyxXDAQ/FT5IgUe+hS7Y t1hlautpQ5hfbOzDumuqW4NCwbgmOLDFBATHnjI02gGFxidmilgni0GutfSB3QUxH8yH jOG1NSmiCsVPUY5iXX6lBwO6qoEI+g2fKq311AdqErkcp2+U5MBm+3nUbbYHeeJ3+DZZ 3ZXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=txzfbZrnakH2vaBjHQaalxnwyww01JCiom2JkdV9wmw=; b=sSp+/ksMyv+B+USefKPsIBXeidhlw6my9HNoWOf/79YdBedXw4qK1qFyTY6NxpJihm UdhXs82uML+NPXMRuNS4pK+FT0GpB7QoK9IY00gKRd+qy9UzpCASiep99E/gZaHx3QHg yQsLqSH1pb4gPRvHfTHmsnnREPD6OGQy1/3LG8VOU0Iucoo1AGJxApjY6ZdcL1KXRg2n BH82pUpks4MiiT3ibpOLx3hP5RjefPQAPzbHxEX629sJEJoWgRdOnp1CfVpcPUyOJ6Ic tOV0z9n9vs/U7Cw8hVGaWZl3X+4IpL3ShUye6n1IXgxxT7nUJHkxm0rh69suixiciAWB EuZQ== X-Gm-Message-State: AOAM531nj9STB83gLLdBWuUBXhAbuuehAzBKhnhDRqi/gFNjvAG990ID 8bko1ZPUHUQ9H0Ps77MzRAU= X-Received: by 2002:adf:f88d:: with SMTP id u13mr21801771wrp.213.1600161043205; Tue, 15 Sep 2020 02:10:43 -0700 (PDT) Received: from localhost.localdomain ([85.153.229.188]) by smtp.gmail.com with ESMTPSA id k4sm25899060wrx.51.2020.09.15.02.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 02:10:42 -0700 (PDT) From: Necip Fazil Yildiran To: 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, Necip Fazil Yildiran Subject: [PATCH] platform/x86: fix kconfig dependency warning for LG_LAPTOP Date: Tue, 15 Sep 2020 12:09:23 +0300 Message-Id: <20200915090922.16423-1-fazilyildiran@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 -- 2.25.1