Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp331360imu; Mon, 5 Nov 2018 01:25:34 -0800 (PST) X-Google-Smtp-Source: AJdET5dOXtLOm3k9djQHI/VYOwE6Ly7SAdTa3+8UZ2GWAxjqo3dhA4AZg4CueY4LxQwsXdGWNFVg X-Received: by 2002:a63:31d0:: with SMTP id x199mr19242271pgx.10.1541409934010; Mon, 05 Nov 2018 01:25:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541409933; cv=none; d=google.com; s=arc-20160816; b=r5dUjRXQD9Dx+a3rMHOTtiHnQ4162mJuiPwAcf4tcd0Hyxozf8UVHi0r4jOPY+d3TT rbbUtUejmTymz0xK8P7lK2GmVVEY/G3nwR44tmIIqmioKZsuol1aRxpjc6fcDNnof88/ 4ViMDA/gcWfuB0EevWZNU5VpwLWttpH7HtioBH+jHng7DFi4tgtCVCXjhTEq1+sEB8Lg IFksd2gnJnlP6he7eZr0g3V+lELpU/2wv5srDKqKdeHomITTInG35FCbheNL/rclTkGa xt235ZnHSQPeNcTWyX/VTr2TEd9fb4NFjqZEeXSlHHLXMnC9XAdGblzvAMMXNGY518F+ qNWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=eYs63gj4pDYcDY1AxnRQty6W9GeizLB8Pf/xws8CMcg=; b=y0Sol8067lRjnr29GAi4lX8pgWZk1zOXiQtJ+qNKxuMU3r5zIy8sy/5CCRN6H3fAoM RyHFapgjnNEkP6nIBvgI7npVxy78/lfiRrLry0Rbgv/tKUVylDIuUm6Y/XP1+QOCor8R DjIsUvMesfHVvrB5Qi+Vf3m2YizexeTPJCFAcaoYp7dVvjpp5HO4z8FYV9xjQdER3x9V 4UPPco3i7udRkfJc0SSsqheXSk2qfYwXXW4jGEtQqfCH7OevC5IhjPI21t/EK47SCLsj erOroHBZE2JR8YD1l6eq9HSQY3devzeHAoZX+A9NbM36S3DH/kIyaZudiTA0wgnn9eHf qGRg== ARC-Authentication-Results: i=1; mx.google.com; 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 q4-v6si43401807pgj.417.2018.11.05.01.25.17; Mon, 05 Nov 2018 01:25:33 -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; 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 S1727094AbeKESnn (ORCPT + 99 others); Mon, 5 Nov 2018 13:43:43 -0500 Received: from xavier.telenet-ops.be ([195.130.132.52]:34664 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbeKESnn (ORCPT ); Mon, 5 Nov 2018 13:43:43 -0500 Received: from ramsan.of.borg ([84.194.111.163]) by xavier.telenet-ops.be with bizsmtp id w9Qu1y00X3XaVaC019QuHn; Mon, 05 Nov 2018 10:24:55 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1gJb7u-0001MD-HA; Mon, 05 Nov 2018 10:24:54 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1gJaCb-0005Wl-Lr; Mon, 05 Nov 2018 09:25:41 +0100 From: Geert Uytterhoeven To: Sascha Hauer , Richard Weinberger , Artem Bityutskiy , Adrian Hunter Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] ubifs: CONFIG_UBIFS_FS_AUTHENTICATION should depend on UBIFS_FS Date: Mon, 5 Nov 2018 09:25:40 +0100 Message-Id: <20181105082540.21205-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of adding yet another dependency on UBIFS_FS, wrap the whole block of ubifs config options in a single "if UBIFS_FS". Fixes: d8a22773a12c6d78 ("ubifs: Enable authentication support") Signed-off-by: Geert Uytterhoeven --- fs/ubifs/Kconfig | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig index 529856fbccd0ee5f..3ee613361f4eeded 100644 --- a/fs/ubifs/Kconfig +++ b/fs/ubifs/Kconfig @@ -12,9 +12,10 @@ config UBIFS_FS help UBIFS is a file system for flash devices which works on top of UBI. +if UBIFS_FS + config UBIFS_FS_ADVANCED_COMPR bool "Advanced compression options" - depends on UBIFS_FS help This option allows to explicitly choose which compressions, if any, are enabled in UBIFS. Removing compressors means inability to read @@ -24,7 +25,6 @@ config UBIFS_FS_ADVANCED_COMPR config UBIFS_FS_LZO bool "LZO compression support" if UBIFS_FS_ADVANCED_COMPR - depends on UBIFS_FS default y help LZO compressor is generally faster than zlib but compresses worse. @@ -32,14 +32,12 @@ config UBIFS_FS_LZO config UBIFS_FS_ZLIB bool "ZLIB compression support" if UBIFS_FS_ADVANCED_COMPR - depends on UBIFS_FS default y help Zlib compresses better than LZO but it is slower. Say 'Y' if unsure. config UBIFS_ATIME_SUPPORT - bool "Access time support" if UBIFS_FS - depends on UBIFS_FS + bool "Access time support" default n help Originally UBIFS did not support atime, because it looked like a bad idea due @@ -54,7 +52,6 @@ config UBIFS_ATIME_SUPPORT config UBIFS_FS_XATTR bool "UBIFS XATTR support" - depends on UBIFS_FS default y help Saying Y here includes support for extended attributes (xattrs). @@ -65,7 +62,7 @@ config UBIFS_FS_XATTR config UBIFS_FS_ENCRYPTION bool "UBIFS Encryption" - depends on UBIFS_FS && UBIFS_FS_XATTR && BLOCK + depends on UBIFS_FS_XATTR && BLOCK select FS_ENCRYPTION default n help @@ -76,7 +73,7 @@ config UBIFS_FS_ENCRYPTION config UBIFS_FS_SECURITY bool "UBIFS Security Labels" - depends on UBIFS_FS && UBIFS_FS_XATTR + depends on UBIFS_FS_XATTR default y help Security labels provide an access control facility to support Linux @@ -96,3 +93,5 @@ config UBIFS_FS_AUTHENTICATION If you say yes here you should also select a hashing algorithm such as sha256, these are not selected automatically since there are many different options. + +endif # UBIFS_FS -- 2.17.1