All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: [7/7] hugetlb: make private functions static
Date: Tue, 05 Nov 2002 18:30:20 -0800	[thread overview]
Message-ID: <E189FxU-0002ZQ-00@holomorphy> (raw)

This patch makes various private structures and procedures static.

 hugetlbpage.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


diff -urpN hugetlbfs-2.5.46-5/arch/i386/mm/hugetlbpage.c hugetlbfs-2.5.46-6/arch/i386/mm/hugetlbpage.c
--- hugetlbfs-2.5.46-5/arch/i386/mm/hugetlbpage.c	2002-11-05 13:59:05.000000000 -0800
+++ hugetlbfs-2.5.46-6/arch/i386/mm/hugetlbpage.c	2002-11-05 14:02:05.000000000 -0800
@@ -18,16 +18,16 @@
 #include <asm/tlb.h>
 #include <asm/tlbflush.h>
 
-long    htlbpagemem = 0;
+static long    htlbpagemem;
 int     htlbpage_max;
-long    htlbzone_pages;
+static long    htlbzone_pages;
 
 struct vm_operations_struct hugetlb_vm_ops;
 static LIST_HEAD(htlbpage_freelist);
 static spinlock_t htlbpage_lock = SPIN_LOCK_UNLOCKED;
 
 #define MAX_ID 	32
-struct htlbpagekey {
+static struct htlbpagekey {
 	struct inode *in;
 	int key;
 } htlbpagek[MAX_ID];
@@ -109,7 +109,7 @@ static int anon_get_hugetlb_page(struct 
 	return page ? 1 : -1;
 }
 
-int make_hugetlb_pages_present(unsigned long addr, unsigned long end, int flags)
+static int make_hugetlb_pages_present(unsigned long addr, unsigned long end, int flags)
 {
 	int write;
 	struct mm_struct *mm = current->mm;

             reply	other threads:[~2002-11-06  2:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-06  2:30 William Lee Irwin III [this message]
2002-11-06  6:26 ` hugetlb: No coalescing of adjacent mappings in /proc/pid/maps dada1

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E189FxU-0002ZQ-00@holomorphy \
    --to=wli@holomorphy.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.