Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330909 > unrolled thread
| Started by | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| First post | 2016-02-10 07:00 +0100 |
| Last post | 2016-02-15 11:20 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
linux-next: build failure after merge of the akpm-current tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-02-10 07:00 +0100
Re: linux-next: build failure after merge of the akpm-current tree Andrew Morton <akpm@linux-foundation.org> - 2016-02-10 21:00 +0100
Re: linux-next: build failure after merge of the akpm-current tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-02-10 22:00 +0100
Re: linux-next: build failure after merge of the akpm-current tree Jiri Kosina <jikos@kernel.org> - 2016-02-15 11:20 +0100
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2016-02-10 07:00 +0100 |
| Subject | linux-next: build failure after merge of the akpm-current tree |
| Message-ID | <r0vYJ-6xr-1@gated-at.bofh.it> |
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (x86_64
allmodconfig) failed like this:
In file included from arch/x86/include/asm/bug.h:35:0,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:59,
from include/linux/radix-tree.h:25,
from kernel/memremap.c:13:
kernel/memremap.c: In function 'devm_memremap_pages_release':
kernel/memremap.c:230:54: error: expected ')' before '__func__'
dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
^
include/asm-generic/bug.h:74:69: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
^
include/linux/device.h:1312:2: note: in expansion of macro 'WARN'
WARN(condition, "%s %s: " format, \
^
kernel/memremap.c:230:3: note: in expansion of macro 'dev_WARN'
dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
^
include/linux/device.h:1312:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
WARN(condition, "%s %s: " format, \
^
include/asm-generic/bug.h:74:69: note: in definition of macro '__WARN_printf'
#define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
^
include/linux/device.h:1312:2: note: in expansion of macro 'WARN'
WARN(condition, "%s %s: " format, \
^
kernel/memremap.c:230:3: note: in expansion of macro 'dev_WARN'
dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
^
Probably exposed by commit
27ffb3827ac7 ("mm: CONFIG_NR_ZONES_EXTENDED")
originally caused by commit
5c2c2587b132 ("mm, dax, pmem: introduce {get|put}_dev_pagemap() for dax-gup")
which was added in v4.5-rc1.
I added the below patch for today but then discovered the waiting patch
in the akpm tree ("kernel/memremap.c: add new arg to dev_WARN") which
should be sent to Linus ASAP (and should have appeared much earlier in
the series).
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 10 Feb 2016 16:42:47 +1100
Subject: [PATCH] kernel/memremap: fix up dev_WARN invocation
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
kernel/memremap.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/memremap.c b/kernel/memremap.c
index 76fa01cee76b..ba845c368876 100644
--- a/kernel/memremap.c
+++ b/kernel/memremap.c
@@ -226,10 +226,9 @@ static void devm_memremap_pages_release(struct device *dev, void *data)
resource_size_t align_start, align_size;
struct dev_pagemap *pgmap = &page_map->pgmap;
- if (percpu_ref_tryget_live(pgmap->ref)) {
- dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
+ if (dev_WARN(dev, percpu_ref_tryget_live(pgmap->ref),
+ "%s: page mapping is still live!\n", __func__))
percpu_ref_put(pgmap->ref);
- }
/* pages are dead and unused, undo the arch mapping */
align_start = res->start & ~(SECTION_SIZE - 1);
--
2.7.0
--
Cheers,
Stephen Rothwell
[toc] | [next] | [standalone]
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Date | 2016-02-10 21:00 +0100 |
| Message-ID | <r0J5E-6GL-11@gated-at.bofh.it> |
| In reply to | #1330909 |
On Wed, 10 Feb 2016 16:55:14 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Andrew,
>
> After merging the akpm-current tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> In file included from arch/x86/include/asm/bug.h:35:0,
> from include/linux/bug.h:4,
> from include/linux/thread_info.h:11,
> from arch/x86/include/asm/preempt.h:6,
> from include/linux/preempt.h:59,
> from include/linux/radix-tree.h:25,
> from kernel/memremap.c:13:
> kernel/memremap.c: In function 'devm_memremap_pages_release':
> kernel/memremap.c:230:54: error: expected ')' before '__func__'
> dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
> ^
> include/asm-generic/bug.h:74:69: note: in definition of macro '__WARN_printf'
> #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
> ^
> include/linux/device.h:1312:2: note: in expansion of macro 'WARN'
> WARN(condition, "%s %s: " format, \
> ^
> kernel/memremap.c:230:3: note: in expansion of macro 'dev_WARN'
> dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
> ^
> include/linux/device.h:1312:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
> WARN(condition, "%s %s: " format, \
> ^
> include/asm-generic/bug.h:74:69: note: in definition of macro '__WARN_printf'
> #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
> ^
> include/linux/device.h:1312:2: note: in expansion of macro 'WARN'
> WARN(condition, "%s %s: " format, \
> ^
> kernel/memremap.c:230:3: note: in expansion of macro 'dev_WARN'
> dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
> ^
>
> Probably exposed by commit
>
> 27ffb3827ac7 ("mm: CONFIG_NR_ZONES_EXTENDED")
>
> originally caused by commit
>
> 5c2c2587b132 ("mm, dax, pmem: introduce {get|put}_dev_pagemap() for dax-gup")
>
> which was added in v4.5-rc1.
>
> I added the below patch for today but then discovered the waiting patch
> in the akpm tree ("kernel/memremap.c: add new arg to dev_WARN") which
> should be sent to Linus ASAP (and should have appeared much earlier in
> the series).
kernel-memremapc-add-new-arg-to-dev_warn.patch fixes ee49ac85bc24b946
("treewide: let dev_WARN() accept a condition") which is only in
linux-next?
[toc] | [prev] | [next] | [standalone]
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2016-02-10 22:00 +0100 |
| Message-ID | <r0K1I-7gs-7@gated-at.bofh.it> |
| In reply to | #1331463 |
Hi Andrew,
On Wed, 10 Feb 2016 11:55:07 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Wed, 10 Feb 2016 16:55:14 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> > Hi Andrew,
> >
> > After merging the akpm-current tree, today's linux-next build (x86_64
> > allmodconfig) failed like this:
> >
> > In file included from arch/x86/include/asm/bug.h:35:0,
> > from include/linux/bug.h:4,
> > from include/linux/thread_info.h:11,
> > from arch/x86/include/asm/preempt.h:6,
> > from include/linux/preempt.h:59,
> > from include/linux/radix-tree.h:25,
> > from kernel/memremap.c:13:
> > kernel/memremap.c: In function 'devm_memremap_pages_release':
> > kernel/memremap.c:230:54: error: expected ')' before '__func__'
> > dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
> > ^
> > include/asm-generic/bug.h:74:69: note: in definition of macro '__WARN_printf'
> > #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
> > ^
> > include/linux/device.h:1312:2: note: in expansion of macro 'WARN'
> > WARN(condition, "%s %s: " format, \
> > ^
> > kernel/memremap.c:230:3: note: in expansion of macro 'dev_WARN'
> > dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
> > ^
> > include/linux/device.h:1312:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
> > WARN(condition, "%s %s: " format, \
> > ^
> > include/asm-generic/bug.h:74:69: note: in definition of macro '__WARN_printf'
> > #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
> > ^
> > include/linux/device.h:1312:2: note: in expansion of macro 'WARN'
> > WARN(condition, "%s %s: " format, \
> > ^
> > kernel/memremap.c:230:3: note: in expansion of macro 'dev_WARN'
> > dev_WARN(dev, "%s: page mapping is still live!\n", __func__);
> > ^
> >
> > Probably exposed by commit
> >
> > 27ffb3827ac7 ("mm: CONFIG_NR_ZONES_EXTENDED")
> >
> > originally caused by commit
> >
> > 5c2c2587b132 ("mm, dax, pmem: introduce {get|put}_dev_pagemap() for dax-gup")
> >
> > which was added in v4.5-rc1.
> >
> > I added the below patch for today but then discovered the waiting patch
> > in the akpm tree ("kernel/memremap.c: add new arg to dev_WARN") which
> > should be sent to Linus ASAP (and should have appeared much earlier in
> > the series).
>
> kernel-memremapc-add-new-arg-to-dev_warn.patch fixes ee49ac85bc24b946
> ("treewide: let dev_WARN() accept a condition") which is only in
> linux-next?
Yes, indeed, I guess I was a bit tired by that point :-(
However, I am not sure I would ever call an API change trivial i.e. I
wonder what that patch is doing the the trivial tree ... I guess that
patch is needed as part of the merge of the trivial tree. Or the
trivial tree should be based on v4.5-rc1 not v4.3 (in which case this
patch belongs as part of ee49ac85bc24b946 (and presumably would have
been found in testing of the trivial tree alone).
I will put your patch into teh merge of the trivial tree today (so it
will disappear from the akpm tree).
--
Cheers,
Stephen Rothwell
[toc] | [prev] | [next] | [standalone]
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Date | 2016-02-15 11:20 +0100 |
| Message-ID | <r2oq6-7YN-9@gated-at.bofh.it> |
| In reply to | #1331483 |
On Thu, 11 Feb 2016, Stephen Rothwell wrote: > Or the trivial tree should be based on v4.5-rc1 not v4.3 (in which case > this patch belongs as part of ee49ac85bc24b946 (and presumably would > have been found in testing of the trivial tree alone). This was indeed applied to wrong base, my error, sorry for that. I will drop this now from my tree and we'll merge it properly later; best thing would probably be to send it directly to Linus at the very end of merge window. Thanks for noticing, -- Jiri Kosina SUSE Labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web