All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the final tree (hwpoison tree related)
@ 2010-09-27  5:28 Stephen Rothwell
  2010-09-27  6:56 ` Wu Fengguang
  2010-09-27  7:02 ` Andi Kleen
  0 siblings, 2 replies; 3+ messages in thread
From: Stephen Rothwell @ 2010-09-27  5:28 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-next, linux-kernel, Naoya Horiguchi, Wu Fengguang

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

Hi Andi,

After merging the final tree, today's linux-next build (powerpc
ppc64_defconfig) produced this warning:

mm/hugetlb.c:2950: warning: 'is_hugepage_on_freelist' defined but not used

Introduced by commit 19b31e29073e272e49a3d38972c132c49383d5d4 ("HWPOISON,
hugetlb: add free check to dequeue_hwpoison_huge_page()").
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

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

* Re: linux-next: build warning after merge of the final tree (hwpoison tree related)
  2010-09-27  5:28 linux-next: build warning after merge of the final tree (hwpoison tree related) Stephen Rothwell
@ 2010-09-27  6:56 ` Wu Fengguang
  2010-09-27  7:02 ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Wu Fengguang @ 2010-09-27  6:56 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andi Kleen, linux-next@vger.kernel.org,
	linux-kernel@vger.kernel.org, Naoya Horiguchi

Hi Stephen,

On Mon, Sep 27, 2010 at 01:28:04PM +0800, Stephen Rothwell wrote:
> Hi Andi,
> 
> After merging the final tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
> 
> mm/hugetlb.c:2950: warning: 'is_hugepage_on_freelist' defined but not used
> 
> Introduced by commit 19b31e29073e272e49a3d38972c132c49383d5d4 ("HWPOISON,
> hugetlb: add free check to dequeue_hwpoison_huge_page()").

Maybe ppc64_defconfig does not enable CONFIG_MEMORY_FAILURE.
Try this trivial patch :)

Thanks,
Fengguang
---
hugetlb: fix is_hugepage_on_freelist() build warning

mm/hugetlb.c:2950: warning: 'is_hugepage_on_freelist' defined but not used                                                         

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
 mm/hugetlb.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- linux-next.orig/mm/hugetlb.c	2010-09-27 14:51:19.000000000 +0800
+++ linux-next/mm/hugetlb.c	2010-09-27 14:52:56.000000000 +0800
@@ -2876,8 +2876,8 @@ void hugetlb_unreserve_pages(struct inod
 	hugetlb_acct_memory(h, -(chg - freed));
 }
 
-/* Should be called in hugetlb_lock */
-static int is_hugepage_on_freelist(struct page *hpage)
+#ifdef CONFIG_MEMORY_FAILURE
+static int __is_hugepage_on_freelist(struct page *hpage)
 {
 	struct page *page;
 	struct page *tmp;
@@ -2890,7 +2890,6 @@ static int is_hugepage_on_freelist(struc
 	return 0;
 }
 
-#ifdef CONFIG_MEMORY_FAILURE
 /*
  * This function is called from memory failure code.
  * Assume the caller holds page lock of the head page.
@@ -2902,7 +2901,7 @@ int dequeue_hwpoisoned_huge_page(struct 
 	int ret = -EBUSY;
 
 	spin_lock(&hugetlb_lock);
-	if (is_hugepage_on_freelist(hpage)) {
+	if (__is_hugepage_on_freelist(hpage)) {
 		list_del(&hpage->lru);
 		h->free_huge_pages--;
 		h->free_huge_pages_node[nid]--;

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

* Re: linux-next: build warning after merge of the final tree (hwpoison tree related)
  2010-09-27  5:28 linux-next: build warning after merge of the final tree (hwpoison tree related) Stephen Rothwell
  2010-09-27  6:56 ` Wu Fengguang
@ 2010-09-27  7:02 ` Andi Kleen
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2010-09-27  7:02 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Andi Kleen, linux-next, linux-kernel, Naoya Horiguchi,
	Wu Fengguang

On Mon, Sep 27, 2010 at 03:28:04PM +1000, Stephen Rothwell wrote:
> Hi Andi,
> 
> After merging the final tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
> 
> mm/hugetlb.c:2950: warning: 'is_hugepage_on_freelist' defined but not used
> 
> Introduced by commit 19b31e29073e272e49a3d38972c132c49383d5d4 ("HWPOISON,
> hugetlb: add free check to dequeue_hwpoison_huge_page()").

Fixed now. Thanks for the report.
-Andi

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

end of thread, other threads:[~2010-09-27  7:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27  5:28 linux-next: build warning after merge of the final tree (hwpoison tree related) Stephen Rothwell
2010-09-27  6:56 ` Wu Fengguang
2010-09-27  7:02 ` Andi Kleen

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.