Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp649858pxk; Thu, 17 Sep 2020 12:18:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjv0fAFZXVlsQBnqCIdgHYmtOnkW0yYoC/P+wKV+zszyo24IHHpLgr4tGWO7STvNn8WaIZ X-Received: by 2002:a05:6402:234a:: with SMTP id r10mr34603574eda.363.1600370303904; Thu, 17 Sep 2020 12:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600370303; cv=none; d=google.com; s=arc-20160816; b=Y9o5p3xo8+xC13X+imlLTL4ge4sEsRdkffHh8uuepD/i+yU/fsIBr4cwb6qS/oTpVa qklS6HCgWDJkA4WHbSHwuJmoYGlN1ga3GoNF7eoFB766GSs7dd8a29STO3GTHK3LIARm ddMlDR9YvImsA3LjezDaDAtpHo+Z37gwBErz6FhireN0dZpDs5P1TsxdY9acTCydfakj fsRZDr36YUybzK6LRar3kq5D7SePe5Bam7Qm/1XCcSpiJRVg+WOym5DFY2pGVIetYfQC g7p6yWKINWWQZPKHAXv8QDjY2ZJ8eiN1/EMrtKVMfQzfDp7bemjxxO+6PUN3aNfKbYzk uVxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CwsCZGPPc4UztwJYa8ujzMQrMgcPcRryCeMG+FPPd0o=; b=VguDgxzbYrY2oAAXR/GjcENiFnD+B9P0DWWmjz2GEXKgHKh/xFyfj5zyXXlsYu6z0G i9ACRpAyMZDKz+ZwFmewdQm0/KfrtjU2+1ZCcqBb10WnN0BeL1SOSbC9pLbmAgGpt6Oj tex6eE6KhwjHb/I5DS9fmGU/n812H0tW65xN26rujKJe0GbWMR1lhOuC9ZUAgX8iZgQ2 9LnJM4plPMei3rU1q0fn8uROtLDsyzP92suevGkTcCix27i/VTe3gwyxfmTzzGcx4i8O 7Kd0d9ixgC7QepfgS7M14PVQeDyDDmKQEL7Sed9gjIwHMXCv+Xklv6r9KBuZS54KW5Bi oX0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jwvCOxib; 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 i12si438733edy.604.2020.09.17.12.18.00; Thu, 17 Sep 2020 12:18:23 -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=jwvCOxib; 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 S1726342AbgIQTQL (ORCPT + 99 others); Thu, 17 Sep 2020 15:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728388AbgIQQSp (ORCPT ); Thu, 17 Sep 2020 12:18:45 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D292C061226; Thu, 17 Sep 2020 09:18:09 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id z22so4082724ejl.7; Thu, 17 Sep 2020 09:18:08 -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=CwsCZGPPc4UztwJYa8ujzMQrMgcPcRryCeMG+FPPd0o=; b=jwvCOxibAW//ZJ3LBKpKwQb+MWCze3cCT9PoT+1UeRVR8pvOmQEH6Lz0gpWi8teTXI iCIZEz41kSt6ulScHaN2iX7F3eNDYCEwt2IPgduOnEaflG6/FmhxGHgmLypim4xYkrI1 1XFCG4E6Wuq1bMdQwFjPUQ5/Ac4z9UOoR5809yK+fJZ5plLVpPbWWjxg4k/iwJkkCubH Jd5IAv1HWVV51zc9WFS8Xni8sHBo2LIYkEkd3raAG8yhqOcL7X4pzeW4pxVolnrp36g5 zvCA+3Y/YOUTS5WhTgjrK3YN43bVEBWoXRdsJvvziZBWeo5BsEJCpvJSmuPwmxo9v5GY owzQ== 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=CwsCZGPPc4UztwJYa8ujzMQrMgcPcRryCeMG+FPPd0o=; b=oaydIV1IbxgbqMU0ArJGhn295ehm/UwDNq0oUiGeupoP+WiG4DoVdfeR59+Q7F8DGq W0SMChRPLugFmD6eRPSjQXXXnwTKbE7Gq2KUsjqJMSR0L6NGmuhBQwu/oRR4kjcvSSph 1lsdZCXD6YeQIKYxY052ykyH+iCWzv/3lGnuhlJtKVH6zVKKYxba0Fxc3+Hw4/ww7fek haNOA1GPGu6NZo2j1OfgbOg8nMlGjEUr7wuOld7c6KHQUd+IcyYT3IaJYlLW7k12Ja+T lo83AOCQlHx11LnPoTw9PVOH0oyGGvRA3DkOg5zHBZNVS5DSQu+PonBbaV0FufjcXQvK 3bHg== X-Gm-Message-State: AOAM533gwEshLgd5q/v529bamH3DJok50cAYiCoRNBZYnFmhSk60q2hb 8LOUFfH2lJClVdp4zlOKk+o= X-Received: by 2002:a17:906:3913:: with SMTP id f19mr33272392eje.83.1600359487673; Thu, 17 Sep 2020 09:18:07 -0700 (PDT) Received: from localhost.localdomain ([85.153.229.188]) by smtp.gmail.com with ESMTPSA id bo8sm109242edb.39.2020.09.17.09.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 09:18:06 -0700 (PDT) From: Necip Fazil Yildiran To: andy@infradead.org Cc: hdegoede@redhat.com, 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 FUJITSU_LAPTOP Date: Thu, 17 Sep 2020 19:16:53 +0300 Message-Id: <20200917161652.147616-1-fazilyildiran@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When FUJITSU_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]: - FUJITSU_LAPTOP [=y] && X86 [=y] && X86_PLATFORM_DEVICES [=y] && ACPI [=y] && INPUT [=y] && BACKLIGHT_CLASS_DEVICE [=y] && (ACPI_VIDEO [=n] || ACPI_VIDEO [=n]=n) The reason is that FUJITSU_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. Reported-by: Hans de Goede Fixes: d89bcc83e709 ("platform/x86: fujitsu-laptop: select LEDS_CLASS") 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..3cd2b99628ba 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -469,6 +469,7 @@ config FUJITSU_LAPTOP depends on BACKLIGHT_CLASS_DEVICE depends on ACPI_VIDEO || ACPI_VIDEO = n select INPUT_SPARSEKMAP + select NEW_LEDS select LEDS_CLASS help This is a driver for laptops built by Fujitsu: -- 2.25.1