Messages in this thread |  | | Subject | Re: [PATCH] backing: silence compiler warning using __printf | From | Jens Axboe <> | Date | Mon, 9 Apr 2018 09:51:41 -0600 |
| |
On 4/6/18 2:14 PM, Mathieu Malaterre wrote: > __printf marker was added in commit d2cc4dde9206 ("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]
Applied, thanks.
-- Jens Axboe
|  |