lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1590755301-26094-1-git-send-email-anupam.al@samsung.com>
Date:   Fri, 29 May 2020 17:58:21 +0530
From:   Anupam Aggarwal <anupam.al@...sung.com>
To:     viro@...iv.linux.org.uk, linux@...inikbrodowski.net, pc@....nz,
        dhowells@...hat.com
Cc:     a.sahrawat@...sung.com, t.vivek@...sung.com,
        linux-kernel@...r.kernel.org,
        Anupam Aggarwal <anupam.al@...sung.com>
Subject: [PATCH] init: include nfs header files when CONFIG_ROOT_NFS is
 enabled

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@...sung.com>
Signed-off-by: Vivek Trivedi <t.vivek@...sung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@...sung.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ