From patchwork Mon Jul 10 11:21:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 107290 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp3277969qge; Mon, 10 Jul 2017 04:22:33 -0700 (PDT) X-Received: by 10.84.138.131 with SMTP id 3mr17622973plp.293.1499685753320; Mon, 10 Jul 2017 04:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499685753; cv=none; d=google.com; s=arc-20160816; b=DOyx0HQJIJsXz65JXz0GIISKq1OKZRwoTjSvr7BfYmeAggGMOVtSm2JmKDLPIqdvyM m/RDAg2o1Wyto1uWZRcPWMujFTrUM/3Wzm8/mxUt7g2VWO19rxUEsXG2ormCdvIJitiu mxOnn7easNig6F3uAq7ZD516Msu4rMqKtGuyuzilsJ2l25a3ADLERghVNBwxYYOpi/ae KxB05DwZue6rdNYdhT3JZ6gjYtkpTGMobXMve/RWFWDXhaAwIpMTLmSf8CQeyrUcoVUA ZzLQY5p5anfH83woMrXg4hgJzoW4O0YI5DZGMSlxjzR/VJ0m8MVYS15mAPJB5B7aqYOu gvTA== 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 :arc-authentication-results; bh=j54ItL/ZJmodDtgcJon28qtVO0OXs8076E4OuOFRK+o=; b=vPQwxlj1CJSD4empq4cI708bWmUxmNvtSlrO2s+8ss+K/xN4YWKONi2CYqn9TwLqi+ SR069K1Hn89kpFTgZYWewqRu4YbOz8SD6oReu7Thpnv77EGWoazpBoE5rfDjnLZnGSoX 4SrXg4ghZMwEOQj/EOob/mI6N1pRQ+1bY+N+F6/HTdr4Ml1ZmxnaSTGWIlPnwEeeYiHD t0728XTM0vRavrxKVBM7tclNSlUaJJtQkFcAjgxVZwh74IxmMHWomhqhOZ0ArjpSNYzT SKlBsP48EIGdIjDcTrWsG73EbNyzBz/u2rJVhh7ZWqeuTQZYHHGpnqaK2JwPPOSvCdRH DeAA== 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 w129si7752735pfw.229.2017.07.10.04.22.32; Mon, 10 Jul 2017 04:22:33 -0700 (PDT) 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 S1753833AbdGJLWa (ORCPT + 25 others); Mon, 10 Jul 2017 07:22:30 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58355 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753508AbdGJLW3 (ORCPT ); Mon, 10 Jul 2017 07:22:29 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0M0sl5-1dogDC3aDn-00v5C0; Mon, 10 Jul 2017 13:21:58 +0200 From: Arnd Bergmann To: Al Viro Cc: Arnd Bergmann , Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , Ingo Molnar , Jens Axboe , David Howells , Jan Kara , v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] 9p: hide cachetag option for non-CONFIG_9P_FSCACHE Date: Mon, 10 Jul 2017 13:21:41 +0200 Message-Id: <20170710112154.940606-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:1CQuG37uU7fJgR0P1GxbQdYTgghtU+xoT12BE6EEfqMU4C4wxFd t+XjyWmzSZ/Er1m/cIc12NKJAMqXORS1INs9ao0Nm5BeMupL4/qUTQPirQnEQll94AHKPi5 Qr1PqswbVj+EW4YQxYajveXBb+ncLSI2853mvS0LO4IBSpslc/DTZvPXrWkQqrz6sdfmFW3 e0mpwuz/mkwjuMO7hPRQQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:NQxM/2KQ6CU=:7XnZxQYv7G3l9GdJMyeISc nOdDPqoTcyeEgfM6JFFMcrFYex6ccBxOw7soaFH70T8PI9PEPU+QNg8goYTj/ZPAZVCS1Uti8 zzhrXGQws26374G0BkZDF8f6ly66mh1kDYW4CIlpwjoRhs3AJ8b556s95RDzuLbJLCX/MwlyV eQPdclSoJf1/vLMWSFuExKvfjmaXTjSq6k/NklPLIMJ485znA/q9L4aKXcPIufnwwstIxyUzS eGD5H0FSIV9q/MeamF2GZlToAkjFx0zB/pQ0MfmX5JXcTkAXp7XDewrrFiNZC/8yEy0WE6c61 edyuG0V2uwsj6NQi3wxZ2nl3759fYq3nMCda/BP1JHRaDW+AcYTW4Ss8aYlpVIqSfWuTBEbEj A0dA2Vlo48iy/IlsT831f3bV8qyMolJ2qAcdHtVl/M4yJlwXyt9cM3ANYzpa7rVrxTiB04LJ9 Xpi2M02z30Qbge3QXRtOR6eKAjtiWyiLU+J4BVxCGvlpuTSCMNSH+K2Vvrqb9V8p17aLUqLpD kF0Bgxg1V2i5hRJp9vRc/qLnU5dSJAGa67UHr434AzMN3HdAb+Jnd/RXVuSBS/tlcvzHmsR8T qOFPxKZ/G1PgeNcYADqOqQDR6y9JsM4CZ37SQ0qWSCz5+WTrOBvd8etp4Wy1ZEj7OYBiJoEMP zKTebYjdnN079pz6EKEXbkN3pZpHioec/rM62H/n4x297N7tC+dQB19A5ffnt9+cRNA8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org show_options cannot print this option when it is disabled in Kconfig: fs/9p/v9fs.c: In function 'v9fs_show_options': fs/9p/v9fs.c:140:13: error: 'struct v9fs_session_info' has no member named 'cachetag'; did you mean 'cache'? Fixes: ccb0055985b9 ("9p: Implement show_options") Signed-off-by: Arnd Bergmann --- fs/9p/v9fs.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 Acked-by: David Howells diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index d69046650a36..8fb89ddc6cc7 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c @@ -137,8 +137,10 @@ int v9fs_show_options(struct seq_file *m, struct dentry *root) seq_puts(m, ",nodevmap"); if (v9ses->cache) seq_printf(m, ",%s", v9fs_cache_modes[v9ses->cache]); +#ifdef CONFIG_9P_FSCACHE if (v9ses->cachetag && v9ses->cache == CACHE_FSCACHE) seq_printf(m, ",cachetag=%s", v9ses->cachetag); +#endif switch (v9ses->flags & V9FS_ACCESS_MASK) { case V9FS_ACCESS_USER: