]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Annotate dev_err_probe() with __must_check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 Aug 2020 10:44:59 +0000 (13:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Sep 2020 09:30:53 +0000 (11:30 +0200)
commitbb506e64e24be8f31ffb25b4946fa6e1661d691f
tree01f47bc6f4ad5b001a48cda369d407d402e6df19
parent252b6a3265ed86f30126915a8eb1dedd06225a0d
driver core: Annotate dev_err_probe() with __must_check

We have got already new users of this API which interpret it differently
and miss the opportunity to optimize their code.

In order to avoid similar cases in the future, annotate dev_err_probe()
with __must_check.

Fixes: 84f8356db441 ("driver core: add device probe log helper")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200826104459.81979-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/device.h