Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp409594pxu; Tue, 1 Dec 2020 14:33:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNRNsDyfRBvYysTXx1PcGyzA2t6TjAayZ1cXcLDMj6iBc1v6WLTOGibnVCcTkZQvMh2dy9 X-Received: by 2002:a05:6402:2da:: with SMTP id b26mr5232749edx.176.1606862016041; Tue, 01 Dec 2020 14:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862016; cv=none; d=google.com; s=arc-20160816; b=fsxz1RqvSlJVnc3EYTExQvM7NlxL0FNaBy9tmOdezkrPnPKNwlJkDRVYDLIS8VYgIJ 3F5bq55dU3yj+rGaBena9VxZazAihuGiZjnfDEbvCFu3Hfo+/GIWb63PqsGRuqmizNEH 42fWPm8YWb85UrLrXxBffHTYnnjnGHNTcQAPMLMJOPLcJ1oxGaqC7qf3bXG/H39+P6Nh zqmHnt6iMZPDMSDudO5yE2RU7QyAgdwDSfwW5oxgYvRazicTiTLlDALkoXnapp/F2gUN xATlgfJqcIgGTcaGJeJ+rU7B3htAhc7Npc8iVqFLzZuKbdWYmYhb2lKrr0yrpOhbS/11 bZnw== 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=36QpDIBFvA4mXfvETv2Yce9CyNAR+f+04oKRlleyum4=; b=TGk30bpn0DPLmZXXDf3snBzhpv2/4eAiTgKwqpQnS2cAXf3V8yorGXFOkzKwymEgso g6kcmQ+1C/tYQ9OdiUK/BMK1YK7JOl6aKJEqUKJWV7htIVEZrU5DV9h/pdX+oG+9y+1u m1lpZYeFg1HYU4g4MF2Qi+e2Ao8zEGo+qXMusaah8KkqNwrsl4NTpws6gjFuNe4PtqTZ 4a7st8uXvrGvLmd11HKZblK/XJO9jYJiT/l8CGZXffQF7PgqC5gkzBhCN+wRACg59mmP uQSYQZH7oSsUGCYeGu3jJ1+TmvM4j4ngLrUHYuCxdEIXfQfd2kumvEbiJlOgSUUk9GxD vGeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nDtd+ymd; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si852184ejb.216.2020.12.01.14.33.13; Tue, 01 Dec 2020 14:33:36 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=nDtd+ymd; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390948AbgLAJZw (ORCPT + 99 others); Tue, 1 Dec 2020 04:25:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:42480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729347AbgLAJFc (ORCPT ); Tue, 1 Dec 2020 04:05:32 -0500 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 8A792206C1; Tue, 1 Dec 2020 09:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813491; bh=h60ek0hTv04VHgQSiFeWek+FE4Lk+MHPlUOUUhBX+ng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nDtd+ymdj1LqEtGetxVF74tgy9zCxspjsafcWNNTLKtdiMNz+wsRjf8xCq+JfF+CF 0JrtN0N5egA7sTp8hgXpj0pOjufCf3osBPnfOWV+W8fCp6taTGWiov5+4AMYGUqn0x Q5cOHMzdH8WyKDNxX8b5INzIKgrbY8ExFE0MuwW8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , Sasha Levin Subject: [PATCH 5.4 27/98] staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK Date: Tue, 1 Dec 2020 09:53:04 +0100 Message-Id: <20201201084656.103921600@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084652.827177826@linuxfoundation.org> References: <20201201084652.827177826@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 06ea594051707c6b8834ef5b24e9b0730edd391b ] When DMA_RALINK is enabled and DMADEVICES is disabled, it results in the following Kbuild warnings: WARNING: unmet direct dependencies detected for DMA_ENGINE Depends on [n]: DMADEVICES [=n] Selected by [y]: - DMA_RALINK [=y] && STAGING [=y] && RALINK [=y] && !SOC_RT288X [=n] WARNING: unmet direct dependencies detected for DMA_VIRTUAL_CHANNELS Depends on [n]: DMADEVICES [=n] Selected by [y]: - DMA_RALINK [=y] && STAGING [=y] && RALINK [=y] && !SOC_RT288X [=n] The reason is that DMA_RALINK selects DMA_ENGINE and DMA_VIRTUAL_CHANNELS without depending on or selecting DMADEVICES while DMA_ENGINE and DMA_VIRTUAL_CHANNELS are subordinate to DMADEVICES. This can also fail building the kernel as demonstrated in a bug report. Honor the kconfig dependency to remove unmet direct dependency warnings and avoid any potential build failures. Link: https://bugzilla.kernel.org/show_bug.cgi?id=210055 Signed-off-by: Necip Fazil Yildiran Link: https://lore.kernel.org/r/20201104181522.43567-1-fazilyildiran@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/ralink-gdma/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/ralink-gdma/Kconfig b/drivers/staging/ralink-gdma/Kconfig index 54e8029e6b1af..0017376234e28 100644 --- a/drivers/staging/ralink-gdma/Kconfig +++ b/drivers/staging/ralink-gdma/Kconfig @@ -2,6 +2,7 @@ config DMA_RALINK tristate "RALINK DMA support" depends on RALINK && !SOC_RT288X + depends on DMADEVICES select DMA_ENGINE select DMA_VIRTUAL_CHANNELS -- 2.27.0