[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d8972012-269a-47d8-a150-f97aa6312efd@intel.com>
Date: Fri, 31 May 2024 11:17:28 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
<linux-kselftest@...r.kernel.org>, Shuah Khan <shuah@...nel.org>, Babu Moger
<babu.moger@....com>, Maciej Wieczór-Retman
<maciej.wieczor-retman@...el.com>
CC: <linux-kernel@...r.kernel.org>, Fenghua Yu <fenghua.yu@...el.com>, "Shuah
Khan" <skhan@...uxfoundation.org>
Subject: Re: [PATCH v5 05/16] selftests/resctrl: Use correct type for pids
Hi Ilpo,
On 5/31/24 6:11 AM, Ilpo Järvinen wrote:
> A few functions receive PIDs through int arguments. PIDs variables
> should be of type pid_t, not int.
>
> Convert pid arguments from int to pid_t.
>
> Before printing PID, match the type to %d by casting to int which is
> enough for Linux (standard would allow using a longer integer type but
> generalizing for that would complicate the code unnecessarily, the
> selftest code does not need to be portable).
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
> ---
Thank you.
Reviewed-by: Reinette Chatre <reinette.chatre@...el.com>
Reinette
Powered by blists - more mailing lists