[PATCH 2/2] drm/amd: Drop all hand-built MIN and MAX macros in the amdgpu base driver

2023-09-29 Thread Mario Limonciello
Several files declare MIN() or MAX() macros that ignore the types of the values being compared. Drop these macros and switch to min() min_t(), and max() from `linux/minmax.h`. Suggested-by: Hamza Mahfooz Signed-off-by: Mario Limonciello --- drivers/gpu/drm/amd/amdgpu/amdgpu.h

Re: [PATCH 2/2] drm/amd: Drop all hand-built MIN and MAX macros in the amdgpu base driver

2023-10-02 Thread Alex Deucher
On Sat, Sep 30, 2023 at 3:01 AM Mario Limonciello wrote: > > Several files declare MIN() or MAX() macros that ignore the types of the > values being compared. Drop these macros and switch to min() min_t(), > and max() from `linux/minmax.h`. > > Suggested-by: Hamza Mahfooz > Signed-off-by: Mario