Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp688980ybv; Thu, 13 Feb 2020 07:48:35 -0800 (PST) X-Google-Smtp-Source: APXvYqw0p7wb3QaYu3jmC6VoHymBnCVqX6F7LcWaudg1HbifF6OpiM67Ca2CFIdm9yKVN+FWUl9Z X-Received: by 2002:a9d:65cb:: with SMTP id z11mr12987130oth.348.1581608915145; Thu, 13 Feb 2020 07:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581608915; cv=none; d=google.com; s=arc-20160816; b=f5OH83p6a87AdFld3Z9b2o/34LF0uKWVUoDGs0ZECy5G1U0CwdLj8ZaTdgDS3/BZ19 p8/XtDoqgTcqoKYQWeAPEt4AjlkPQNAuKK4cIf0Kw9jIdLZwTKM+M+4aDLBeJQAG9dw8 eEupRaEpvamYpj5U8w24o8HK9ev8V+Nq3iiJFP7BsU0LU5AaQSbJzEJQcwhB9BP+SFzf uaq9XNLPHiEC5yCwL58sW+5mVS1TydQ1TZFIc2q97QifzfRG7a/jKJfKH/wDwjuo+1UG wvcJg0zDffJ4Qh0rSPHGVa6R5go/dygE2qIUwehKo8JxC434BGwB45pS1o4XeZJfcKLS RkxA== 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=kUTHybsa7sdaAhUueig2nlKP71F0xVaZEWjhJqs2RZk=; b=WfY9Fhhthj/0gFKLo1uPMWCS7x0Hy+3fc//ZWzxZxa4PjiQ/o5Qw7FtbjZ+M9dT7Ss FTaRKcibbcUBhppxfLST+rBDpE1fKmcAPiHO6ac0rLj6Y4G1WLPNck+SYr+amehSwpS8 isK3Aokx+l6jN/rUdZIwz07t5W39tZGkFk/em8bp7qgQ0nIo9UfX8rukj0uC3cZPs+ja Edo5CCrWu1iuRtTTyhPpNcbQlPyVPEbyoA31Zzywd32CTph4a6oXdCMqD5tjJRm3+S59 mDCwF/b9pXvNOLuPg/YOOc9BiU4fgWeOZhZJeNGcBLGceycUAfLLJLObRuH8BydphZ8x +Odw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jx7T17ro; 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 f3si1308500oia.264.2020.02.13.07.48.22; Thu, 13 Feb 2020 07:48:35 -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=jx7T17ro; 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 S1729012AbgBMPrS (ORCPT + 99 others); Thu, 13 Feb 2020 10:47:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:48738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387673AbgBMP1I (ORCPT ); Thu, 13 Feb 2020 10:27:08 -0500 Received: from localhost (unknown [104.132.1.104]) (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 59E9824677; Thu, 13 Feb 2020 15:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607628; bh=tC9cEW+ryI8p9lRdNHxjFGOCMp+uK5CPyG52NOUYjkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jx7T17ro5HQ9eIFPZRM06f4f/Uk4F/5F0FrW/in4p3BWGYEPU5PYn7dzUqFDGY+RH F6pQ8T6LGuOzA+p4nGye8uhyasuQtdsuoA2r3iu4bR3TtjAKe5dnnY2yNBF0/34iFi VNXFpMgRwvL1AKo0ItWjGO5ew4FS9aUGfYQN6f3Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Anna Schumaker Subject: [PATCH 5.4 27/96] nfs: NFS_SWAP should depend on SWAP Date: Thu, 13 Feb 2020 07:20:34 -0800 Message-Id: <20200213151849.520426954@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151839.156309910@linuxfoundation.org> References: <20200213151839.156309910@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Geert Uytterhoeven commit 474c4f306eefbb21b67ebd1de802d005c7d7ecdc upstream. If CONFIG_SWAP=n, it does not make much sense to offer the user the option to enable support for swapping over NFS, as that will still fail at run time: # swapon /swap swapon: /swap: swapon failed: Function not implemented Fix this by adding a dependency on CONFIG_SWAP. Fixes: a564b8f0398636ba ("nfs: enable swap on NFS") Signed-off-by: Geert Uytterhoeven Signed-off-by: Anna Schumaker Signed-off-by: Greg Kroah-Hartman --- fs/nfs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/Kconfig +++ b/fs/nfs/Kconfig @@ -90,7 +90,7 @@ config NFS_V4 config NFS_SWAP bool "Provide swap over NFS support" default n - depends on NFS_FS + depends on NFS_FS && SWAP select SUNRPC_SWAP help This option enables swapon to work on files located on NFS mounts.