* Re: [tip:x86/mm] Generic page_is_ram: use __weak [not found] <tip-e52730071567ec5b6f57e21d6693b112e01e1d0e@git.kernel.org> @ 2010-02-02 1:24 ` Andrew Morton 2010-02-02 1:37 ` H. Peter Anvin 0 siblings, 1 reply; 4+ messages in thread From: Andrew Morton @ 2010-02-02 1:24 UTC (permalink / raw) To: linux-kernel, mingo, hpa, akpm, tglx, fengguang.wu Cc: linux-tip-commits, hpa, mingo, tglx, fengguang.wu On Tue, 2 Feb 2010 01:00:51 GMT tip-bot for Andrew Morton <akpm@linux-foundation.org> wrote: > Commit-ID: e52730071567ec5b6f57e21d6693b112e01e1d0e > Gitweb: http://git.kernel.org/tip/e52730071567ec5b6f57e21d6693b112e01e1d0e > Author: Andrew Morton <akpm@linux-foundation.org> > AuthorDate: Tue, 26 Jan 2010 16:31:19 -0800 > Committer: H. Peter Anvin <hpa@zytor.com> > CommitDate: Mon, 1 Feb 2010 16:58:17 -0800 > > Generic page_is_ram: use __weak > > Use __weak instead of __attribute__((weak)). > > Cc: Wu Fengguang <fengguang.wu@intel.com> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > Signed-off-by: H. Peter Anvin <hpa@zytor.com> > --- > kernel/resource.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kernel/resource.c b/kernel/resource.c > index b4d637a..e68cd74 100644 > --- a/kernel/resource.c > +++ b/kernel/resource.c > @@ -305,7 +305,7 @@ static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) > * This generic page_is_ram() returns true if specified address is > * registered as "System RAM" in iomem_resource list. > */ > -int __attribute__((weak)) page_is_ram(unsigned long pfn) > +int __weak page_is_ram(unsigned long pfn) > { > return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; > } hm, it's strange to do this as two separate commits? There was another fixlet: From: Wu Fengguang <fengguang.wu@intel.com> ioport.h didn't seem like the right place to declare page_is_ram(). Signed-off-by: Andrew Morton <akpm@linux-foundation.org> --- include/linux/ioport.h | 2 -- include/linux/mm.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/ioport.h~resources-introduce-generic-page_is_ram-fix-2 include/linux/ioport.h --- a/include/linux/ioport.h~resources-introduce-generic-page_is_ram-fix-2 +++ a/include/linux/ioport.h @@ -191,7 +191,5 @@ extern int walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, void *arg, int (*func)(unsigned long, unsigned long, void *)); -extern int page_is_ram(unsigned long pfn); - #endif /* __ASSEMBLY__ */ #endif /* _LINUX_IOPORT_H */ diff -puN include/linux/mm.h~resources-introduce-generic-page_is_ram-fix-2 include/linux/mm.h --- a/include/linux/mm.h~resources-introduce-generic-page_is_ram-fix-2 +++ a/include/linux/mm.h @@ -265,6 +265,8 @@ static inline int get_page_unless_zero(s return atomic_inc_not_zero(&page->_count); } +extern int page_is_ram(unsigned long pfn); + /* Support for virtually mapped pages */ struct page *vmalloc_to_page(const void *addr); unsigned long vmalloc_to_pfn(const void *addr); _ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [tip:x86/mm] Generic page_is_ram: use __weak 2010-02-02 1:24 ` [tip:x86/mm] Generic page_is_ram: use __weak Andrew Morton @ 2010-02-02 1:37 ` H. Peter Anvin 2010-02-02 1:55 ` Andrew Morton 0 siblings, 1 reply; 4+ messages in thread From: H. Peter Anvin @ 2010-02-02 1:37 UTC (permalink / raw) To: Andrew Morton; +Cc: linux-kernel, mingo, tglx, fengguang.wu, linux-tip-commits On 02/01/2010 05:24 PM, Andrew Morton wrote: >> >> diff --git a/kernel/resource.c b/kernel/resource.c >> index b4d637a..e68cd74 100644 >> --- a/kernel/resource.c >> +++ b/kernel/resource.c >> @@ -305,7 +305,7 @@ static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) >> * This generic page_is_ram() returns true if specified address is >> * registered as "System RAM" in iomem_resource list. >> */ >> -int __attribute__((weak)) page_is_ram(unsigned long pfn) >> +int __weak page_is_ram(unsigned long pfn) >> { >> return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; >> } > > hm, it's strange to do this as two separate commits? > You had it as a separate fix patch, and I generally don't want to fold patches which have different authorship, especially if the original code doesn't actually break anything. > There was another fixlet: > > From: Wu Fengguang <fengguang.wu@intel.com> > > ioport.h didn't seem like the right place to declare page_is_ram(). > > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Yes, I have that one too. -hpa ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [tip:x86/mm] Generic page_is_ram: use __weak 2010-02-02 1:37 ` H. Peter Anvin @ 2010-02-02 1:55 ` Andrew Morton 2010-02-02 1:59 ` H. Peter Anvin 0 siblings, 1 reply; 4+ messages in thread From: Andrew Morton @ 2010-02-02 1:55 UTC (permalink / raw) To: H. Peter Anvin; +Cc: linux-kernel, mingo, tglx, fengguang.wu, linux-tip-commits On Mon, 01 Feb 2010 17:37:23 -0800 "H. Peter Anvin" <hpa@zytor.com> wrote: > On 02/01/2010 05:24 PM, Andrew Morton wrote: > >> > >> diff --git a/kernel/resource.c b/kernel/resource.c > >> index b4d637a..e68cd74 100644 > >> --- a/kernel/resource.c > >> +++ b/kernel/resource.c > >> @@ -305,7 +305,7 @@ static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) > >> * This generic page_is_ram() returns true if specified address is > >> * registered as "System RAM" in iomem_resource list. > >> */ > >> -int __attribute__((weak)) page_is_ram(unsigned long pfn) > >> +int __weak page_is_ram(unsigned long pfn) > >> { > >> return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; > >> } > > > > hm, it's strange to do this as two separate commits? > > > > You had it as a separate fix patch, and I generally don't want to fold > patches which have different authorship, especially if the original code > doesn't actually break anything. Nobody's complained so far: y:/usr/src/git26> git log | grep '\[.*@.*:' | wc -l 2434 It's a tradeoff between being nice to authors versus tree-cleanliness and bisectability. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [tip:x86/mm] Generic page_is_ram: use __weak 2010-02-02 1:55 ` Andrew Morton @ 2010-02-02 1:59 ` H. Peter Anvin 0 siblings, 0 replies; 4+ messages in thread From: H. Peter Anvin @ 2010-02-02 1:59 UTC (permalink / raw) To: Andrew Morton; +Cc: linux-kernel, mingo, tglx, fengguang.wu, linux-tip-commits On 02/01/2010 05:55 PM, Andrew Morton wrote: > > Nobody's complained so far: > > y:/usr/src/git26> git log | grep '\[.*@.*:' | wc -l > 2434 > > It's a tradeoff between being nice to authors versus tree-cleanliness > and bisectability. > Yes, if it had broken the tree in between the patches I would have folded them. -hpa ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-02 1:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <tip-e52730071567ec5b6f57e21d6693b112e01e1d0e@git.kernel.org>
2010-02-02 1:24 ` [tip:x86/mm] Generic page_is_ram: use __weak Andrew Morton
2010-02-02 1:37 ` H. Peter Anvin
2010-02-02 1:55 ` Andrew Morton
2010-02-02 1:59 ` H. Peter Anvin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox