linux-next: build warning after merge of the device-mapper tree
Hi all,
After merging the device-mapper tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
In file included from drivers/md/dm-dust.c:11:drivers/md/dm-dust.c: In function 'dust_list_badblocks':drivers/md/dm-dust.c:307:10: warning: zero-length gnu_printf format string [-Wformat-zero-length]
307 | DMEMIT("");
| ^~include/linux/device-mapper.h:555:46: note: in definition of macro 'DMEMIT'
555 | 0 : scnprintf(result + sz, maxlen - sz, x))
| ^
Introduced by commit
20f93ea74f9c ("dm dust: add interface to list all badblocks")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 9 lines · Stephen Rothwell
Hi all,
After merging the device-mapper tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
drivers/md/dm-dust.c:11:drivers/md/dm-dust.c: In function 'dust_list_badblocks':drivers/md/dm-dust.c:307:10: warning: zero-lengthgnu_printfformat string [-Wformat-zero-length]
307 |DMEMIT("");
Mike and Bryan,
Should we just use "DMEMIT("\n")"? Maybe it's bad since this lead a blank line...
Quoted 9 lines
| ^~
include/linux/device-mapper.h:555:46: note: in definition of macro 'DMEMIT'
555 | 0 :scnprintf(result + sz, maxlen - sz, x))
| ^Introduced by commit
20f93ea74f9c("dm dust: add interface to list all badblocks")