Skip to contentSkip to conversation

regmap: regmap-w1: Fix build troubles

PATCH In review Alex A. Mihaylov 4 participants 8 messages Jul 7, 2017 – Jul 10, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regmap: regmap-w1: Fix build troubles

Fixes cc5d0db390b0 ("regmap: Add 1-Wire bus support")

Commit de0d6dbdbdb2 ("w1: Add subsystem kernel public interface") Fix place off w1.h header file

Cosmetic: Fix company name (local to international)

---
 drivers/base/regmap/regmap-w1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/base/regmap/regmap-w1.c +2 -2
index 5f04e7bf063e..e6c64b0be5b2 100644
@@ -1,7 +1,7 @@
 /*
  * Register map access API - W1 (1-Wire) support
  *
- * Copyright (C) 2017 OAO Radioavionica
+ * Copyright (c) 2017 Radioavionica Corporation
  * Author: Alex A. Mihaylov <[email protected]>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -11,7 +11,7 @@
 
 #include <linux/regmap.h>
 #include <linux/module.h>
-#include "../../w1/w1.h"
+#include <linux/w1.h>
 
 #include "internal.h"
 
Signature · 1 line
2.13.0
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 7 lines · Alex A. Mihaylov
Fixes cc5d0db390b0 ("regmap: Add 1-Wire bus support")

Commit de0d6dbdbdb2 ("w1: Add subsystem kernel public interface") Fix place off w1.h header file

Cosmetic: Fix company name (local to international)

This should go into 4.13, but you actually did not include the maintainer of regmap (which I just added, but you may have to resend the patch, so that it lands in his inbox). Anyways the change is:

-- Sebastian

Quoted 29 lines
---
 drivers/base/regmap/regmap-w1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/base/regmap/regmap-w1.c +2 -2
index 5f04e7bf063e..e6c64b0be5b2 100644
@@ -1,7 +1,7 @@
 /*
  * Register map access API - W1 (1-Wire) support
  *
- * Copyright (C) 2017 OAO Radioavionica
+ * Copyright (c) 2017 Radioavionica Corporation
  * Author: Alex A. Mihaylov <[email protected]>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -11,7 +11,7 @@
 
 #include <linux/regmap.h>
 #include <linux/module.h>
-#include "../../w1/w1.h"
+#include <linux/w1.h>
 
 #include "internal.h"
 
Signature · 1 line
2.13.0
maintainer
#2 lore raw
Quoted 5 lines · Sebastian Reichel
Quoted 3 lines · Alex A. Mihaylov
Fixes cc5d0db390b0 ("regmap: Add 1-Wire bus support")

Commit de0d6dbdbdb2 ("w1: Add subsystem kernel public interface") Fix place off w1.h header file

Quoted 8 lines
Quoted 3 lines

Cosmetic: Fix company name (local to international)

This should go into 4.13, but you actually did not include the maintainer of regmap (which I just added, but you may have to resend the patch, so that it lands in his inbox). Anyways the change is:

No, he sent it to me originally and I redirected him to whoever has moved the header file - the regmap code is in Linus' tree already, if the header file is going to be moved this needs to include the regmap support and this patch. I did at the time provide a signed tag for the regmap 1wire support for precisely this purpose :(

Patches like this *really* shouldn't be appearing during the merge window, they should be being handled well before that with everything ready in -next when the merge window opens.

#3 lore raw

Hi,

Quoted 21 lines · Mark Brown
Quoted 5 lines · Sebastian Reichel
Quoted 3 lines · Alex A. Mihaylov
Fixes cc5d0db390b0 ("regmap: Add 1-Wire bus support")

Commit de0d6dbdbdb2 ("w1: Add subsystem kernel public interface") Fix place off w1.h header file

Quoted 8 lines
Quoted 3 lines

Cosmetic: Fix company name (local to international)

This should go into 4.13, but you actually did not include the maintainer of regmap (which I just added, but you may have to resend the patch, so that it lands in his inbox). Anyways the change is:

No, he sent it to me originally and I redirected him to whoever has moved the header file - the regmap code is in Linus' tree already, if the header file is going to be moved this needs to include the regmap support and this patch. I did at the time provide a signed tag for the regmap 1wire support for precisely this purpose :(

Quoted 3 lines

Patches like this *really* shouldn't be appearing during the merge window, they should be being handled well before that with everything ready in -next when the merge window opens.

Both patches were in linux-next and both patches have been pulled by Linus. This is broken *now*.

-- Sebastian

maintainer
#4 lore raw
Quoted 6 lines · Sebastian Reichel
Quoted 3 lines

Patches like this *really* shouldn't be appearing during the merge window, they should be being handled well before that with everything ready in -next when the merge window opens.

Both patches were in linux-next and both patches have been pulled by Linus. This is broken *now*.

Why are none of the build bots finding problems if this is currently broken and why did this not get fixed in -next when it was introduced?

Like I say I provided a tag for this and didn't get any request to pull/apply the update in the other direction so it is extremely disappointing to see that the header move went ahead after that without the regmap support being included and someone else is having to come along and clean up the mess.

#5 lore raw

Hi,

Quoted 10 lines · Mark Brown
Quoted 6 lines · Sebastian Reichel
Quoted 3 lines

Patches like this *really* shouldn't be appearing during the merge window, they should be being handled well before that with everything ready in -next when the merge window opens.

Both patches were in linux-next and both patches have been pulled by Linus. This is broken *now*.

Why are none of the build bots finding problems if this is currently broken and why did this not get fixed in -next when it was introduced?

I guess it is because at the moment nothing select REGMAP_W1 in mainline. I did not (yet) queue the power-supply driver, which was the initial reason for adding regmap w1 support.

Quoted 5 lines

Like I say I provided a tag for this and didn't get any request to pull/apply the update in the other direction so it is extremely disappointing to see that the header move went ahead after that without the regmap support being included and someone else is having to come along and clean up the mess.

FWIW I am just the messenger, who actually pointed out the issue _before_ it happened in the threads of both patchsets. I expected this to be properly solved by you and Greg. Since this did not work out regmap seems now the logical subsystem for the fix.

-- Sebastian

maintainer
#6 lore raw
Quoted 8 lines · Sebastian Reichel
Quoted 5 lines · Mark Brown

Like I say I provided a tag for this and didn't get any request to pull/apply the update in the other direction so it is extremely disappointing to see that the header move went ahead after that without the regmap support being included and someone else is having to come along and clean up the mess.

Quoted 4 lines

FWIW I am just the messenger, who actually pointed out the issue _before_ it happened in the threads of both patchsets. I expected this to be properly solved by you and Greg. Since this did not work out regmap seems now the logical subsystem for the fix.

Well, I can't really apply it till after -rc1 since I'd have to pick a random commit in Linus' tree to do it and that doesn't make him happy usually. Since it's not actually breaking the build or anything I'll hold off till -rc1 and apply it then.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 8 lines · Evgeniy Polyakov

Hi everyone

08.07.2017, 17:58, "Sebastian Reichel" <[email protected]>:

Quoted 5 lines

This should go into 4.13, but you actually did not include the maintainer of regmap (which I just added, but you may have to resend the patch, so that it lands in his inbox). Anyways the change is:

Quoted 8 lines
Quoted 1 line

Greg, please pull it into current mainline tree,
it fixes build issue because of merge conflict between w1 regmap and public interface patches.

Thank you.

Sorry about this, I'll work on it after 4.13-rc1 is out.

greg k-h