public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] mm/shmem.c: make a struct static
@ 2004-12-12 19:58 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2004-12-12 19:58 UTC (permalink / raw)
  To: linux-kernel

The patch below makes a needlessly global struct static.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc2-mm4-full/mm/shmem.c.old	2004-12-12 03:53:52.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/mm/shmem.c	2004-12-12 03:54:00.000000000 +0100
@@ -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,


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] mm/shmem.c: make a struct static
@ 2005-01-21 10:08 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-01-21 10:08 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

This patch makes a needlessly global struct static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 12 Dec 2004

--- linux-2.6.10-rc2-mm4-full/mm/shmem.c.old	2004-12-12 03:53:52.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/mm/shmem.c	2004-12-12 03:54:00.000000000 +0100
@@ -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,


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-21 10:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-21 10:08 [2.6 patch] mm/shmem.c: make a struct static Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2004-12-12 19:58 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox