Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4419988pxu; Mon, 12 Oct 2020 19:48:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxseioMwhx0TmhW39iJOe4ct6ferysOCZ61d2wt4ba6ZD9tUPoD0RTPAlD/oHXfy5XEBzly X-Received: by 2002:aa7:cd98:: with SMTP id x24mr17178532edv.237.1602557323225; Mon, 12 Oct 2020 19:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602557323; cv=none; d=google.com; s=arc-20160816; b=ItLJeOFUo3TpsxyIZcySm8MHItDYX/BTCc/LHHkHoci5RYoZI2bqhm8H1lBcmWxUii 1gx9uvthYAkUIoVnEK29PgDDCrVubcZvdhaCwzrvtEIf9KCJnZq+O/ZbuXIX3JY34woW PtdRV123jh1DoJj3ZrclDZ7wSuooBSYg3rnMvJ3eoPsJxk81b7sjkcPbhdlH/9V7vu72 7P5ZhAuVSrNpDz0h7NwGgqjEeOF+h2uVKV+dy6ekHSGo+iVW2zDplsjsjeEQC0HvoNmw jrtLwFPA/c6uITSA2DnJlSD1NPg8M3R4ZdxEuqoa/0ETNasxLVtqPOr6kfM40AfvDm5O aLZA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cD6Dw84yrzEVIXJR4HuC4bqyfQ+qN9V23sLFhgwqLpg=; b=OG1JlLRKoeqpNF1Ji9qM0qaJH5wVx01HW9RFERyVqwjEY84OJVP33TGqiBGHVROQtR Ld2SDMYzVL3GglSE7taxu5pdRzEzbgputFzSEAL6rWoCfK8fw5bbylffRGk6AzcSZEPE rlDVec80WdJ6kCpxxpDZ6eGi4d+HW1PQ7uJGkEdNAvWSZDIITiCq4D0N056syWpE7BQs 7SfEu3WkwPIP67jXpu3OkbYLgFUYylk5AYqBQrN29zCauubnQRsIR52LOcoaqe6Su/i2 62aThpYpJiJP110YfiNjAuIUM8ttxijyZBngRHTSilNv88aUWXJxZqstS7HX8a7+cTGZ JSrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=paOg9HVL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si13207217edy.429.2020.10.12.19.47.55; Mon, 12 Oct 2020 19:48: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=@kernel.org header.s=default header.b=paOg9HVL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387950AbgJLOCu (ORCPT + 99 others); Mon, 12 Oct 2020 10:02:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:40588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387538AbgJLNhf (ORCPT ); Mon, 12 Oct 2020 09:37:35 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5F6F621D7F; Mon, 12 Oct 2020 13:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602509853; bh=qa0/iPBshBLUs7BLG3q2biC+JWob9mLPteJ8XteCzTE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=paOg9HVLW64vqAagUq3csr2Jl7JpAgeCfT9Wh6NT52BmjrSrUZsn8Uv8WTC7J9Rso DdVV9HQ4iCxlEOgoKRE+FO3rgkM5zqovRYrzXt6jdXWMwv3qO5XmN0L8CsbpLqCHTC rzdPmzWnEVQncYIAujBcJy4nZF66evrIema1vpKU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Necip Fazil Yildiran , Andy Shevchenko , Sasha Levin Subject: [PATCH 4.14 58/70] platform/x86: fix kconfig dependency warning for FUJITSU_LAPTOP Date: Mon, 12 Oct 2020 15:27:14 +0200 Message-Id: <20201012132632.978601991@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132630.201442517@linuxfoundation.org> References: <20201012132630.201442517@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran [ Upstream commit afdd1ebb72051e8b6b83c4d7dc542a9be0e1352d ] 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 Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/platform/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 09035705d0a07..4f872e62508a8 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -183,6 +183,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