Skip to contentSkip to conversation

mm/shmem.c: make a struct static

PATCH New Adrian Bunk 1 participant 1 message Dec 12, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/shmem.c: make a struct static

The patch below makes a needlessly global struct static.

mm/shmem.c renamed from mm/shmem.c.old +1 -1
@@ -2163,7 +2163,7 @@
 	return security_inode_setsecurity(inode, name, value, size, flags);
 }
 
-struct xattr_handler shmem_xattr_security_handler = {
+static struct xattr_handler shmem_xattr_security_handler = {
 	.prefix	= XATTR_SECURITY_PREFIX,
 	.list	= shmem_xattr_security_list,
 	.get	= shmem_xattr_security_get,