Re: [PATCH] bug: Fix sparse warning related to BUILD_BUG_ON_INVALID

2012-11-19 Thread Konstantin Khlebnikov
Tushar Behera wrote: commit baf05aa9271b ("bug: introduce BUILD_BUG_ON_INVALID() macro") introduces this macro when only _CHECKER_ is defined. Define a silent macro in the else condition to fix following sparse warning. mm/filemap.c:395:9: error: undefined identifier 'BUILD_BUG_ON_INVALID' mm/fi

[PATCH] bug: Fix sparse warning related to BUILD_BUG_ON_INVALID

2012-11-19 Thread Tushar Behera
commit baf05aa9271b ("bug: introduce BUILD_BUG_ON_INVALID() macro") introduces this macro when only _CHECKER_ is defined. Define a silent macro in the else condition to fix following sparse warning. mm/filemap.c:395:9: error: undefined identifier 'BUILD_BUG_ON_INVALID' mm/filemap.c:396:9: error: u