Re: [PATCH v4 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
On Fri, 06 Jan 2023 06:43:35 +0530, kernel test robot wrote > Hi Siddh, > > Thank you for the patch! Perhaps something to improve: Yes, I sent the rectification as a reply to this patch. [1] Reviewers may please take note. Thanks, Siddh [1]

[PATCH v4 01/10] drm/print: Fix and add support for NULL as first argument in drm_* macros

2023-01-05 Thread Siddh Raman Pant
Comments say macros DRM_DEBUG_* are deprecated in favor of drm_dbg_*(NULL, ...), but they have broken support for it, as the macro will result in `(NULL) ? (NULL)->dev : NULL`. Thus, fix them by separating logic to get dev ptr in a new function, which will return the dev ptr if arg is not NULL.