Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-05-16 Thread Bill Wendling
On Fri, May 16, 2025 at 2:48 AM Jani Nikula wrote: > On Thu, 15 May 2025, Bill Wendling wrote: > > On 1/23/25 7:09 AM, Jani Nikula wrote: > >> The expectation is that the struct drm_device based logging helpers get > >> passed an actual struct drm_device pointer rather than some random > >> struc

Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-05-16 Thread Jani Nikula
On Thu, 15 May 2025, Bill Wendling wrote: > On 1/23/25 7:09 AM, Jani Nikula wrote: >> The expectation is that the struct drm_device based logging helpers get >> passed an actual struct drm_device pointer rather than some random >> struct pointer where you can dereference the ->dev member. >> >> A

Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-05-16 Thread Bill Wendling
On 1/23/25 7:09 AM, Jani Nikula wrote: The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Add a static inline helper to convert struct drm_device to

Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-05-15 Thread Bill Wendling
On Thu, May 15, 2025 at 1:18 PM Bill Wendling wrote: > On 1/23/25 7:09 AM, Jani Nikula wrote: > > The expectation is that the struct drm_device based logging helpers get > > passed an actual struct drm_device pointer rather than some random > > struct pointer where you can dereference the ->dev me

Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-02-25 Thread Luca Ceresoli
On Thu, 23 Jan 2025 17:09:12 +0200 Jani Nikula wrote: > The expectation is that the struct drm_device based logging helpers get > passed an actual struct drm_device pointer rather than some random > struct pointer where you can dereference the ->dev member. > > Add a static inline helper to conv

Re: [PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-02-24 Thread Louis Chauvet
Le 23/01/2025 à 16:09, Jani Nikula a écrit : The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Add a static inline helper to convert struct drm_d

[PATCH 5/5] drm/print: require struct drm_device for drm_err() and friends

2025-01-23 Thread Jani Nikula
The expectation is that the struct drm_device based logging helpers get passed an actual struct drm_device pointer rather than some random struct pointer where you can dereference the ->dev member. Add a static inline helper to convert struct drm_device to struct device, with the main benefit bein