Linux: -Wheader-guard in drivers/mfd/stmfx.c

Created on 11 May 2019  路  4Comments  路  Source: ClangBuiltLinux/linux

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]
#ifndef MFD_STMFX_H
        ^~~~~~~~~~~
include/linux/mfd/stmfx.h:8:9: note: 'MFX_STMFX_H' is defined here; did you mean 'MFD_STMFX_H'?
#define MFX_STMFX_H
        ^~~~~~~~~~~
        MFD_STMFX_H
1 warning generated.

Patch sent: https://lore.kernel.org/lkml/[email protected]/

-Wheader-guard [BUG] linux [FIXED][LINUX] 5.3

All 4 comments

Unfortunately, this regressed into mainline :(

Lee said he would pick it up for another RC: https://lore.kernel.org/lkml/20190514185404.GP4319@dell/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nickdesaulniers picture nickdesaulniers  路  3Comments

nathanchance picture nathanchance  路  3Comments

nickdesaulniers picture nickdesaulniers  路  3Comments

nathanchance picture nathanchance  路  3Comments

tpimh picture tpimh  路  5Comments