* [-mm PATCH] list, perf: fix list_force_poison() build regression
@ 2016-01-01 3:24 Dan Williams
2016-01-04 7:47 ` Stephen Rothwell
0 siblings, 1 reply; 2+ messages in thread
From: Dan Williams @ 2016-01-01 3:24 UTC (permalink / raw)
To: akpm; +Cc: Stephen Rothwell, linux-nvdimm, linux-mm
In file included from
/home/sfr/next/next/tools/include/linux/list.h:5:0,
from arch/../util/map.h:6,
from arch/../util/event.h:8,
from arch/../util/debug.h:7,
from arch/common.c:4:
include/linux/list.h: In function 'list_force_poison':
include/linux/list.h:123:56: error: unused parameter 'entry' [-Werror=unused-parameter]
static inline void list_force_poison(struct list_head *entry)
perf does not like the empty definition of list_force_poison. For
simplicity just switch to list_del in the non-debug case.
Fixes "mm, dax, pmem: introduce {get|put}_dev_pagemap() for dax-gup" in
-next.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
include/linux/list.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/linux/list.h b/include/linux/list.h
index d870ba3315f8..ebf5f358e8c3 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -120,9 +120,8 @@ extern void list_del(struct list_head *entry);
*/
extern void list_force_poison(struct list_head *entry);
#else
-static inline void list_force_poison(struct list_head *entry)
-{
-}
+/* fallback to the less strict LIST_POISON* definitions */
+#define list_force_poison list_del
#endif
/**
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [-mm PATCH] list, perf: fix list_force_poison() build regression
2016-01-01 3:24 [-mm PATCH] list, perf: fix list_force_poison() build regression Dan Williams
@ 2016-01-04 7:47 ` Stephen Rothwell
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2016-01-04 7:47 UTC (permalink / raw)
To: Dan Williams; +Cc: akpm, linux-nvdimm, linux-mm
Hi Dan,
On Thu, 31 Dec 2015 19:24:21 -0800 Dan Williams <dan.j.williams@intel.com> wrote:
>
> In file included from
> /home/sfr/next/next/tools/include/linux/list.h:5:0,
> from arch/../util/map.h:6,
> from arch/../util/event.h:8,
> from arch/../util/debug.h:7,
> from arch/common.c:4:
> include/linux/list.h: In function 'list_force_poison':
> include/linux/list.h:123:56: error: unused parameter 'entry' [-Werror=unused-parameter]
> static inline void list_force_poison(struct list_head *entry)
>
> perf does not like the empty definition of list_force_poison. For
> simplicity just switch to list_del in the non-debug case.
>
> Fixes "mm, dax, pmem: introduce {get|put}_dev_pagemap() for dax-gup" in
> -next.
>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
> include/linux/list.h | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/list.h b/include/linux/list.h
> index d870ba3315f8..ebf5f358e8c3 100644
> --- a/include/linux/list.h
> +++ b/include/linux/list.h
> @@ -120,9 +120,8 @@ extern void list_del(struct list_head *entry);
> */
> extern void list_force_poison(struct list_head *entry);
> #else
> -static inline void list_force_poison(struct list_head *entry)
> -{
> -}
> +/* fallback to the less strict LIST_POISON* definitions */
> +#define list_force_poison list_del
> #endif
>
> /**
I applied this to linux-next today.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-04 7:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-01 3:24 [-mm PATCH] list, perf: fix list_force_poison() build regression Dan Williams
2016-01-04 7:47 ` Stephen Rothwell
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).