linux-next: build failure after merge of the mfd tree
Subsystems (4)
Hi Lee,
After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/mfd/intel-lpss.c:29:47: fatal error: asm-generic/io-64-nonatomic-lo-hi.h: No such file or directory
#include <asm-generic/io-64-nonatomic-lo-hi.h>
^Caused by commit
6a1d82fbc8e8 ("mfd: intel-lpss: Use writeq() helper")
interacting with commit
f626fe17485b ("move io-64-nonatomic*.h out of asm-generic")
from the asm-generic tree.
I have added the following merge fix patch and can carry it as necessary.
From: Stephen Rothwell <[email protected]>
Date: Thu, 15 Oct 2015 13:23:20 +1100
Subject: [PATCH] mfd: fix for "move io-64-nonatomic*.h out of asm-generic"
--- drivers/mfd/intel-lpss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mfd/intel-lpss.c +1 -2
@@ -25,8 +25,7 @@#include <linux/pm_qos.h> #include <linux/pm_runtime.h> #include <linux/seq_file.h> - -#include <asm-generic/io-64-nonatomic-lo-hi.h> +#include <linux/io-64-nonatomic-lo-hi.h> #include "intel-lpss.h"
Signature · 5 lines
2.5.1 -- Cheers, Stephen Rothwell [email protected]
kbuild test robot
build botreproduce:
Hi Stephen,
[auto build test ERROR on next-20151013 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
url: https://github.com/0day-ci/linux/commits/Stephen-Rothwell/linux-next-build-failure-after-merge-of-the-mfd-tree/20151015-102814 config: i386-allmodconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386
All errors (new ones prefixed by >>):
>> drivers/mfd/intel-lpss.c:28:41: fatal error: linux/io-64-nonatomic-lo-hi.h: No such file or directory
compilation terminated.
vim +28 drivers/mfd/intel-lpss.c
22 #include <linux/kernel.h>
23 #include <linux/module.h>
24 #include <linux/mfd/core.h>
25 #include <linux/pm_qos.h>
26 #include <linux/pm_runtime.h>
27 #include <linux/seq_file.h>
> 28 #include <linux/io-64-nonatomic-lo-hi.h>
29
30 #include "intel-lpss.h"
31 ---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Arnd Bergmann
maintainerQuoted 17 lines · On Thursday 15 October 2015 13:26:02 Stephen Rothwell wrote:
After merging the mfd tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/mfd/intel-lpss.c:29:47: fatal error:asm-generic/io-64-nonatomic-lo-hi.h: No such file or directory#include <asm-generic/io-64-nonatomic-lo-hi.h> ^Caused by commit
6a1d82fbc8e8("mfd: intel-lpss: Usewriteq()helper")interacting with commit
f626fe17485b("move io-64-nonatomic*.h out of asm-generic")from the asm-generic tree.
Quoted 7 lines
I have added the following merge fix patch and can carry it as necessary.
From: Stephen Rothwell <[email protected]>
Date: Thu, 15 Oct 2015 13:23:20 +1100
Subject: [PATCH] mfd: fix for "move io-64-nonatomic*.h out of asm-generic"Signed-off-by Stephen Rothwell <[email protected]>
The patch looks good, should we do something to prevent that from becoming a problem when Linus pulls our branches?
This commit is at the bottom of my asm-generic git tree, so Lee could merge that one commit into his tree and fix up the merge correctly.
However, I also now see that drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c has the same problem, so maybe it's better to add a temporary file with the old name containing "#include <linux/io-64-nonatomic-lo-hi.h>", which I will remove in the following merge window or as a follow-up.
Yet another way would be for me to wait until Linus has pulled both mfd and netdev been merged, and I'll let him know of the conflict in my pull request.
Arnd
Quoted 32 lines · Arnd Bergmann
Quoted 17 lines · On Thursday 15 October 2015 13:26:02 Stephen Rothwell wrote:
After merging the mfd tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/mfd/intel-lpss.c:29:47: fatal error:asm-generic/io-64-nonatomic-lo-hi.h: No such file or directory#include <asm-generic/io-64-nonatomic-lo-hi.h> ^Caused by commit
6a1d82fbc8e8("mfd: intel-lpss: Usewriteq()helper")interacting with commit
f626fe17485b("move io-64-nonatomic*.h out of asm-generic")from the asm-generic tree.
Quoted 7 lines
I have added the following merge fix patch and can carry it as necessary.
From: Stephen Rothwell <[email protected]>
Date: Thu, 15 Oct 2015 13:23:20 +1100
Subject: [PATCH] mfd: fix for "move io-64-nonatomic*.h out of asm-generic"Signed-off-by Stephen Rothwell <[email protected]>The patch looks good, should we do something to prevent that from becoming a problem when Linus pulls our branches?
This commit is at the bottom of my asm-generic git tree, so Lee could merge that one commit into his tree and fix up the merge correctly.
Quoted 8 lines
However, I also now see that
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.chas the same problem, so maybe it's better to add a temporary file with the old name containing "#include <linux/io-64-nonatomic-lo-hi.h>", which I will remove in the following merge window or as a follow-up.Yet another way would be for me to wait until Linus has pulled both mfd and netdev been merged, and I'll let him know of the conflict in my pull request.
I'll remain flexible. Whatever you think is the best solution we'll go with and I'll facilitate.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Andy Shevchenko
reviewerQuoted 10 lines · Arnd Bergmann
Quoted 1 line
On Thursday 15 October 2015 13:26:02 Stephen Rothwell wrote:
However, I also now see thatdrivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c
has the same problem, so maybe it's better to add a temporary file with the old name containing "#include <linux/io-64-nonatomic-lo-hi.h>",
which I will remove in the following merge window or as a follow-up.
Quoted 3 lines
Yet another way would be for me to wait until Linus has pulled both mfd and netdev been merged, and I'll let him know of the conflict in my pull request.
There are at least couple of drivers where I introduced a use of lo_hi_* helpers (idma64.c and xhci header if the latter made Greg's tree). Though didn't check if it's should be fixed.
For me looks like temporary (for one cycle) file might be a better work around.
Signature · 2 lines
Andy Shevchenko <[email protected]> Intel Finland Oy
Quoted 10 lines · Arnd Bergmann
The patch looks good, should we do something to prevent that from becoming a problem when Linus pulls our branches?
This commit is at the bottom of my asm-generic git tree, so Lee could merge that one commit into his tree and fix up the merge correctly.
However, I also now see that
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.chas the same problem, so maybe it's better to add a temporary file with the old name containing "#include <linux/io-64-nonatomic-lo-hi.h>", which I will remove in the following merge window or as a follow-up.
I guess we really need that. Do you want to do a quick fixup or should I send a patch?
Arnd Bergmann
maintainerQuoted 7 lines · On Thursday 15 October 2015 14:04:07 Christoph Hellwig wrote:
Quoted 6 lines · Arnd Bergmann
The patch looks good, should we do something to prevent that from becoming a problem when Linus pulls our branches?
This commit is at the bottom of my asm-generic git tree, so Lee could merge that one commit into his tree and fix up the merge correctly.
Quoted 7 lines
Quoted 4 lines
However, I also now see that
drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.chas the same problem, so maybe it's better to add a temporary file with the old name containing "#include <linux/io-64-nonatomic-lo-hi.h>", which I will remove in the following merge window or as a follow-up.I guess we really need that. Do you want to do a quick fixup or should I send a patch?
I've applied this one now.
Arnd
Quoted 1 line
From
b3d8d0ee6c9781d54d4180c5f1d36a12f0437c86Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Thu, 15 Oct 2015 14:24:45 +0200
Subject: [PATCH] asm-generic: temporarily add back
asm-generic/io-64-nonatomic-hi-lo.h
New users of this file still start showing up in linux-next, so it's better to have a migration strategy. All existing users as of 4.3-rc4 are converted to use linux/io-64-nonatomic-hi-lo.h, and after 4.4-rc1 we can change all the new ones that have come in since, and then remove this file again.
include/asm-generic/io-64-nonatomic-hi-lo.h new file +2 -0
@@ -0,0 +1,2 @@ +/* XXX: delete asm-generic/io-64-nonatomic-hi-lo.h after converting new users */ +#include <linux/io-64-nonatomic-hi-lo.h>
Hi Arnd,
include/asm-generic/io-64-nonatomic-hi-lo.h line 2
Quoted 9 lines · On Thu, 15 Oct 2015 14:28:20 +0200 Arnd Bergmann <[email protected]> wrote:
include/asm-generic/io-64-nonatomic-hi-lo.h new file +2
-0@@ -0,0 +1,2 @@ +/* XXX: delete asm-generic/io-64-nonatomic-hi-lo.h after converting new users */ +#include <linux/io-64-nonatomic-hi-lo.h>
Turns out you need the same for io-64-nonatomic-lo-hi.h as well ...
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Arnd Bergmann
maintainerQuoted 4 lines · On Friday 16 October 2015 12:27:04 Stephen Rothwell wrote:
Hi Arnd,
Quoted 1 line · On Thu, 15 Oct 2015 14:28:20 +0200 Arnd Bergmann <[email protected]> wrote:
Quoted 12 lines
include/asm-generic/io-64-nonatomic-hi-lo.h line 2
Quoted 8 lines
include/asm-generic/io-64-nonatomic-hi-lo.h new file +2
-0@@ -0,0 +1,2 @@ +/* XXX: delete asm-generic/io-64-nonatomic-hi-lo.h after converting new users */ +#include <linux/io-64-nonatomic-hi-lo.h> Turns out you need the same for
io-64-nonatomic-lo-hi.has well ...
D'oh!
fixed now, thanks for your patience.
Arnd