Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2021 05:10:45 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 33c122e9190b - stable/12 - tmpfs: make M_TMPFSMNT static to tmpfs_vfsops.c
Message-ID:  <202101170510.10H5AjFm046219@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=33c122e9190bd3ed96656253a750031aa500b954

commit 33c122e9190bd3ed96656253a750031aa500b954
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-01-05 18:52:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-01-17 04:46:45 +0000

    tmpfs: make M_TMPFSMNT static to tmpfs_vfsops.c
    
    (cherry picked from commit 42bebbda9ed13d12d0454b676aa81f34b39e496f)
---
 sys/fs/tmpfs/tmpfs.h        | 1 -
 sys/fs/tmpfs/tmpfs_vfsops.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/fs/tmpfs/tmpfs.h b/sys/fs/tmpfs/tmpfs.h
index 3872cd1c0b13..ec920f8b0537 100644
--- a/sys/fs/tmpfs/tmpfs.h
+++ b/sys/fs/tmpfs/tmpfs.h
@@ -42,7 +42,6 @@
 #include <sys/tree.h>
 
 #ifdef	_SYS_MALLOC_H_
-MALLOC_DECLARE(M_TMPFSMNT);
 MALLOC_DECLARE(M_TMPFSNAME);
 #endif
 
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c
index c9c211dca002..219ec9ee69f2 100644
--- a/sys/fs/tmpfs/tmpfs_vfsops.c
+++ b/sys/fs/tmpfs/tmpfs_vfsops.c
@@ -76,7 +76,7 @@ __FBSDID("$FreeBSD$");
  */
 #define TMPFS_DEFAULT_ROOT_MODE	(S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)
 
-MALLOC_DEFINE(M_TMPFSMNT, "tmpfs mount", "tmpfs mount structures");
+static MALLOC_DEFINE(M_TMPFSMNT, "tmpfs mount", "tmpfs mount structures");
 MALLOC_DEFINE(M_TMPFSNAME, "tmpfs name", "tmpfs file names");
 
 static int	tmpfs_mount(struct mount *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101170510.10H5AjFm046219>