From patchwork Fri Dec 16 08:42:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101417 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1279327qgi; Fri, 16 Dec 2016 00:43:29 -0800 (PST) X-Received: by 10.98.219.5 with SMTP id f5mr1923467pfg.131.1481877809074; Fri, 16 Dec 2016 00:43:29 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id 3si6707026pln.317.2016.12.16.00.43.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Dec 2016 00:43:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cHo6e-0007qT-FJ; Fri, 16 Dec 2016 08:43:08 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cHo6a-0007mb-BH for linux-mtd@lists.infradead.org; Fri, 16 Dec 2016 08:43:05 +0000 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0MCdN8-1cQ1Yh28fa-009OvX; Fri, 16 Dec 2016 09:42:33 +0100 From: Arnd Bergmann To: Richard Weinberger Subject: [PATCH] ubifs: add CONFIG_BLOCK dependency for encryption Date: Fri, 16 Dec 2016 09:42:16 +0100 Message-Id: <20161216084231.1637761-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:FQlgeEEkRFKhCy46U+qrm7OL+Z+HcR4x1ImNXSjr3De07mvQzPG 7pdASXeYGuz0wbSNWp/rlir/T9+tS1VuPKfKKgZbfNYwWB62jQummSydc7g3daRuNbXuzw6 XX1FbcUiP0S5Q4YNMhAK/nGhJ46932J3lL7Ox6IAOuNpBTY+FLJoZ03xNbGOTzJT5qgphFS oKEUITwN9YfhWTFkdv6QA== X-UI-Out-Filterresults: notjunk:1; V01:K0:f85aYLvCInA=:6g+Boe8iU2MawuGorWYmOH MJQ7LIrM6mgQM2gIRemwJnu39pTbEkoLc1l+wAQQT4MxK1rqgk1s9V0TA1RS20kOTiTehgyJs r51W6npXbx1VdmSVFo8DdsBX8qSssL+aPDZqXuoIAd86jG9BLEjacA/HGjz5rbEOAyLqztC6V BkaTWQw7o1sdtzfbd+rB7h6eBCcO8D2BUFXwAB4YklCiEWA4e3E0JYHDNPt0vYncFdmXePRl9 8MTIOZQwJEu+wy4H/HwSUMF+I1/gdaguSp4fsPZgdqaEN0fISK+XFEaHH3ED7lvyEl84kM18c FsO8DBHTrZMbB78/8rkgwuYcmWzimJ1D68zWASRYDwnofoDlc522syas0dtil40V1yC5dV64M 5Wh4FtpFB5UG5IpcnNEjrjhAW75fPoLDExOGG3XhFmFNNT4/9NtAaaUkgr7jRNCknj/IAzGXI OL/VhZ71QQEfJZyeg2iMdlMwFGSL0Xfc6rP8dZFPqE4N/MQXZbSgi8eb1r9Upqjz+B5YeeYsK +B56sDCJlGBiGgXIppJ6y0A1EdVhRv9O6cEVF6KP/EUCecIxaiGW/BgfJi8bVlR/GnI4YytW5 N3c48orPSMaW0sa3CRjtVafPYkk5WdN8/Jq4s6jRVdFqDwy5HmIySxhi475FDwL8o1+yidf6+ gQHLzP0GUB70FaY+m/2Kd2COF7LqlQ5Z1IRWfRzpxLQ25ArxILhmGzV/RNerqUwXVInk= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161216_004304_783412_08D969DD X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.187 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.187 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Adrian Hunter , Arnd Bergmann , Artem Bityutskiy MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This came up during the v4.10 merge window: warning: (UBIFS_FS_ENCRYPTION) selects FS_ENCRYPTION which has unmet direct dependencies (BLOCK) fs/crypto/crypto.c: In function 'fscrypt_zeroout_range': fs/crypto/crypto.c:355:9: error: implicit declaration of function 'bio_alloc';did you mean 'd_alloc'? [-Werror=implicit-function-declaration] bio = bio_alloc(GFP_NOWAIT, 1); The easiest way out is to limit UBIFS_FS_ENCRYPTION to configurations that also enable BLOCK. Fixes: d475a507457b ("ubifs: Add skeleton for fscrypto") Signed-off-by: Arnd Bergmann --- fs/ubifs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig index 0a908ae7af13..b0d0623c83ed 100644 --- a/fs/ubifs/Kconfig +++ b/fs/ubifs/Kconfig @@ -53,7 +53,7 @@ config UBIFS_ATIME_SUPPORT config UBIFS_FS_ENCRYPTION bool "UBIFS Encryption" - depends on UBIFS_FS + depends on UBIFS_FS && BLOCK select FS_ENCRYPTION default n help