svn commit: r364208 - stable/12/sys/compat/linprocfs

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Aug 13 18:51:58 UTC 2020


Author: trasz
Date: Thu Aug 13 18:51:57 2020
New Revision: 364208
URL: https://svnweb.freebsd.org/changeset/base/364208

Log:
  MFC r356175:
  
  Make linprocfs(5) provide an empty /proc/modules.  This should silence
  some warnings.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/12/sys/compat/linprocfs/linprocfs.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- stable/12/sys/compat/linprocfs/linprocfs.c	Thu Aug 13 18:50:32 2020	(r364207)
+++ stable/12/sys/compat/linprocfs/linprocfs.c	Thu Aug 13 18:51:57 2020	(r364208)
@@ -1510,22 +1510,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
@@ -1719,10 +1719,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-stable-12 mailing list