Re: [PATCH] drm/amd/display: return 'NULL' instead of 'false' from dcn20_acquire_idle_pipe_for_layer

2019-07-12 Thread Alex Deucher
On Fri, Jul 12, 2019 at 5:40 AM Arnd Bergmann wrote: > > clang complains that 'false' is a not a pointer: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:2428:10: > error: expression which evaluates to zero treated as a null pointer constant > of type 'struct pipe_ctx *'

Re: [PATCH] drm/amd/display: return 'NULL' instead of 'false' from dcn20_acquire_idle_pipe_for_layer

2019-07-12 Thread Nathan Chancellor
On Fri, Jul 12, 2019 at 11:39:52AM +0200, Arnd Bergmann wrote: > clang complains that 'false' is a not a pointer: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:2428:10: > error: expression which evaluates to zero treated as a null pointer constant > of type 'struct

[PATCH] drm/amd/display: return 'NULL' instead of 'false' from dcn20_acquire_idle_pipe_for_layer

2019-07-12 Thread Arnd Bergmann
clang complains that 'false' is a not a pointer: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:2428:10: error: expression which evaluates to zero treated as a null pointer constant of type 'struct pipe_ctx *' [-Werror,-Wnon-literal-null-conversion] return