Re: [PATCH] drm/modes: Replace deprecated simple_strtol with kstrtol

2024-02-02 Thread Cong Liu
Dear Jani, I want to apologize for the incorrect patch I submitted. You are right that the recommended replacements are not suitable drop-in replacements and I clearly did not test the changes thoroughly. The kstrtol function requires null-terminated strings, so it is not appropriate for the c

Re: [PATCH] drm/modes: Replace deprecated simple_strtol with kstrtol

2024-02-01 Thread Jani Nikula
On Thu, 01 Feb 2024, Cong Liu wrote: > This patch replaces the use of the deprecated simple_strtol [1] function > in the drm_modes.c file with the recommended kstrtol function. This change > improves error handling and boundary checks. > > [1] > https://www.kernel.org/doc/html/latest/process/depr