svn commit: r356175 - head/sys/compat/linprocfs
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Dec 29 15:47:00 UTC 2019
Author: trasz
Date: Sun Dec 29 15:46:59 2019
New Revision: 356175
URL: https://svnweb.freebsd.org/changeset/base/356175
Log:
Make linprocfs(5) provide an empty /proc/modules. This should silence
some warnings.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/compat/linprocfs/linprocfs.c
Modified: head/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- head/sys/compat/linprocfs/linprocfs.c Sun Dec 29 15:40:02 2019 (r356174)
+++ head/sys/compat/linprocfs/linprocfs.c Sun Dec 29 15:46:59 2019 (r356175)
@@ -1504,22 +1504,22 @@ linprocfs_dofilesystems(PFS_FILL_ARGS)
return(0);
}
-#if 0
/*
* Filler function for proc/modules
*/
static int
linprocfs_domodules(PFS_FILL_ARGS)
{
+#if 0
struct linker_file *lf;
TAILQ_FOREACH(lf, &linker_files, link) {
sbuf_printf(sb, "%-20s%8lu%4d\n", lf->filename,
(unsigned long)lf->size, lf->refs);
}
+#endif
return (0);
}
-#endif
/*
* Filler function for proc/pid/fd
@@ -1713,10 +1713,8 @@ linprocfs_init(PFS_INIT_ARGS)
NULL, NULL, NULL, PFS_RD);
pfs_create_file(root, "meminfo", &linprocfs_domeminfo,
NULL, NULL, NULL, PFS_RD);
-#if 0
pfs_create_file(root, "modules", &linprocfs_domodules,
NULL, NULL, NULL, PFS_RD);
-#endif
pfs_create_file(root, "mounts", &linprocfs_domtab,
NULL, NULL, NULL, PFS_RD);
pfs_create_file(root, "mtab", &linprocfs_domtab,
More information about the svn-src-all
mailing list