mfd: stmfx: Fix macro definition spelling
Subsystems (2)
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]
--- include/linux/mfd/stmfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mfd/stmfx.h +1 -1
@@ -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
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")Signed-off-by Nathan Chancellor <[email protected]>
Quoted 18 lines
--- include/linux/mfd/stmfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/mfd/stmfx.h +1
-1@@ -5,7 +5,7 @@*/ #ifndef MFD_STMFX_H -#define MFX_STMFX_H +#define MFD_STMFX_H #include <linux/regmap.h>
Lee Jones
AppliedQuoted 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")Signed-off-by Nathan Chancellor <[email protected]>--- 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
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")Signed-off-by Nathan Chancellor <[email protected]>--- 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
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")Signed-off-by Nathan Chancellor <[email protected]>--- 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
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")Signed-off-by Nathan Chancellor <[email protected]>--- 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
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")Signed-off-by Nathan Chancellor <[email protected]>--- 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