On 2018/8/14 5:38, Arnd Bergmann wrote: > When CONFIG_F2FS_FAULT_INJECTION is disabled, we get a warning about an > unused label: > > fs/f2fs/segment.c: In function '__submit_discard_cmd': > fs/f2fs/segment.c:1059:1: error: label 'submit' defined but not used > [-Werror=unused-label] > > This could be fixed by adding another #ifdef around it, but the more > reliable way of doing this seems to be to remove the other #ifdefs > where that is easily possible. > > By defining time_to_inject() as a trivial stub, most of the checks for > CONFIG_F2FS_FAULT_INJECTION can go away. This also leads to nicer > formatting of the code. > > Signed-off-by: Arnd Bergmann <a...@arndb.de>
Reviewed-by: Chao Yu <yuch...@huawei.com> Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel