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: <f1ada6bd-5d57-eaf2-f834-9975361b2a21@infradead.org>
Date:   Fri, 15 May 2020 09:54:28 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     LKML <linux-kernel@...r.kernel.org>,
        Linux FS Devel <linux-fsdevel@...r.kernel.org>,
        Al Viro <viro@...IV.linux.org.uk>,
        David Howells <dhowells@...hat.com>
Subject: [PATCH -next] fs: fix namespace.c build error when
 CONFIG_MOUNT_NOTIFICATIONS is not set

From: Randy Dunlap <rdunlap@...radead.org>

Fix build error when CONFIG_MOUNT_NOTIFICATIONS is not set/enabled.

../fs/namespace.c:4320:42: error: 'struct mount' has no member named 'mnt_topology_changes'

Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Alexander Viro <viro@...iv.linux.org.uk>
Cc: David Howells <dhowells@...hat.com>
Cc: linux-fsdevel@...r.kernel.org
---
 fs/namespace.c |    4 ++++
 1 file changed, 4 insertions(+)

--- linux-next-20200515.orig/fs/namespace.c
+++ linux-next-20200515/fs/namespace.c
@@ -4317,7 +4317,11 @@ int fsinfo_generic_mount_topology(struct
 
 	m = real_mount(path->mnt);
 
+#ifdef CONFIG_MOUNT_NOTIFICATIONS
 	p->mnt_topology_changes	= atomic_read(&m->mnt_topology_changes);
+#else
+	p->mnt_topology_changes	= 0;
+#endif
 	p->parent_id = m->mnt_parent->mnt_id;
 
 	if (path->mnt == root.mnt) {

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ