提交 9908fb65 编写于 作者: J Joe Perches 提交者: Dave Airlie

drm: change drm_err return type to void

The return value is not used by callers of this function
nor by uses of the DRM_ERROR macro so change the function
to return void.
Signed-off-by: NJoe Perches <joe@perches.com>
Reviewed-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 94318d50
...@@ -56,22 +56,19 @@ static struct idr drm_minors_idr; ...@@ -56,22 +56,19 @@ static struct idr drm_minors_idr;
struct class *drm_class; struct class *drm_class;
static struct dentry *drm_debugfs_root; static struct dentry *drm_debugfs_root;
int drm_err(const char *func, const char *format, ...) void drm_err(const char *func, const char *format, ...)
{ {
struct va_format vaf; struct va_format vaf;
va_list args; va_list args;
int r;
va_start(args, format); va_start(args, format);
vaf.fmt = format; vaf.fmt = format;
vaf.va = &args; vaf.va = &args;
r = printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* %pV", func, &vaf); printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* %pV", func, &vaf);
va_end(args); va_end(args);
return r;
} }
EXPORT_SYMBOL(drm_err); EXPORT_SYMBOL(drm_err);
......
...@@ -124,7 +124,7 @@ extern __printf(2, 3) ...@@ -124,7 +124,7 @@ extern __printf(2, 3)
void drm_ut_debug_printk(const char *function_name, void drm_ut_debug_printk(const char *function_name,
const char *format, ...); const char *format, ...);
extern __printf(2, 3) extern __printf(2, 3)
int drm_err(const char *func, const char *format, ...); void drm_err(const char *func, const char *format, ...);
/***********************************************************************/ /***********************************************************************/
/** \name DRM template customization defaults */ /** \name DRM template customization defaults */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册