Re: [PATCH v3 1/9] drm/vc4: Switch to container_of_const

2023-04-25 Thread Javier Martinez Canillas
Maxime Ripard writes: > Hi Javier, > > On Sat, Apr 22, 2023 at 07:26:13AM +0200, Javier Martinez Canillas wrote: >> Maxime Ripard writes: >> > container_of_const() allows to preserve the pointer constness and is >> > thus more flexible than inline functions. >> > >> > Let's switch all our instan

Re: [PATCH v3 1/9] drm/vc4: Switch to container_of_const

2023-04-25 Thread Maxime Ripard
Hi Javier, On Sat, Apr 22, 2023 at 07:26:13AM +0200, Javier Martinez Canillas wrote: > Maxime Ripard writes: > > container_of_const() allows to preserve the pointer constness and is > > thus more flexible than inline functions. > > > > Let's switch all our instances of container_of() to > > conta

Re: [PATCH v3 1/9] drm/vc4: Switch to container_of_const

2023-04-21 Thread Javier Martinez Canillas
Maxime Ripard writes: Hello Maxime, > container_of_const() allows to preserve the pointer constness and is > thus more flexible than inline functions. > > Let's switch all our instances of container_of() to > container_of_const(). > > Signed-off-by: Maxime Ripard > --- [...] > -static inline

[PATCH v3 1/9] drm/vc4: Switch to container_of_const

2023-03-06 Thread Maxime Ripard
container_of_const() allows to preserve the pointer constness and is thus more flexible than inline functions. Let's switch all our instances of container_of() to container_of_const(). Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/tests/vc4_mock.h| 3 ++ drivers/gpu/drm/vc4/test