lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.21.99999.375.1911130736490.2567@wambui>
Date:   Wed, 13 Nov 2019 07:38:00 +0300 (EAT)
From:   Wambui Karuga <wambui@...uga.xyz>
To:     Wambui Karuga <wambui.karugax@...il.com>,
        maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
        sean@...rly.run, airlied@...ux.ie, dri-devel@...ts.freedesktop.org,
        linux-kernel@...r.kernel.org
cc:     daniel@...ll.ch
Subject: Re: [PATCH] drm/print: add DRM_DEV_WARN macro



On Tue, 12 Nov 2019, Daniel Vetter wrote:

> On Tue, Nov 12, 2019 at 08:09:09PM +0300, Wambui Karuga wrote:
>> Add the DRM_DEV_WARN helper macro for printing warnings
>> that use device pointers in their log output format.
>> DRM_DEV_WARN can replace the use of dev_warn in such cases.
>>
>> Signed-off-by: Wambui Karuga <wambui.karugax@...il.com>
>
> Can you pls include this in the patch to add the first user with rockchip?
> Otherwise always a bit awkward when we add functions without callers.
>
Okay, I'll send that as well.
Thought it'd be better to get this accepted first.

wambui
> lgtm otherwise.
> -Daniel
>
>> ---
>>  include/drm/drm_print.h | 9 +++++++++
>>  1 file changed, 9 insertions(+)
>>
>> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
>> index 5b8049992c24..6ddf91c0cb29 100644
>> --- a/include/drm/drm_print.h
>> +++ b/include/drm/drm_print.h
>> @@ -329,6 +329,15 @@ void drm_err(const char *format, ...);
>>  #define DRM_WARN_ONCE(fmt, ...)						\
>>  	_DRM_PRINTK(_once, WARNING, fmt, ##__VA_ARGS__)
>>
>> +/**
>> + * Warning output.
>> + *
>> + * @dev: device pointer
>> + * @fmt: printf() like format string.
>> + */
>> +#define DRM_DEV_WARN(dev, fmt, ...)					\
>> +	drm_dev_printk(dev, KERN_WARNING, fmt, ##__VA_ARGS__)
>> +
>>  /**
>>   * Error output.
>>   *
>> --
>> 2.17.1
>>
>
> -- 
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ