[PATCH] clone3: clone3_cap_checkpoint_restore: remove unused MAX_PID_NS_LEVEL macro

Ba Jing posted 1 patch 1 year, 3 months ago
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c | 2 --
1 file changed, 2 deletions(-)
[PATCH] clone3: clone3_cap_checkpoint_restore: remove unused MAX_PID_NS_LEVEL macro
Posted by Ba Jing 1 year, 3 months ago
The macro MAX_PID_NS_LEVEL is never referenced in the code, so remove it.

Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
---
 tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c b/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
index 31b56d625655..3c196fa86c99 100644
--- a/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
+++ b/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
@@ -27,8 +27,6 @@
 #include "../kselftest_harness.h"
 #include "clone3_selftests.h"
 
-#define MAX_PID_NS_LEVEL 32
-
 static void child_exit(int ret)
 {
 	fflush(stdout);
-- 
2.33.0
Re: [PATCH] clone3: clone3_cap_checkpoint_restore: remove unused MAX_PID_NS_LEVEL macro
Posted by Christian Brauner 1 year, 2 months ago
On Tue, Sep 03, 2024 at 11:36:28AM GMT, Ba Jing wrote:
> The macro MAX_PID_NS_LEVEL is never referenced in the code, so remove it.
> 
> Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
> ---

Reviewed-by: Christian Brauner <brauner@kernel.org>
Re: [PATCH] clone3: clone3_cap_checkpoint_restore: remove unused MAX_PID_NS_LEVEL macro
Posted by Shuah Khan 1 year, 2 months ago
On 9/25/24 02:34, Christian Brauner wrote:
> On Tue, Sep 03, 2024 at 11:36:28AM GMT, Ba Jing wrote:
>> The macro MAX_PID_NS_LEVEL is never referenced in the code, so remove it.
>>
>> Signed-off-by: Ba Jing <bajing@cmss.chinamobile.com>
>> ---
> 
> Reviewed-by: Christian Brauner <brauner@kernel.org>

Quick note to say that I will apply the patch after the
merge window closes.

thanks,
-- Shuah