Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2648891imj; Mon, 11 Feb 2019 06:27:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IY6Sy7Uzh4EyzIMby8Gp8mTf0KHxg09nrSvZ5XMGOkGXRt7ZQ6oAx4RW0TfDAfgPvP6ELXF X-Received: by 2002:aa7:8042:: with SMTP id y2mr23909320pfm.39.1549895237389; Mon, 11 Feb 2019 06:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895237; cv=none; d=google.com; s=arc-20160816; b=Gkm5v6acYhCCHNLnEnINE7OY9RIxpALobf5to2odfQdUqA/46p1FsAmbrPtvYrX0MM kBZ2G5uP7/WVl5OluIhb5fD22YPGm+43AWTDOjTNRFUB7CYyWHxRHrOpcM+7yVwsXgyo 0LIhL/jG0av3cy5yqmgoQUzUm5MGUpYz9HiJPJvWVmpuvELLOZmjpLHyPVpGryfqdrKN CzBFVFcDZOEKOeZO1H0A+HpTEYvYeJmUgXWpplqPyLUMkV6ABPu7QdBTYVFPGziHlQVU lvLdqCirB87EyTW2AbB2AJoNy92zZgOi6q6ztGVn4OwXsHMNQvsePQg1TfAhxomWy6yu lxpg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BXZVFAjimxw80/MI3qnu7alhF1JbSgFEOAL154QQYek=; b=miWrpwi8eHXgv8rsX4O48LjT6yJyZlGlLfXoRTVLrWntVxewYtDe/c5+GMnOefeUfr y/xf07GlNZ0ZAngPEwMrjv0AasqDQ+1CtQOaX2b+BZURGLW02DcfLbYkp+YdQu98RKAn oH2bVAWc9jfQLlRXi7gQQBUICIEKO1azZas/Frqs3qWWBaWYbcZifaHvYvd02duMuMXh erBTf3lrlesx4XPwjWU7cUiwKRZeEhaMf253UsCJ1IjzMSQp3VliDbhvx8suGwBqZzVG JDjDOwOnQuT2xbfCPZUUQZ3SiisEjIOca69s+3CvkCjv6u51NMyfDYQcU36LngH/KBrk c71w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wK6Hcyob; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si8175303pgv.520.2019.02.11.06.27.00; Mon, 11 Feb 2019 06:27:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wK6Hcyob; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728966AbfBKOXU (ORCPT + 99 others); Mon, 11 Feb 2019 09:23:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:56160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728916AbfBKOXL (ORCPT ); Mon, 11 Feb 2019 09:23:11 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 3C32E222A1; Mon, 11 Feb 2019 14:23:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549894989; bh=qelTkmlH1hikdbUzc9HrblC18LJ8w7DphAuN+cxG2sQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wK6Hcyob0iC2d32nJqMDzeyrwOeHhiyKtJ8X3rrO6B6LvGgEPl626HVYmGEr88pgU +v9Y1GdJnUt92PhZSMZcjDwYr/rbwT94KLLmrL31bt/JouTYoFoAr/2IwvWICEmlof Z2zKVSIrigQmxH9BDwMFqLA8IiEDvFnhzVIMprk4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.20 055/352] scsi: cxgb4i: fix thermal configuration dependencies Date: Mon, 11 Feb 2019 15:14:42 +0100 Message-Id: <20190211141849.687479113@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 8d0bb86e2cf6c96d88c3de56a2a29329872c454d ] I fixed a bug by adding a dependency in the network driver, but that fix caused a related bug in the SCSI driver: WARNING: unmet direct dependencies detected for CHELSIO_T4 Depends on [m]: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_CHELSIO [=y] && PCI [=y] && (IPV6 [=y] || IPV6 [=y]=n) && (THERMAL [=m] || !THERMAL [=m]) Selected by [y]: - SCSI_CXGB4_ISCSI [=y] && SCSI_LOWLEVEL [=y] && SCSI [=y] && PCI [=y] && INET [=y] && (IPV6 [=y] || IPV6 [=y]=n) drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o: In function `cxgb4_thermal_init': cxgb4_thermal.c:(.text+0x158): undefined reference to `thermal_zone_device_register' drivers/net/ethernet/chelsio/cxgb4/cxgb4_thermal.o: In function `cxgb4_thermal_remove': cxgb4_thermal.c:(.text+0x1d8): undefined reference to `thermal_zone_device_unregister' /git/arm-soc/Makefile:1042: recipe for target 'vmlinux' failed The same dependency needs to be propagated here to make it work correctly with CONFIG_THERMAL=m and SCSI_CXGB4_ISCSI=y. That change by itself causes another problem with a circular dependency, as we use 'select NETDEVICES'. This is something we really should not do anyway, as a driver symbol should never select another major subsystem, so let's turn that into a 'depends on'. I don't see any downsides of that, as NETDEVICES is only disabled in rather obscure cases that are not relevant to the users of cxgb4i. Fixes: e70a57fa59bb ("cxgb4: fix thermal configuration dependencies") Signed-off-by: Arnd Bergmann Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/cxgbi/cxgb4i/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/cxgbi/cxgb4i/Kconfig b/drivers/scsi/cxgbi/cxgb4i/Kconfig index 594f593c8821..f36b76e8e12c 100644 --- a/drivers/scsi/cxgbi/cxgb4i/Kconfig +++ b/drivers/scsi/cxgbi/cxgb4i/Kconfig @@ -1,8 +1,8 @@ config SCSI_CXGB4_ISCSI tristate "Chelsio T4 iSCSI support" depends on PCI && INET && (IPV6 || IPV6=n) - select NETDEVICES - select ETHERNET + depends on THERMAL || !THERMAL + depends on ETHERNET select NET_VENDOR_CHELSIO select CHELSIO_T4 select CHELSIO_LIB -- 2.19.1