lkml.org 
[lkml]   [2020]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] init: include nfs header files when CONFIG_ROOT_NFS is enabled
Date
Move inclusion of header files linux/nfs_fs.h, linux/nfs_fs_sb.h &
linux/nfs_mount.h under config CONFIG_ROOT_NFS

Signed-off-by: Anupam Aggarwal <anupam.al@samsung.com>
Signed-off-by: Vivek Trivedi <t.vivek@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
---
init/do_mounts.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/init/do_mounts.c b/init/do_mounts.c
index 29d326b..02baec4 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -20,9 +20,11 @@
#include <linux/ramfs.h>
#include <linux/shmem_fs.h>

+#ifdef CONFIG_ROOT_NFS
#include <linux/nfs_fs.h>
#include <linux/nfs_fs_sb.h>
#include <linux/nfs_mount.h>
+#endif
#include <uapi/linux/mount.h>

#include "do_mounts.h"
--
1.9.1
\
 
 \ /
  Last update: 2020-05-29 14:37    [W:0.036 / U:1.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site