diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-07-21 16:13:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-08-05 08:31:41 +0200 |
commit | 9e0cace7a6254070159ebd86497eadc29ea307ca (patch) | |
tree | 20965286842be9d747a3201e5f9c1cf6d056aa65 /include/linux/dev_printk.h | |
parent | f5992717b5826debc4aa58d4da6233563b139320 (diff) | |
download | linux-9e0cace7a6254070159ebd86497eadc29ea307ca.tar.gz linux-9e0cace7a6254070159ebd86497eadc29ea307ca.tar.bz2 linux-9e0cace7a6254070159ebd86497eadc29ea307ca.zip |
driver core: Move dev_err_probe() to where it belogs
dev_err_probe() belongs to the printing API, hence
move the definition from device.h to dev_printk.h.
There is no change to the callers at all, since:
1) implementation is located in the same core.c;
2) dev_printk.h is guaranteed to be included by device.h.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20230721131309.16821-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dev_printk.h')
-rw-r--r-- | include/linux/dev_printk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dev_printk.h b/include/linux/dev_printk.h index 8904063d4c9f..6bfe70decc9f 100644 --- a/include/linux/dev_printk.h +++ b/include/linux/dev_printk.h @@ -274,4 +274,6 @@ do { \ WARN_ONCE(condition, "%s %s: " format, \ dev_driver_string(dev), dev_name(dev), ## arg) +__printf(3, 4) int dev_err_probe(const struct device *dev, int err, const char *fmt, ...); + #endif /* _DEVICE_PRINTK_H_ */ |