Re: [PATCH v4 1/7] drm: Move and add a few utility macros into drm util header

2022-08-11 Thread Jani Nikula
On Thu, 11 Aug 2022, Daniel Vetter wrote: > On Tue, Jul 19, 2022 at 05:04:18PM +0300, Gwan-gyeong Mun wrote: >> It moves overflows_type utility macro into drm util header from i915_utils >> header. The overflows_type can be used to catch the truncation between data >> types. And it adds safe_conve

Re: [PATCH v4 1/7] drm: Move and add a few utility macros into drm util header

2022-08-11 Thread Daniel Vetter
On Tue, Jul 19, 2022 at 05:04:18PM +0300, Gwan-gyeong Mun wrote: > It moves overflows_type utility macro into drm util header from i915_utils > header. The overflows_type can be used to catch the truncation between data > types. And it adds safe_conversion() macro which performs a type conversion >

[PATCH v4 1/7] drm: Move and add a few utility macros into drm util header

2022-07-19 Thread Gwan-gyeong Mun
It moves overflows_type utility macro into drm util header from i915_utils header. The overflows_type can be used to catch the truncation between data types. And it adds safe_conversion() macro which performs a type conversion (cast) of an source value into a new variable, checking that the destina