linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] fs/hugetlbfs/inode.c: make 4 functions static
@ 2005-01-07  1:29 Adrian Bunk
  2005-01-07  1:32 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-01-07  1:29 UTC (permalink / raw)
  To: wli; +Cc: linux-kernel

The patch below makes four needlessly global functions static.


diffstta output:
 fs/hugetlbfs/inode.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


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

--- linux-2.6.10-mm2-full/fs/hugetlbfs/inode.c.old	2005-01-07 00:54:42.000000000 +0100
+++ linux-2.6.10-mm2-full/fs/hugetlbfs/inode.c	2005-01-07 00:55:32.000000000 +0100
@@ -168,7 +168,7 @@
 	return -EINVAL;
 }
 
-void huge_pagevec_release(struct pagevec *pvec)
+static void huge_pagevec_release(struct pagevec *pvec)
 {
 	int i;
 
@@ -178,7 +178,7 @@
 	pagevec_reinit(pvec);
 }
 
-void truncate_huge_page(struct page *page)
+static void truncate_huge_page(struct page *page)
 {
 	clear_page_dirty(page);
 	ClearPageUptodate(page);
@@ -186,7 +186,7 @@
 	put_page(page);
 }
 
-void truncate_hugepages(struct address_space *mapping, loff_t lstart)
+static void truncate_hugepages(struct address_space *mapping, loff_t lstart)
 {
 	const pgoff_t start = lstart >> HPAGE_SHIFT;
 	struct pagevec pvec;
@@ -495,7 +495,7 @@
 /*
  * For direct-IO reads into hugetlb pages
  */
-int hugetlbfs_set_page_dirty(struct page *page)
+static int hugetlbfs_set_page_dirty(struct page *page)
 {
 	return 0;
 }


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

* Re: [2.6 patch] fs/hugetlbfs/inode.c: make 4 functions static
  2005-01-07  1:29 [2.6 patch] fs/hugetlbfs/inode.c: make 4 functions static Adrian Bunk
@ 2005-01-07  1:32 ` William Lee Irwin III
  0 siblings, 0 replies; 2+ messages in thread
From: William Lee Irwin III @ 2005-01-07  1:32 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

On Fri, Jan 07, 2005 at 02:29:00AM +0100, Adrian Bunk wrote:
> The patch below makes four needlessly global functions static.
> diffstta output:
>  fs/hugetlbfs/inode.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Acked-by: William Irwin <wli@holomorphy.com>


-- wli

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

end of thread, other threads:[~2005-01-07  1:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-07  1:29 [2.6 patch] fs/hugetlbfs/inode.c: make 4 functions static Adrian Bunk
2005-01-07  1:32 ` William Lee Irwin III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).