login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
25
Re: [PATCH] mm: hugetlb.c make functions static, use NULL rather than 0
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Hugh Dickins
Subject:
Re: [PATCH] mm: hugetlb.c make functions static, use NULL rather than 0
Date: Monday, August 25, 2008 - 2:27 am
On Fri, 22 Aug 2008, Harvey Harrison wrote:
quoted text
> mm/hugetlb.c:265:17: warning: symbol 'resv_map_alloc' was not declared. Should it be static? > mm/hugetlb.c:277:6: warning: symbol 'resv_map_release' was not declared. Should it be static? > mm/hugetlb.c:292:9: warning: Using plain integer as NULL pointer > mm/hugetlb.c:1750:5: warning: symbol 'unmap_ref_private' was not declared. Should it be static? > > Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
This all looks good to me, but guess you sent it my way because you mistook it for mm/hughtlb.c? Cc'ed Andy, he's the man here! Hugh
quoted text
> --- > mm/hugetlb.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 67a7119..b548a94 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -262,7 +262,7 @@ struct resv_map { > struct list_head regions; > }; > > -struct resv_map *resv_map_alloc(void) > +static struct resv_map *resv_map_alloc(void) > { > struct resv_map *resv_map = kmalloc(sizeof(*resv_map), GFP_KERNEL); > if (!resv_map) > @@ -274,7 +274,7 @@ struct resv_map *resv_map_alloc(void) > return resv_map; > } > > -void resv_map_release(struct kref *ref) > +static void resv_map_release(struct kref *ref) > { > struct resv_map *resv_map = container_of(ref, struct resv_map, refs); > > @@ -289,7 +289,7 @@ static struct resv_map *vma_resv_map(struct vm_area_struct *vma) > if (!(vma->vm_flags & VM_SHARED)) > return (struct resv_map *)(get_vma_private_data(vma) & > ~HPAGE_RESV_MASK); > - return 0; > + return NULL; > } > > static void set_vma_resv_map(struct vm_area_struct *vma, struct resv_map *map) > @@ -1747,7 +1747,7 @@ void unmap_hugepage_range(struct vm_area_struct *vma, unsigned long start, > * from other VMAs and let the children be SIGKILLed if they are faulting the > * same region. > */ > -int unmap_ref_private(struct mm_struct *mm, > +static int unmap_ref_private(struct mm_struct *mm, > struct vm_area_struct *vma, > struct page *page, > unsigned long address) > -- > 1.6.0.340.g84854
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] mm: hugetlb.c make functions static, use NULL rath ...
, Harvey Harrison
, (Fri Aug 22, 3:47 pm)
Re: [PATCH] mm: hugetlb.c make functions static, use NULL ...
, Hugh Dickins
, (Mon Aug 25, 2:27 am)
Re: [PATCH] mm: hugetlb.c make functions static, use NULL ...
, Andy Whitcroft
, (Fri Aug 29, 1:29 am)
Re: [PATCH] mm: hugetlb.c make functions static, use NULL ...
, Andrew Morton
, (Fri Aug 29, 1:48 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Thomas Gleixner
[ANNOUNCE] 2.6.31-rc6-rt2
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
git
:
Blaisorblade
git-unpack-objects < pack file in repository doesn't work!
Matthieu Moy
Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
Linus Torvalds
Re: Untracked working tree files
Peter Karlsson
Re: CRLF problems with Git on Win32
Johannes Schindelin
Re: [PATCH 4/4] git-rebase -i: New option to support rebase with merges
linux-netdev
:
Alan Menegotto
Re: Linux networking implementation and packet capture
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: [PATCH]: Fix queueing return values...
David Miller
Re: [PATCH 1/2] netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
git-commits-head
:
Linux Kernel Mailing List
Blackfin: don't give CPU its own line in traps output
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
powerpc: gamecube/wii: usbgecko bootwrapper console support
openbsd-misc
:
Aaron Mason
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Christiano Farina Haesbaert
Re: Defending OpenBSD Performance
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate