]> git.baikalelectronics.ru Git - kernel.git/commit
backing: silence compiler warning using __printf
authorMathieu Malaterre <malat@debian.org>
Fri, 6 Apr 2018 20:14:51 +0000 (22:14 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Apr 2018 14:38:46 +0000 (08:38 -0600)
commita714a62095c8d9e5f02f86ab11bd2b503dd59d58
tree76cd9c43c33ca474727b7f942f38f03260a55c46
parent13bfbe77522efee680028d05ef456686246723dd
backing: silence compiler warning using __printf

__printf marker was added in commit a669b5bf7c7c ("bdi_register: add
__printf verification, fix arg mismatch") for function `bdi_register`
since it is useful to verify format and arguments. Apply equivalent gcc
attribute to `bdi_register_va`.

Remove warning triggered with W=1:

  mm/backing-dev.c:881:2: warning: function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/backing-dev.h