Skip to contentSkip to conversation

mfd: stmfx: Fix macro definition spelling

PATCH Applied Nathan Chancellor 3 participants 7 messages May 11, 2019 – Jun 14, 2019

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

PATCH 1/1 mfd: stmfx: Fix macro definition spelling

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
---
 include/linux/mfd/stmfx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/stmfx.h +1 -1
index d890595b89b6..3c67983678ec 100644
@@ -5,7 +5,7 @@
  */
 
 #ifndef MFD_STMFX_H
-#define MFX_STMFX_H
+#define MFD_STMFX_H
 
 #include <linux/regmap.h>
 
Signature · 1 line
2.21.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Nathan Chancellor

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
Quoted 18 lines
---
  include/linux/mfd/stmfx.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/stmfx.h +1 -1
index d890595b89b6..3c67983678ec 100644
@@ -5,7 +5,7 @@
   */
 
  #ifndef MFD_STMFX_H
-#define MFX_STMFX_H
+#define MFD_STMFX_H
 
  #include <linux/regmap.h>
 
Applied
#2 lore raw
In reply to Nathan Chancellor
Quoted 7 lines · Nathan Chancellor

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Quoted 6 lines
Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
---
 include/linux/mfd/stmfx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#3 lore raw
Quoted 9 lines · Lee Jones
Quoted 7 lines · Nathan Chancellor

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Quoted 14 lines
Quoted 6 lines
Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
---
 include/linux/mfd/stmfx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Hi Lee,

Thanks for picking it up. It seems this didn't make it into your MFD pull request for 5.2, was that intentional? It would be nice to avoid this warning.

Thanks,
Nathan

#4 lore raw
Quoted 17 lines · Nathan Chancellor
Quoted 16 lines · Lee Jones
Quoted 13 lines · Nathan Chancellor

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
---
 include/linux/mfd/stmfx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines
Quoted 2 lines

Applied, thanks.

Hi Lee,

Thanks for picking it up. It seems this didn't make it into your MFD pull request for 5.2, was that intentional? It would be nice to avoid this warning.

Hmm... no it was not intentional. Not sure what happened there.

I will pick it up for the -rcs.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#5 lore raw
Quoted 24 lines · Lee Jones
Quoted 22 lines · Nathan Chancellor
Quoted 9 lines · Lee Jones
Quoted 7 lines · Nathan Chancellor

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Quoted 9 lines
Quoted 6 lines
Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
---
 include/linux/mfd/stmfx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Hi Lee,

Quoted 13 lines
Quoted 3 lines

Thanks for picking it up. It seems this didn't make it into your MFD pull request for 5.2, was that intentional? It would be nice to avoid this warning.

Hmm... no it was not intentional. Not sure what happened there.

I will pick it up for the -rcs.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Thank you, I appreciate it!

Nathan

#6 lore raw
In reply to Lee Jones
Quoted 24 lines · Lee Jones
Quoted 22 lines · Nathan Chancellor
Quoted 9 lines · Lee Jones
Quoted 7 lines · Nathan Chancellor

Clang warns:

In file included from drivers/mfd/stmfx.c:13:
include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]

Quoted 9 lines
Quoted 6 lines
Fixes 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver")
---
 include/linux/mfd/stmfx.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Hi Lee,

Quoted 7 lines
Quoted 3 lines

Thanks for picking it up. It seems this didn't make it into your MFD pull request for 5.2, was that intentional? It would be nice to avoid this warning.

Hmm... no it was not intentional. Not sure what happened there.

I will pick it up for the -rcs.

Hi Lee,

Have you picked this up yet? I don't see it in -next or your public tree.

Cheers,
Nathan