Boris Brezillon <boris.brezil...@free-electrons.com> writes: > drm_gem_cma_create() prints an error message when dma_alloc_wc() fails to > allocate the amount of memory we requested. This can lead to annoying > error messages when CMA is only one possible source of memory for the BO > allocation. > > Turn this error message into a debug one and add a __must_check specifier > to make sure all callers are checking the return value. > > Signed-off-by: Boris Brezillon <boris.brezil...@free-electrons.com>
The __must_check seems unnecessary to me -- you're definitely going to be doing something with the return value, because otherwise why did you call the object allocate function? That said, thanks for cleaning up the error message.
signature.asc
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel