Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3980264rwl; Tue, 28 Mar 2023 00:27:25 -0700 (PDT) X-Google-Smtp-Source: AKy350aoluqik5bmrHztF5bPw5+MRVgq9NAUSwgvbsi8quszKTW+p6pFKOKhLurbDAv1/O2bGhI0 X-Received: by 2002:a17:907:8d88:b0:93f:1d2e:8aed with SMTP id tf8-20020a1709078d8800b0093f1d2e8aedmr12461829ejc.50.1679988445700; Tue, 28 Mar 2023 00:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679988445; cv=none; d=google.com; s=arc-20160816; b=iwETX+y+UBLkUH9BSr1EEVCLybNdTgxj1fe/ZG4lwfkvQJPvuvdVLS/JPGW/iApjhK 4JLUTMptsFQtyLN4QWIMAZZuCN2/xrxlmnPi+zrkOLz8mm20Bvmqfafa8Ovqfmw7q/fH 9iKm12UMeBKmuTOZ/DH8mUZ7g453rrD4U6c3GMwBQAQu8NKEu7T2AtzzB9M2RN6RdQWT lZ/45y6FAld56GHpjPeLnAiU3rsk6jt5VYuv63oD1MkmDGl8Lra2PR+39hJ5eRIBTkjO wMuXQAHQ3S2MU0XowABYGTl46CE3g2WEuykeX6dFMfLtRuT6ihFlrqv3YvB1BGarzBDU rzOg== 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; bh=zpTgjF47lFJRF0nU3eVtcbsDN5oYzAQ7UVMjuyNWMA0=; b=nlIoaUKPXJX2fI56m1csg6IW7pWzlXLqMUV6g1LolMkbTVdLetDVSYG4cUjj3y1ms6 0J64YZnwMmpquB4ujrwVpdSR8yJhpPhjwSI/KjWeK5LyBJ4HiCe4l3y6lp8+lgFtiEzU KEEWuF7o2oubBAAuiWcc50rsR10ins5W/OY5PgNe55nybszQaomERVXrOz7oBAdAoYx7 yMVVTyfzN5G/LonN38C3VEzQDghNx9ANgN6pcej6DrJJAFpUyZIaAR6LlxYss7l92RrN 3U+tMUMEXUZTkqIwK8jW8Cz/MK00LgxcMwvhENogcwPC7DEhucr2QmNXeg4sW3AX8KQV ykhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ty25-20020a170907c71900b0093defbd628csi10462102ejc.1043.2023.03.28.00.27.01; Tue, 28 Mar 2023 00:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbjC1H0J (ORCPT + 99 others); Tue, 28 Mar 2023 03:26:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjC1H0H (ORCPT ); Tue, 28 Mar 2023 03:26:07 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44EE013E for ; Tue, 28 Mar 2023 00:26:05 -0700 (PDT) Received: from ramsan.of.borg ([84.195.187.55]) by baptiste.telenet-ops.be with bizsmtp id djS22900B1C8whw01jS2wD; Tue, 28 Mar 2023 09:26:03 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1ph3hm-00F2J5-HC; Tue, 28 Mar 2023 09:26:02 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1ph3iU-004B34-0N; Tue, 28 Mar 2023 09:26:02 +0200 From: Geert Uytterhoeven To: Chuck Lever , Trond Myklebust , Anna Schumaker Cc: linux-nfs@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , kernel test robot , =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH] NFSv4: Fix NFS_V4 select RPCSEC_GSS_KRB5 Date: Tue, 28 Mar 2023 09:25:57 +0200 Message-Id: <42751e1fef65485a5441618bc39735f8b62b3a46.1679988298.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.4 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If CONFIG_CRYPTO=n (e.g. arm/shmobile_defconfig): WARNING: unmet direct dependencies detected for RPCSEC_GSS_KRB5 Depends on [n]: NETWORK_FILESYSTEMS [=y] && SUNRPC [=y] && CRYPTO [=n] Selected by [y]: - NFS_V4 [=y] && NETWORK_FILESYSTEMS [=y] && NFS_FS [=y] As NFSv4 can work without crypto enabled, fix this by making the selection of RPCSEC_GSS_KRB5 conditional on CRYPTO. Fixes: e57d065277387980 ("NFS & NFSD: Update GSS dependencies") Reported-by: kernel test robot Link: https://lore.kernel.org/oe-kbuild-all/202303241307.f6NeW9gZ-lkp@intel.com/ Reported-by: Niklas Söderlund Link: https://lore.kernel.org/r/ZCG6tIoz0VN6d+oy@sleipner.dyn.berto.se Signed-off-by: Geert Uytterhoeven --- Nfsroot ("root=/dev/nfs rw nfsroot=aaa.bbb.ccc.ddd:/path/to/fs,tcp,v4") works fine without CRYPTO and RPCSEC_GSS_KRB5. CONFIG_NFSD_V4 selects CRYPTO, so was not affected by the similar change. --- fs/nfs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/Kconfig b/fs/nfs/Kconfig index 450d6c3bc05e27dd..f05c13ce0155bd69 100644 --- a/fs/nfs/Kconfig +++ b/fs/nfs/Kconfig @@ -75,7 +75,7 @@ config NFS_V3_ACL config NFS_V4 tristate "NFS client support for NFS version 4" depends on NFS_FS - select RPCSEC_GSS_KRB5 + select RPCSEC_GSS_KRB5 if CRYPTO select KEYS help This option enables support for version 4 of the NFS protocol -- 2.34.1