From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFC41330B3C for ; Fri, 5 Dec 2025 17:12:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954738; cv=none; b=VC54YN/C22Bhyk5sFvPCKssWFp6exi0NGedf26yaA04ZyPjSSC00AMJm06uQL47l5sWpDDA39XWjigIS3Fz9djPb7uctLtfinEAeLU2cskA0PQoCVs7QxZtnHCeO8rzXydTM9Z7TJehfMvnEAlVhuL8vPhXA9h0nh7IKAF3HMCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954738; c=relaxed/simple; bh=3D8Jia7maxjOED0qB92SCnhCwD5om9jZB2vyXsShxiA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JwVxlByIthtSvzVhW4E3XHx3XpCtvPU37TC7NnDiWAP8fgL6C0IKpjVYNg+/uVeRE87Ans4lJnfDMZpipArrj9D69DWPKms9j9ruE8yYPOEN1pHJBAv75o6CHzBb82Zjg8UlIHzCv9Jfdt/mVLi7VAxO2TALJ15ejnhn9eg/g3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YWSqwp06; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YWSqwp06" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-297d4a56f97so30313455ad.1 for ; Fri, 05 Dec 2025 09:12:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954731; x=1765559531; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=LKtvRnZXXEkJadMcjlPO6UUmkCEVjlrlMZ1C1H0q9gg=; b=YWSqwp065wKnTjm7HpRnT2LAKeyuYHkp/dbEYH5qZZ2npmBtm8avAHLL64BZ/BlXnA kwKDJKwzntNGiGaiMVUWvaIxzFZboyFrm4jRvSRzgL5lWza83orLX+OX+N4RCNTiEat1 14SHyYKQHJxOYqpIbfRMGiUFgWIh4blNZwhfDjWEMSUHPVd7n4EkgdaDrQT5uz7QqSZN pDVcv5kmWG24GPvoaFUgg1pokpZaY0mcaIhgdfbqg0ZCbZB3iThpW9bLqoXFUx4pAvzO SRWbSUGjgW5OuXB8libbn2jwx1903F6KcSFW7BSJBPjkcrYro6FO8negxTW69RMrX/cS q9Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954731; x=1765559531; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LKtvRnZXXEkJadMcjlPO6UUmkCEVjlrlMZ1C1H0q9gg=; b=Z4rz0SMoTtMwX9VS/u1wOWZojCtEtCtP4uzTzEgqlgSSmd03kgTcB9xXXUtKtPXfY/ 9vG2G587g4nOzKs6mR9tENrYPhH7Mqwf3Bsak6NYe2jDx7o6JPEftvBCocUCI1cKT9xj 4n7tkSl2R8L2RNt4HGHsI7GusNLQ7PRP1vswa7HcWHAY5z4ve7z3NE+P/kTRy0Fp90Xt SihYAxpwbXVbHkFJpWP2Bx+pwUK+itYbQExFA3Hp5jzd3kKlswu2ZfrVB6Gt5y1LLQJf 2S8b+hmTvjS+zgfxuMDGrEVhk3UTod1p6aETHOtQQFvKgwck8HbwZ2UAc+gyOnHk6XeR BPwA== X-Forwarded-Encrypted: i=1; AJvYcCWX5ThBzcZjeb/mHk8JJ/WHOfnVx75eObNkbTuuWLXOIo0x2qSaVXZbnVVYpiKpOKkVUOdxbD+1TNXzjdw=@vger.kernel.org X-Gm-Message-State: AOJu0YzA3KipvHHeV08OCQJ5yY+3Fvb+if4H1nYtXZpeeFvbwUf/VJKn hhdv/gL4+aDWbrWJYR6bvQhZcanS+jLw70t9+WloP/YyvPV3k5ELn+Mg X-Gm-Gg: ASbGncsXCaTvTc0P4IMtPoEZ29urN2HHvWS17ToL/rn7E0WYI/TEGXmVc1PN74liTNs ufzYj4tAGegSoiTfs5vOMtdue+ZbB/gaDRp/XbwbiqOCgfxwMnMKIXHbR1x94seYm1OAzUJ+SWq EGtBlGljGAlp/h+csChKCYYVl1Q/RHGenzj4U1eOn/3/Qm9/sF9l2a8bYipd1dscu216aAeOadl P4xgEYCmjyKHCB55zcLnmFeil1ghBFId3MROavW0+6CYK9quAamU+qSWwr623OddLdYoe3FKV5v 7h4dx17ty4Rctef7h3gcxZlfEwL2nw7lgXeAg8k/Btxh6sKRzYm2Snco9u1HhbRqbhyjSiVrPcY dg/EcPyHSSmBulvI7qhKrDiIyv8aNZrvoyPN4eCSwwHYPNAyIkJVY3ys5zxd/W93p0wvD2GFODJ WFLYLRKgvqi09FgQxpPNG5YH4= X-Google-Smtp-Source: AGHT+IEr1nY1dhYbPFblTm+sfB+BT05pWYr0So+DnBf2OW6AgkQWCY6GZ40JgzwGeLxSF5IGH5l44w== X-Received: by 2002:a05:7022:2218:b0:11b:9386:a3c0 with SMTP id a92af1059eb24-11df0c505admr7292285c88.43.1764954730772; Fri, 05 Dec 2025 09:12:10 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76e2eefsm19408192c88.6.2025.12.05.09.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:10 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Adrian Reber Subject: [PATCH v2 01/13] clone3: clone3_cap_checkpoint_restore: Fix build warnings Date: Fri, 5 Dec 2025 09:09:55 -0800 Message-ID: <20251205171010.515236-2-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix: clone3_cap_checkpoint_restore.c:56:7: warning: unused variable 'ret' 56 | int ret; | ^~~ clone3_cap_checkpoint_restore.c:57:8: warning: unused variable 'tmp' 57 | char tmp =3D 0; | ^~~ clone3_cap_checkpoint_restore.c:138:6: warning: unused variable 'ret' 138 | int ret =3D 0; by removing the unused variables. Fixes: 1d27a0be16d6 ("selftests: add clone3() CAP_CHECKPOINT_RESTORE test") Cc: Adrian Reber Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes build warnings=20 .../testing/selftests/clone3/clone3_cap_checkpoint_restore.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c= b/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c index 3c196fa86c99..976e92c259fc 100644 --- a/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c +++ b/tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c @@ -53,9 +53,6 @@ static int call_clone3_set_tid(struct __test_metadata *_m= etadata, } =20 if (pid =3D=3D 0) { - int ret; - char tmp =3D 0; - TH_LOG("I am the child, my PID is %d (expected %d)", getpid(), set_tid[0= ]); =20 if (set_tid[0] !=3D getpid()) @@ -135,7 +132,6 @@ TEST(clone3_cap_checkpoint_restore) { pid_t pid; int status; - int ret =3D 0; pid_t set_tid[1]; =20 test_clone3_supported(); --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B211333A711 for ; Fri, 5 Dec 2025 17:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954742; cv=none; b=mXybzQ00sBNc+/yHCriGYeCCpCHRq0mvcGK9XsLGtwfafflfRtRW6wo0IalOrfYuWhIFn/Uc02uEwX4wbJW9YaA5cQVGAshbzWFEWSsXSWKLl8dvC/qGlhtRVEOqNWcUSpS18I+pONSpNgOCC3gmS94DEfTQQrhH8TfjdqKR5Fc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954742; c=relaxed/simple; bh=zQXdANrAyobWWcUFn+j7Tv5/akEdbk709MOA4NwiFNo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dFmmgQOJbOZrg0YP0imUg7JjFk10YPFHKFiropkpWcxWEgG/IfsmH3Mkzm6I0Uv1Crr/a+SMpJ51ELYfbLz3reR1pG72gqbSfShXrnfZFN66FGuiLjzBUS7YryDBLM0hQfpwpPeQkgjlLhXa/hEUkllN6kl3Pm89x24tebFixNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ShpiucD5; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ShpiucD5" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-7b6dd81e2d4so2546020b3a.0 for ; Fri, 05 Dec 2025 09:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954732; x=1765559532; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=pGP855q8P483/tvMYnKD3q8c0QVPBAHakO/1UvcTEb8=; b=ShpiucD5CfH6RxTe1uOiHmjhJxOqvhW2w1po4HFvFUfjGI/pAp6RVV3JA5fOIig3C+ agqJZ4DMGXun3iJpTMtrmfX9w5ohDBDvrOuThC4NKa/E5OlbkEI8tu+6Gnl5byhCNLHP bWD4KFNvutkrwaaXaCkSGxgH6uLWtiKOvj/3Qp3IGL/jk6+LFJDDKJFm9oaClJe0YgjB UGVj3I/kkh8krwY/v9yTYcZNOzWQdFXJyTOUvoOGjQYhvDawnVO+/J+qORctn7HWXxrP RANvACI+0+CUGHodyK3CWSL2/CvDWnRoL0oq7sdvW6zwOmilrpXdf7IMMQUdDCVsUMJ7 qlNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954732; x=1765559532; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pGP855q8P483/tvMYnKD3q8c0QVPBAHakO/1UvcTEb8=; b=aPOheUslVW1Uu9n+U/UUVP61rd2ogyj5iK+ZyTV9CpEr6nw0WcObgGiSCvqDrupKSF pMIm2fJZI8o8OgUY54cYyKeU5ooXa7wmGxas+bgprcEBLW1XDyJVBtBCy86vYYI2qrS2 stdNJC+IebhMjsTeiCffANXm6OX43cP1ycH6Dlw1+p4UitToogruK8LvtRkRvccvdDn7 vwJvtkn8EvwAIiXdjWM9CvcJlbCUvuL/D7CIzd2EzH9+87LZXymIRt7AgvW9Zt8hVQvb V8+8pUc8j1VFhbHByA4DiSZ/JYAGBADVtwdJdYC1ad7FipTjdbHCuMRfyLtIRgpXWLjk 8T/Q== X-Forwarded-Encrypted: i=1; AJvYcCXE5qq/dngVGiGgMnVt6hdNnOrQ0DYlGYy282TkfkxVvU/WhHrKfzgbZtOX+AXIItikGYEZ3bgSkVldLBs=@vger.kernel.org X-Gm-Message-State: AOJu0YwlNGzjxe4Zu99Z+TNPmI4ciHpNymQCZQmC7L2j2/JUNf/N0/se ZrYg26y4O9+mny3hVo8MF8zfBwAlBVtMudBUvXYLAcBnaX0wSM/X8U/0M40I1w== X-Gm-Gg: ASbGncuzegN5G8zX/1AbWdMY54n+vuYBM6UzCdPIeEEachG/PH8Asm6bh0zvVuGL/eX +Cu+8ZCzNsR/4bg8gawBGg+K9ewC5GzWv8FzhtP7sr4Ymif9FHdbIs0xASaiFolfu2rY4DlbDEz 1er5YOoPjlEI6gy5ZK8LYFSpGf+8+dVxhzipVD/3A+OmmlFjWIJ84u/V/M7VIWhPW0HUZ0brldS 5njxHZFVdphd1fKHf+49VBOdEI+R34/G/hBAwc+jYXN/CD9/d+jQqqW7je6r2iQp1bvEeWn7kbX 4+6SDSelunE2DLJku16B11Iowfm5r0hiW0BQcP142K/Nu2N1JbBFITODezPYnQYq6KrX3e7eyor gH9xoPLkDGzYX1Not/RQVUTl8rL43jVOKJRAaeFILiCObfTCTBfICu49xS17bZiDD7qjiS1TpKr copHvKdfvhgTePmanwQrNmrwk= X-Google-Smtp-Source: AGHT+IHdTvay/STs3LNZkpmmMt8IstasmpTYD+N4EpMd1XG2nuq4zcxaDuN9vSlvYoOBreCnQRf4EQ== X-Received: by 2002:a05:7022:258b:b0:119:e56c:189f with SMTP id a92af1059eb24-11df0c3bbe6mr8274625c88.7.1764954732270; Fri, 05 Dec 2025 09:12:12 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76ff44asm20697582c88.9.2025.12.05.09.12.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:11 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Elizabeth Figura Subject: [PATCH v2 02/13] selftests: ntsync: Fix build warnings Date: Fri, 5 Dec 2025 09:09:56 -0800 Message-ID: <20251205171010.515236-3-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix ntsync.c:1286:20: warning: call to undeclared function 'gettid'; ISO C99 and later do not support implicit function declarations 1286 | wait_args.owner =3D gettid(); | ^ ntsync.c:1280:8: warning: unused variable 'index' 1280 | __u32 index, count, i; | ^~~~~ ntsync.c:1281:6: warning: unused variable 'ret' 1281 | int ret; by adding the missing include file and removing the unused variables. Fixes: a22860e57b54 ("selftests: ntsync: Add a stress test for contended wa= its.") Cc: Elizabeth Figura Signed-off-by: Guenter Roeck Reviewed-by: Elizabeth Figura --- v2: Update subject and description to reflect that the patch fixes build warnings=20 tools/testing/selftests/drivers/ntsync/ntsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/drivers/ntsync/ntsync.c b/tools/testin= g/selftests/drivers/ntsync/ntsync.c index 3aad311574c4..d3df94047e4d 100644 --- a/tools/testing/selftests/drivers/ntsync/ntsync.c +++ b/tools/testing/selftests/drivers/ntsync/ntsync.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include "../../kselftest_harness.h" =20 @@ -1277,8 +1278,7 @@ static int stress_device, stress_start_event, stress_= mutex; static void *stress_thread(void *arg) { struct ntsync_wait_args wait_args =3D {0}; - __u32 index, count, i; - int ret; + __u32 count, i; =20 wait_args.timeout =3D UINT64_MAX; wait_args.count =3D 1; --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B2F333ADA2 for ; Fri, 5 Dec 2025 17:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954745; cv=none; b=lLjG17JWtEjuS8pvDdGBpmGV+3sXqW6ZDheMInG4FFeAx8X/lR0UA572DifMN7kvz4kIrjlrPn1y19fLV7+PblX8fNxj4xO56WwKO+RGpKOBqKz6qU+3YRD4IDcnvLB+pzVo1/uiwAN+s/nZ3ufnCF3qUXlfaj1kKmSMIs2tYB8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954745; c=relaxed/simple; bh=PeM3U+qiUJyHEyS4FHxgahZdXga3yLayx7E6kX53b3w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JxNUQSfDyr46nttsPZzUVodZ+aDNHWIVP6ekaXIapEWYXYjYQOzPnGvUeKVBqJRB9AmcubvMqAWRyEDIP7raF84ARR6Zj8vggE33hmH+nQwLLR0oqHNLEANrt3PjN3YL848kCxCUE6G+GRJ9W4J75TDKAmGtuenyDSmcgHmp67U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=i5tfFdwR; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i5tfFdwR" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-7b852bb31d9so2842989b3a.0 for ; Fri, 05 Dec 2025 09:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954734; x=1765559534; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=c4zEaQaL7Pv6lx/OIuxHCiaYn+nBOnbMD8B+U7ZMSws=; b=i5tfFdwRm59drgmdOJ3B9RXWJ6Pw/QlX2qAuqLzjNhsfLEdszQVDFpSrc64kLViifo VMFbclFJ4Hy9lLUfGfTwS/KukdAPDIWJRgWZ+tIlw2ImlPD899PlZzuTqLarWQqs6Mik jfGMMQVqPkKOncjy3H7gzLngj77i216yLhQa7/JDnvXxJrvFpUvwgR+7yU64iwAOXJmX 2mbkulgGb0umKQiaVEEmpErPHVTCpk2YxublgQE1DShQz4MJ3lAXIpph+tvN+i0JVs2K 81BQaNaZ7v0ls51Ems+5AmLmWqgO3apSOkv3patmVydLiq0VrfFgEEkXP3gYryMYkTBD DDiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954734; x=1765559534; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c4zEaQaL7Pv6lx/OIuxHCiaYn+nBOnbMD8B+U7ZMSws=; b=GMrW1I2wPPvy7bowbtm/hwzC3jF315tQdmbXjWYHAGDwacnBJKxG/+Oow9rbbA7GXo aDYPWNNYam3wO9SFLJgfh2m16o+tuyLZmHrUo8BFvS8SlfXWizm+gbGTMRNPc1MM2WUl ky7VmhCqG3ncyxraXJz8/nPFUO1bQW1AXOLvat9+BPEhjAREs8+Tq8ee63NzRk8pL+Fe U6TWsCuDM5COrz5lr8YJK4xqjlusMK+V4oGFOC9YUDol6Z0wk3U8DOrPDuP7yOUqwgUT m7e13WPVAdsQqQIAahwEd5dXJXyo309q1wynyk7ie7VOWM42g3T86+U+Rdn7yancBREp 630w== X-Forwarded-Encrypted: i=1; AJvYcCVz7aEUegFDpVlSqs++VYvs57OO+124VUkm2dAqBZaRFUM3ivnBK3lL86R4H3wod/s+R5asGRtH1WVNynU=@vger.kernel.org X-Gm-Message-State: AOJu0Yym1C6qeqBTPeFPbPjMNAbuYaJdiGnR6B3QkbOlGEh3l0Sw41/J /06Bkl9e0pqwmnLI43082AL2/pLOS+jeSz5nW0FaXt7HmRoT3DraSf0G X-Gm-Gg: ASbGnctmb5EkCoo6X+YX7/3V0SPx6cf28Lrn7Iy6b+0dr3D4bg+uPvdZyUFeTtiIBgz f5vwN0WQMOFlfRNZxhzYuDTFNiX2b0s58Dcrlcqi+DwqY39WZg9jKS9p2ex3uaiNwDjTXSEAcOh UbGg9lcgkc11aDQ4IKJ5aSXlrJWijL8ZuZRabjZJPy3dZbSKuEa/18gB2Yl0sVuZKHIzfD/Y9de ZjH9BH2zkXXZF2OCPuPPAmZwl2bE+9xUsF9s16gdocjPdhivBxGWZ4QGiCqM3JExgJEVtTx96YS Gycio5jEEdBLf85ZTSakMVJE+ZkJdxcdMvFV3yPaovLknecFXEzP+o4YZvnP6lfhN382mEu8O/v zfMYPI0jGGfk2GI0w/JFnsEHfrj1TVwol0pATpRrPhi7N6f3OPeDGyDL4CrU+RXYJXhjFA0o9TB 6HzJ2yE6zA8TDFE0B5sj7+tlY= X-Google-Smtp-Source: AGHT+IEILnyUDBxkUqKFnFNQ7Nhkhn0QxxXlIHLswHfB2urPR98N+iL6vUBWuopWt/6R6xiEyOLeuA== X-Received: by 2002:a05:7022:2596:b0:119:e569:f623 with SMTP id a92af1059eb24-11df0c47020mr6816898c88.28.1764954733575; Fri, 05 Dec 2025 09:12:13 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76ff44asm20697818c88.9.2025.12.05.09.12.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:13 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Aleksa Sarai Subject: [PATCH v2 03/13] selftests/filesystems: fclog: Fix build warnings and errors Date: Fri, 5 Dec 2025 09:09:57 -0800 Message-ID: <20251205171010.515236-4-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix fclog.c:37:21: warning: call to undeclared function 'open' fclog.c:37:47: error: use of undeclared identifier 'O_RDONLY'; did you mean= 'MS_RDONLY'? fclog.c:37:56: error: use of undeclared identifier 'O_CLOEXEC' by including fcntl.h. Fixes: df579e471111b ("selftests/filesystems: add basic fscontext log tests= ") Cc: Aleksa Sarai Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch also fixes build warnings. tools/testing/selftests/filesystems/fclog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/filesystems/fclog.c b/tools/testing/se= lftests/filesystems/fclog.c index 912a8b755c3b..d7cc3aaa8672 100644 --- a/tools/testing/selftests/filesystems/fclog.c +++ b/tools/testing/selftests/filesystems/fclog.c @@ -6,6 +6,7 @@ =20 #include #include +#include #include #include #include --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DBFD345CC3 for ; Fri, 5 Dec 2025 17:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954747; cv=none; b=nvwPxX4ZNJBMVaAfY5SMH4hZIqxslGdQFAdIJxGCQSgg50PR6W3QlXY+qi9NX7NAhy6+SdSWTDmAKhy2rh3ajjideNwR3dtFTDx4l/Lu10neWCGudVkZJ4pkLzzn36MDq5Z/LmOi3myejnD69KWkd6ay1LT8KpigktJk0xq1Lo8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954747; c=relaxed/simple; bh=pgJ6ff8paldt7V+cFG947O9X9Ylktw6h4GCVRLqVB2o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qn/RDuNLindSFmiJKdzE+FGocevSYCjXOMv1eG1cEyBnkq7waG4EAh1re4pMhDDvTTw4aLOTy2yA6Z+tiEFoio3fK9FGd7SJLWTcTjk2VMi0D+tAz3rfFIqBVp55U6Y2zF/pARFfddxVD9rf2snCOhDs5Ksc3R1btV67HlZQPVw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Qx3s/rzO; arc=none smtp.client-ip=74.125.82.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qx3s/rzO" Received: by mail-dl1-f43.google.com with SMTP id a92af1059eb24-11b6bc976d6so4344718c88.0 for ; Fri, 05 Dec 2025 09:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954735; x=1765559535; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=zvo6P+4Y0aHWjG3Dbxy/Vth64KyTxoqjK/aQ5O3LvqQ=; b=Qx3s/rzOxetlefVCd/9b0e6fuf9Fxcyhf4+Un+8WtZbK3GehiKSpqlVaskjOGKoh24 wHwCCa6SGkX88GU3x0ydtAcq8CyMECYfCUPwW6TJVZQp2tsSAHGaUCnICmM+qOXmfpk1 uwN7IcFLC5587uRO6q79Qm6CF184uWBz7SzZKFwi4KAIrlnwbLeLAzW2GzlPIHxPmoVL Mcaz0CBx+iYDUDGdZd1bM+9DtOSWYzSayQdbswTFCtI86ifHelQnBh6SHPeb35b9cT6K MZfYEZakBTlHh0P68RNSk1209SP631YXS2Ik2jeaaY9tNuErPKzvd6THNdLe0eZRf7gB RvSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954735; x=1765559535; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zvo6P+4Y0aHWjG3Dbxy/Vth64KyTxoqjK/aQ5O3LvqQ=; b=vw+RgTbjsSkdRxQNhgwjnh0F0jFWjFf8ZZ938EDQ9j3/3Ndb6cUe5BV0qMhyIj8E3H tHIytv4XHdVGqiS6T8IkhlAwRURJSpTtHjhFrNKH8PqMH2sOMUGD5vioSqy4anMDcQ3y EnOegZMyel1vbK9BRj6yzi7wtLqqvIlobeqhV8SFwmDetZ2wkr+YKY+Lw1g72ZMYlaAv eMskW+2DKEvAseB0diTUMzrSk/bz3iKaP4GOLWqdwcgRqpny16Q1TqUM9mDeZW8e/VWm Py1udCW6V5NPg/qlAjWSolOSvu47GQzaJXT0lMJFRBXUG01ysRqoXSccaixN9wFmevkE 2wEA== X-Forwarded-Encrypted: i=1; AJvYcCVw8XVw7EuO6WZ3U30RM6TPKPm/SAI9/jRC+oql3M9+kKJMXBf8SyB+WE4GifLjEAEqK48h9ZHmWImNOiI=@vger.kernel.org X-Gm-Message-State: AOJu0Yw+3KQa5CXXaC7Vdhif9FSsyekGsudYjF6/VAsCCUDLdVpg10I+ qAdYIw/BqWFifewFJLn81pcEzxuaFQSmC2IWVHIpxHX74TO7e1Tbwgtr X-Gm-Gg: ASbGnctArFSyNVyJ1p7xP9w2An+EUsLp83+LznPrG8pVyPVGu24pkelUObnYIWSB4+k Iu9j9QCeOD+IH7JzFycqM1HUguHK2pxArTHAQxFb4oMk1O32UiunE12u7HMfs1fZ5bmnq8rKK6Q 4j32qqFB1a/636WAq4ZWBH2+gJDxdeMTurWuXHAZJrAZAW1rGuJLdPqUEsAgtSsWXzcIq7Wd5bA NBxlkDV/+2Di1A6Rbv9+ZbmjTMgqhPnRpgrMZGmnEtRHvudPJFpzLadxzNnGxJotvsRVJSMHuwz s3gSbwcXsyQtXcjsTIXvKLtUTOnfF8v7P0xNfffE9Q3KNcVnD6hyKYl6CtjdefT2r+qBKR2ve7M lFaDkUeG5ANFCIIGB9ZhcxQsj7S5x9qQ8gQX+zb+w5p+j0c+6DbN+vGXQvz294TKMQSh6exkIA1 xfgJx/TanI71/uyBrMXqBgRPc= X-Google-Smtp-Source: AGHT+IFCC9u36dpszL8LHl6yuqSwEshH6IcGGz8u5zeSSUuddfN+n2v1mO2/tmCjMeVOnHnvUljNXg== X-Received: by 2002:a05:7022:249a:b0:11b:ca88:c4f1 with SMTP id a92af1059eb24-11df600e305mr6401788c88.20.1764954734841; Fri, 05 Dec 2025 09:12:14 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76ff44asm20698013c88.9.2025.12.05.09.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:14 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck Subject: [PATCH v2 04/13] selftests/filesystems: file_stressor: Fix build warning Date: Fri, 5 Dec 2025 09:09:58 -0800 Message-ID: <20251205171010.515236-5-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix file_stressor.c:112:9: warning: unused variable 'pid_self' by dropping the unused variable. Fixes: aab154a442f9b ("selftests: add file SLAB_TYPESAFE_BY_RCU recycling s= tressor") Cc: Christian Brauner Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning.=20 tools/testing/selftests/filesystems/file_stressor.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/filesystems/file_stressor.c b/tools/te= sting/selftests/filesystems/file_stressor.c index 01dd89f8e52f..4f314270298d 100644 --- a/tools/testing/selftests/filesystems/file_stressor.c +++ b/tools/testing/selftests/filesystems/file_stressor.c @@ -109,8 +109,6 @@ FIXTURE_TEARDOWN(file_stressor) TEST_F_TIMEOUT(file_stressor, slab_typesafe_by_rcu, 900 * 2) { for (int i =3D 0; i < self->nr_procs; i++) { - pid_t pid_self; - self->pids_openers[i] =3D fork(); ASSERT_GE(self->pids_openers[i], 0); =20 --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E49C341078 for ; Fri, 5 Dec 2025 17:12:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954747; cv=none; b=s+ZDAST47bs/Ei5xxm1576bRU5tgWlnZnO46XFZOBL4RpqvfggLv+GMFE65gvqw2YP1g7jM0aZrW/dxTzidcftOkPXaRAud2LiGieR1Ab/ZZi3zBHicNr1xkCuTWYeiVA31/5nlkcDyfSUpGf90gLrdNUAoicUk2YMoCMSKNg88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954747; c=relaxed/simple; bh=IxOhZQlEd/Qy+CepjX8AS60bi75DFljz0EePvluZ/lE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ftXHqnU2AfwiK7rl11tIPPv/ZSfgN/bRr0+3PSYhIb/Ci7EvP1AzgZh/vsUYFpsirkU3JkTDMEfs2gNqtqv1Qln8jlXnCQNeeD9QNCOXnmUcOS4A4ROggK/3MNbq7AL8YMJ0KyTwjF3uDg7kcszmyvpNVlXfiBoM+mXbGphJI64= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VPlv8YPY; arc=none smtp.client-ip=74.125.82.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VPlv8YPY" Received: by mail-dl1-f54.google.com with SMTP id a92af1059eb24-11beb0a7bd6so4118803c88.1 for ; Fri, 05 Dec 2025 09:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954736; x=1765559536; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=n4IdV8qLxCXpcZvIrzxwaz1yCq/7QPM0MNgJTT3yV/c=; b=VPlv8YPYEfO7w8MO9RAkz9CUM0VsJEckg/+CMpdCFwxKyk4QYo7JaR2dY9SRwvIsqH Oe0bdXebvMAi2Q6TKgcFa8sfg7zR8FLCuvTWH4EadyIuMHcWfDxEGwF7Maxc9fPjGb1Z KeKNJ/CbG9zRlmBpr0K62GFO3l9L2n6G5BYjk4BB6TBXRaD8ANhntTpvFBlDIcj29tNL wk9a+SrD5rHQ6r7QgT8srfuowJic48rHP26yFS7NoWGxTJQ6Tav8bndTFUnqfnM29OWj jSq4tN8MSf2clwr7crYZYD2VRcQfMKMDbKj1gELuwYBdWF9ATJCmzu2Qr/sfdA8FPXcM zuLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954736; x=1765559536; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n4IdV8qLxCXpcZvIrzxwaz1yCq/7QPM0MNgJTT3yV/c=; b=KLVXxCuuEEWXN8X0LY/txJ1+7pWyYoV+9bsep3o1xZakUjIYdQ1gsH97Z+KFRRWaHQ wbROo0oQJZRD7OruMbfZPg3wfP2T7GzNpKH1u0y/RIjqPeIgrRmuZFsCr2EZ9T94tgqI a0xKA/l/3K7Zn1s39hb7UvmU1avfp2JBLq2VpMlgQMyILg9fknEr2W1074kZrFsB64TL /wvU9ou5U23llzJsi4Hk6lhueCk+Ah4jgFLYGo3/mgU7QMjn8Y/zehF85/zC3myQX1MV sxcuKvLk3J3W7DVmlZZbEl5rhKcYgDAggk2H15AzTW0L2hwztou85G+pKfv/Y2BHYzv0 exhw== X-Forwarded-Encrypted: i=1; AJvYcCWM8tPrWGdLBuDNt1LwzcZQvlIhNu4isuuuLYmf0Ikh+8KJmzu+1WtTiNHsmeY+Cp3ioWENutqa6//1FB0=@vger.kernel.org X-Gm-Message-State: AOJu0YzB7BnE6DCqlMxKAZwpU8QKaGVlPFQuhAWUiltpjPHZn+DCFt6t i23bUpkCknlYgNxrHLb3PMkINeamMHMlvdCsg+swDE+Sk9mfKHoSrSAS X-Gm-Gg: ASbGnctsPBh0BdLBXlrRu2/neSnGUo0rNxsCUHCGfGsyk4qLHC5WN8ZYuf9M983L72Y UMwh5y0OLXha+JmbABnDVKQGsMI1/xQLhbLOEEreVrif+jFOUaPHRDM6uAq7LxYDGclFFFWQwAZ 2SHlL+Ax4OyT87xEZWTQU3uBwFLDbJ97VjeFAWplcRXiiIqu3Fmj7bG7kGSiqyx5chbC14E75vS oOG0c6+lgPYf/GuSvG+Rmtrd2K4swUz4yDtfqOAHladh1JHukg2fk5Oa684Gvq6iJhp1dyiozGh Z5TG2Qk5lY2aApmd0+d+kVXZy8+pPfeO5iHPMNiMMSUr4heAiPBqWBgVhKhi5Tb8uORXW5Nw6cx HJ4AkiXDdDopTCmgeM4gCqe/Z7+uxrSAlB+RWiRpDUcYZbyfUuw9ES48Cq4Kl6FtzDNU8wIA5Sw iiKBm2YqekTlaV/xu+qehT4Eiw8ScRPNBsrQ== X-Google-Smtp-Source: AGHT+IFIrrXmeRELseDoVSjhKR65g42A+CBh3uKmPIej8MyEU1H63Ol/p4iC5ibACsKwkEY6LwYTPQ== X-Received: by 2002:a05:7022:43a4:b0:11b:ade6:45c7 with SMTP id a92af1059eb24-11df5fdadc6mr6650958c88.3.1764954736002; Fri, 05 Dec 2025 09:12:16 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76e2eefsm19408894c88.6.2025.12.05.09.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:15 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck Subject: [PATCH v2 05/13] selftests/filesystems: anon_inode_test: Fix build warning Date: Fri, 5 Dec 2025 09:09:59 -0800 Message-ID: <20251205171010.515236-6-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix anon_inode_test.c:45:12: warning: call to undeclared function 'execveat' by adding the missing include file. Fixes: f8ca403ae77cb ("selftests/filesystems: add exec() test for anonymous= inodes") Cc: Christian Brauner Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning. This patch does not fix: anon_inode_test.c: In function =E2=80=98anon_inode_no_exec=E2=80=99: anon_inode_test.c:46:19: warning: argument 3 null where non-null expected because I have no idea how to do avoid that warning. tools/testing/selftests/filesystems/anon_inode_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/filesystems/anon_inode_test.c b/tools/= testing/selftests/filesystems/anon_inode_test.c index 73e0a4d4fb2f..5ddcfd2927f9 100644 --- a/tools/testing/selftests/filesystems/anon_inode_test.c +++ b/tools/testing/selftests/filesystems/anon_inode_test.c @@ -4,6 +4,7 @@ =20 #include #include +#include #include =20 #include "../kselftest_harness.h" --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1885D340A6A for ; Fri, 5 Dec 2025 17:12:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954750; cv=none; b=YVo22sCLaLaFNdw8GiGgCCtW9cd+V+KbNTXrF1nKVvfKT7x78Xlup7/8JQNmxZ49j+wM2SoNM+5Jo4+uxo8gUKuF3U6sJWbyE6fTVSiJhgAmTrBVAZuNZm9fRQYTLPG896DMTQut40f9drzz1zq56VkzVcim35E9Prdx86KMmyI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954750; c=relaxed/simple; bh=M2vFDyyUfG7JkznxChmdBB4qNaHZV2aWYVJ2i7s0Hfk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LG2T3rIEKB8nbSZHqVNkAWgF7oN/k62GNnzGv46mfOXpJ6Cv7QWBOwaYthj/mOdiTvj5HufeV1G55IPymSKSReFwQkE4b0lrluTEpyqQ31q1bfewf43mINGb1LdMDME2i+oFLeFuArGZ/fM0vcKHtyaKo5jLNvYij+ydJ7cSTXw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b5YTeIx5; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b5YTeIx5" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-298287a26c3so29022335ad.0 for ; Fri, 05 Dec 2025 09:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954738; x=1765559538; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=/vBZwIvLvx6D7o9yPmhW2hQH1LVZ8ZbPnLZnaPeYgfI=; b=b5YTeIx5tQetKP0xsFxE6Xqgr9WAqiYEYngVQjIgoDX2C4ZRKp7GYZSP7ZtcQZr2er R4Cz2RAbfV9iq/ksTAFCv+o4JpURo0vMtLMSORnEHm+OCO3z2z3mfZivv/64YEHqZj9h GcVU9Dza2wZwaiRxEGtE2TpZuZpUatV+A1yudGhDm19BYNlaU+TBw1csq/jK6kfqM7UJ thgHXCzMba1QflmatWQwucm8GjeeDPYR6Iph7yrZszQJ4GzsybIoLz7qYWMc8iK7p9iE 8sMPlpWsdq2ZOJO8bh/+cPiK8sv7oeCFB6ktM/IRHzhwsqcY/3IRmpcxHUI5o+eEANZM v+BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954738; x=1765559538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/vBZwIvLvx6D7o9yPmhW2hQH1LVZ8ZbPnLZnaPeYgfI=; b=R4lFt1mZluFFk1eqIm0n3Z5urJ5hivqTixWwQuFlb/pZrXCL45JihOwSIPUoofCxu/ DQhQ0MymHwz/AChBAx5C2Mqu4QbxkhAM+Jxu/YAEY54SVZCfUaJYDK6R1uKMcCnJGmIb GQO2bvuWDkbsYAF/vpdmFwX8hQUhWXHOAWb9o8rcT3gq05l+mO7z9BVUcJ1L2z9zg9eW b6B6gPz7cp3jPuNmT2L13eLg0aoDi9uUPYvC3P7VH+jTibHX28C//uF4l0OL1r8bovsj bXaseTaphErf2bncyl+r5K3N3mI7btseRwIY2LJZDgBnAoTyRIjZ/bIvCe1q5to2pkE8 Lbig== X-Forwarded-Encrypted: i=1; AJvYcCW/49DT4eqW2h6aSHa2+0VjVQB1PMIfcZIXVqdUJ/sWW74mP/6sBS47MrAbVffXM6L/kRTrX4rXj+3jQqw=@vger.kernel.org X-Gm-Message-State: AOJu0YwcH28TmrbpTEHxcyVf3Ns4OpQxXO7lcGhyRU+TjyP6RxHVGjpc Uh0wltWdSqh6miLyw2yEyiK8kMjMRnPAW/G+Pmcz62rtHr8NxJDRB7JM X-Gm-Gg: ASbGncuaP07mN45gRaGcDrtUu9BoG7aQN8CmULd6Iw9zqotAXnziHEpSy4opODa5SxN wWLcP8GE+1laR6VYQghoU4y30nAwfQZeuRYYc+F7jOmKYrqmtrSqrzsPxX/76X8g8JROOkpzOoH xYQ2NdYId/05i+Gs/NMZ6jGz2Dz3krvHhqlVDmvt0Q0fGkViXeneOIpBhUR65xBKgUX+pjGmyw6 cR67lHJIzzNkotImZidwotSS4KCwr2XnCMeL7kstXXu88cZKge0uyf7quAq+NiOK2MrAC2jeAR8 /j2SzYeezR8dnIYXjsfhlom36V7hjn84M0xsLbb4rp8uuRbpOYKnH6bchtBAuYzvYnxVTRCBrQT 3XfHFG9qsEIIV2Jf/idEraj8Y98ZHBOlj6qL0H7m0WNmt9FSRkq9FrNRleyfESTCBuhOxG/o9eh L+T7FpNuqccO7fAwZ8hMqQ47Y4EjkFI22nMA== X-Google-Smtp-Source: AGHT+IHedJC93D+L43aGh0gHVYz0R+imftKPymAfmBV+49IIc8qNl+K0a9+Ao52i2Vy/p8ADlA4ahA== X-Received: by 2002:a05:7022:6722:b0:11b:d561:bc10 with SMTP id a92af1059eb24-11df0cae991mr7658546c88.41.1764954737734; Fri, 05 Dec 2025 09:12:17 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df7576932sm20209499c88.4.2025.12.05.09.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:17 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Kuniyuki Iwashima Subject: [PATCH v2 06/13] selftest: af_unix: Support compilers without flex-array-member-not-at-end support Date: Fri, 5 Dec 2025 09:10:00 -0800 Message-ID: <20251205171010.515236-7-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix: gcc: error: unrecognized command-line option =E2=80=98-Wflex-array-member-n= ot-at-end=E2=80=99 by making the compiler option dependent on its support. Fixes: 1838731f1072c ("selftest: af_unix: Add -Wall and -Wflex-array-member= -not-at-end to CFLAGS.") Cc: Kuniyuki Iwashima Signed-off-by: Guenter Roeck --- v2: Just using cc-option is insufficient since it is not defined, and if it is not defined it just disables the option entirely. Include Makefile.compiler and declare the function locally to solve the problem. tools/testing/selftests/net/af_unix/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/af_unix/Makefile b/tools/testing/s= elftests/net/af_unix/Makefile index 3cd677b72072..4c0375e28bbe 100644 --- a/tools/testing/selftests/net/af_unix/Makefile +++ b/tools/testing/selftests/net/af_unix/Makefile @@ -1,4 +1,9 @@ -CFLAGS +=3D $(KHDR_INCLUDES) -Wall -Wflex-array-member-not-at-end +top_srcdir :=3D ../../../../.. +include $(top_srcdir)/scripts/Makefile.compiler + +cc-option =3D $(call __cc-option, $(CC),,$(1),$(2)) + +CFLAGS +=3D $(KHDR_INCLUDES) -Wall $(call cc-option,-Wflex-array-member-no= t-at-end) =20 TEST_GEN_PROGS :=3D \ diag_uid \ --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23695346FA0 for ; Fri, 5 Dec 2025 17:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954753; cv=none; b=TtlB2Da741neG/giH7CYcpmlXtm5hVVCI3LuSqVCdEmZB+o27wOSmOD54voSmlS4Dqn3GJs35FGfC3GYybrQxNHevoGTVYJIBv0WpEOk/6osAnv7cg2pMlaHmUmzJT9OeBxoRflOlmyrBjM6Zttaan997PAnuso/9vrQpb7+K30= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954753; c=relaxed/simple; bh=TVRX6OVXaN6/F8l3SopsYHbh+ST+dk2HGsZrDg1QD84=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bi1rG2+n5CD3wElQivICcMRxkaeue8DD6GCOqHMWrRVoRqP4bAoM3PWupNxVK15AAZn/YYWnvtHHMQRrzlLnBF0eTqtMb6sAADDl6KZIsvzFODNTT5iPdXTcctnBFlp05fbkw2EST9nZgtHllaLuHkMELB0mG+l+cvoBZDOZZaQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UuK7fuQN; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UuK7fuQN" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-b98a619f020so1771598a12.2 for ; Fri, 05 Dec 2025 09:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954740; x=1765559540; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=BIl/aawA4xeGwYCaPG7Uh3j0tRW+jDxmmUaf9p3hcUE=; b=UuK7fuQNuI0rtnsf7Nc33GBdx6dzAfSUeKBvuz7tojI5LL5uZh4PrtvpuiYSBRBeSM ALQc4EF1zFTgEOJdSA9/Azvs02cgC57UADu8nM8X/hUYv8e5LBzzofRDfuScv1lfbmqU ZZaUKJQBjM5BcLmAbfVdaofY6/tVaNo3OhT+Qk2VokG9/i0l/pBjCPFxlX+yz5lJxMvu uGlJDWWBFhfLoUj5DLdlaMMwW48YvUmSAgySVa3+mFNnnWqQl0cpQgFRxLN3aVeJPF7a wHwwCt/+MFb8XFzLUn73PPQHYSIPOSIQna7daHzGmE4udWc9O8LjdtN9ZcKkXEEtEg8U u7sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954740; x=1765559540; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BIl/aawA4xeGwYCaPG7Uh3j0tRW+jDxmmUaf9p3hcUE=; b=D9mn3ad5VygKZhqQccqAa/TXZzGlEWB9/A9mvkSTLfyq+Gs+1y3IqT0MpvJd2/9iaM IKwymBhyEKcGnB01UEIQ8b9qUGVqE5wXvpwwJ1R/YK50Fh045vggGv9k6yKa9kjdYGrq YZj1sVeNy18pbIpbxTjdPMoH0Fsn33rawyUA64JXlvjnlr/AR77k6W+A4DW6arHd5Fmz 9zJnTO5Wh+vYmVbLJ/zpm2XjGpQqqPVyprC1v1pYeveoAY3FfYyreVUvjNO1U+wCEslx K776eAUF7lA2wkJdpwDjUv65kjanXdiwZa5YfdvTffIxWoH4pBEa+Ro+IiMp7/4wSbSd pdfg== X-Forwarded-Encrypted: i=1; AJvYcCWMMmSSXKeGN8k9ujhn5Yh1kzJMvFLGnhtCPWRBXfTRg+gUuqTepbAf+46VrP4fGlFhIg+01ikSnF4c2nw=@vger.kernel.org X-Gm-Message-State: AOJu0YxFaylhCHq8i3rUUjhmNc3XYKxSGzMhcxgcZd0nRQeDqqHuF639 HGVSJuUut9OBCbqUhA16rdGAzv0WttMTWfprRjemmeEH6x8Q8rQusPFM X-Gm-Gg: ASbGncu1zrBmJ3Bc7A8nA0aQv8FZBjHo9OxQO+pU+2GQGHvF4fe9vGtB5sSs/hhdxX5 2A8IkzKrGxERlZ03CxfMgtGxNfdkcrEt/YTZTMy3mWMjIlNTi0fGFdWEI9QeBpSpdHZ+yWzMKFU 5PvKiJ87Y7niEoCBzOUXisFkNigMcSvoqUln9P8tnMMLjAY/dD/7wmy2AI0iLtRzIkJh73zv+AG vPRuXbjClDLB/UNFuBpEigWKR2416snZZR3VNS+2L+eDw0dem1O0oxV0akB9SB9sHN1LyfGJXwQ /0Cfz9XuP73uK7VzuS94+N/JLawbtSDC+6VLC8HauscNZQBasQ6wXnQ1a6vE/CrzThGUw8NyIlF QD6CugSIzSD6fpxitBnhttYlugr2SBjsclMhft94SbLvwuMHliWy4ZFmU2fotD78xOvbj/5W28P jiLx9ATa+HqAUx3Io1RR7PJ98= X-Google-Smtp-Source: AGHT+IGLmu//P31DCy/RNC7sTNOq4cvelmghY7u/vM6nTRJiFEDfwjbdinP/0y5Z7o1g/QEtoGFjOg== X-Received: by 2002:a05:7301:4616:b0:2a4:3594:72e7 with SMTP id 5a478bee46e88-2ab92e2da45mr5744996eec.22.1764954739092; Fri, 05 Dec 2025 09:12:19 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2aba87d7b9dsm20594306eec.4.2025.12.05.09.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:18 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v2 07/13] selftest/futex: Comment out test_futex_mpol Date: Fri, 5 Dec 2025 09:10:01 -0800 Message-ID: <20251205171010.515236-8-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable test_futex_mpol() is not called, resulting in the following build warning. futex_numa_mpol.c:134:13: warning: =E2=80=98test_futex_mpol=E2=80=99 define= d but not used Disable the function but keep it in case it was supposed to be used. Fixes: d35ca2f64272 ("selftests/futex: Refactor futex_numa_mpol with kselft= est_harness.h") Cc: Andr=C3=A9 Almeida Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning.=20 tools/testing/selftests/futex/functional/futex_numa_mpol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/futex/functional/futex_numa_mpol.c b/t= ools/testing/selftests/futex/functional/futex_numa_mpol.c index d037a3f10ee8..8e3d17d66684 100644 --- a/tools/testing/selftests/futex/functional/futex_numa_mpol.c +++ b/tools/testing/selftests/futex/functional/futex_numa_mpol.c @@ -131,10 +131,12 @@ static void test_futex(void *futex_ptr, int err_value) __test_futex(futex_ptr, err_value, FUTEX2_SIZE_U32 | FUTEX_PRIVATE_FLAG |= FUTEX2_NUMA); } =20 +#ifdef NOTUSED static void test_futex_mpol(void *futex_ptr, int err_value) { __test_futex(futex_ptr, err_value, FUTEX2_SIZE_U32 | FUTEX_PRIVATE_FLAG |= FUTEX2_NUMA | FUTEX2_MPOL); } +#endif =20 TEST(futex_numa_mpol) { --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12BB233B979 for ; Fri, 5 Dec 2025 17:12:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954750; cv=none; b=fF1laDTg3wEThiZ6YeHyrpBk1m00r/ki1pkmBY75FMdvj9cI1g4x6w8KXugPH4AWyS0J23WnsmHqmxPM37kNrqOoad2feuFxIYzyjUqO4isvr/eDE79mFfRRKrg2RUYrtQ09J1uRswkIRZlH+gV5dzD13pWdU/WofzzpkIrYhMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954750; c=relaxed/simple; bh=do1Bg/NFLX33ofPgfO966WaBXgkhnoSqIQc8ImWQeBU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pupNge/zSVQ7xDeIqZXUMpdlxxc8vfNsFQauN3fsHMiYwJpSaBY18gNePc1t1s1BfgjaL8Bc3ZF1nlT6NuYqp+Q6Ho/ktevAufqEXgtbKUqZHpLHfosHbv5HX6XAOd3QJuCk9Eqnolw3BqR2a2WuThnev/0EArNGA3RFk+fjR2s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JJcc/leu; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JJcc/leu" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-7e1651ae0d5so1855192b3a.1 for ; Fri, 05 Dec 2025 09:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954741; x=1765559541; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=W4SfGUccxqrR4if1UC28rI8dysNOUR1N9MIrnXXKvTU=; b=JJcc/leubWpbR6RaFOVl0RXLRBCSczZylWdedplWoRQG8mdVWZ+zJQjfODMK291mvj t3pUpRf5u9YyPcJFXg2udcz7N/H5mfJ1h9/mMDnJN5VdKXV+E6dWEp5oIh4n8cvkmxdw tAKxsG9OdWEsRZAgjfhQCnAg3i0e6iit9eFbVTzOSkplGDEpNwbwCGSyrAjuFesV65Th HLFfOChvCg4B7wUs/2uq009bbRBd+Y61OW4F/q5uOXROne/qYlj3uwxTQYxLSPxa7MS+ JCSeQCffGWKsEA9leDcJ89AtI9JpHWpxWELnyAwV6L8J9GuvftacqM8bTC0UoAtvardk UXRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954741; x=1765559541; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W4SfGUccxqrR4if1UC28rI8dysNOUR1N9MIrnXXKvTU=; b=VyTmoWOoLfUo/unf0mad7KPbfAF1iwZccRvNlkp6EyD5A6dd1hbtlhlh01uxj/KehL 16cGRDZ8rE03fHj3REijRzIPL8QGn0xbXT+SLBW7FOtQYm9PL3EyWJCqMZnuM3FrMYNj ODNPr3ffsmUoJ5jJdT6aFMf9Hc4TwyoZ+XY90Z485Kl2MvLjPoJQpWUJ2HibzqfNwfVJ x/mYooSNsX76/vh0Atl+hVDxINjr5hCHJ2jdKq3e9p3acpTpzLf/VrDZ0TrgOvP6L2+3 CrdSK6Gn+SngyzcN9WBiFtiNx+0MFSiRp+mn1Qm3ehnl2UGzo9cqKH0QMiqeKSkUsaW/ 93sw== X-Forwarded-Encrypted: i=1; AJvYcCUN2Wog65VYNdvNpPi7OFM3BMpG7UHaZ+kyssA0wmiqvaQSSzHaaNIAPs5fKH7IlhLkjW9SgtjJ02D1tfM=@vger.kernel.org X-Gm-Message-State: AOJu0YzJcfz7a0wDhHacRzB5cZrxMev6TI2Dhf1YnVKopQ6lQjc7rwio 9oG1ZwtRdZ3J76O5+9K8IXki5mV8axm9dFzj59a3aN0Y9H/bP8LatWtg X-Gm-Gg: ASbGncvuJ35uwy87x78CqHf34l8E7KG8Cl9QzKWQMatnjvnC2dLVRCFzVFwUMyE08nv wBhnFuOzeNvDcTRZDkA2cmfIHFNd7aSvuKOCojcajsmtY/QKT2zYxszb/EBd800e90zaLOCTklw eB6t1iEnzLAL6sXmnldDL8nWRuUSwPnbaDJX9BLQEWuzjkVNzU4zJNwmxSQZ/n5xtXe4HZUZZvv 8UK5gTNJ86CnNLRmJoNCgJaJ6zkG0bbaeQh0Ow/qXLdikLoJC6GJfaQ7UlZViTr5tQU9CBX4XvS 3g7XUzc5Tljp12VedO5MfWpqzk5my4qCLDp5hFQURb+P+X2eGp1C5vWjj0zZ6X+2i++v9Lxydgn jt9WCIEmZrsjVXSV7ZKPDh/SEG16BXz8ccWGV8YLGWMUKg2WtgDE9v7TZVzRr0a7DMow8lyg9Nz YdxjZRlTOPv+/pV6mxjjboSlE= X-Google-Smtp-Source: AGHT+IFUqGTh0jfpOherdnSNnGlDOOKwq7w7579tMDelh6u7LEtZVG3BYcM84jhxsPCvqwA1KoLyZQ== X-Received: by 2002:a05:7022:ed08:b0:119:e56b:98a4 with SMTP id a92af1059eb24-11df6463bf3mr4137737c88.11.1764954740834; Fri, 05 Dec 2025 09:12:20 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df76ff44asm20699034c88.9.2025.12.05.09.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:20 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck Subject: [PATCH v2 08/13] selftests: net: netlink-dumps: Avoid uninitialized variable warning Date: Fri, 5 Dec 2025 09:10:02 -0800 Message-ID: <20251205171010.515236-9-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following warning is seen when building netlink-dumps. netlink-dumps.c: In function =E2=80=98dump_extack=E2=80=99: ../kselftest_harness.h:788:35: warning: =E2=80=98ret=E2=80=99 may be used u= ninitialized Problem is that the loop which initializes 'ret' may exit early without initializing the variable if recv() returns an error. Always initialize 'ret' to solve the problem. Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning.=20 tools/testing/selftests/net/netlink-dumps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/netlink-dumps.c b/tools/testing/se= lftests/net/netlink-dumps.c index 679b6c77ace7..67bf3fc2d66b 100644 --- a/tools/testing/selftests/net/netlink-dumps.c +++ b/tools/testing/selftests/net/netlink-dumps.c @@ -112,7 +112,7 @@ static const struct { TEST(dump_extack) { int netlink_sock; - int i, cnt, ret; + int i, cnt, ret =3D FOUND_ERR; char buf[8192]; int one =3D 1; ssize_t n; --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C07683469F2 for ; Fri, 5 Dec 2025 17:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954753; cv=none; b=lO0y77xMVwe8NpDSa3u35qXsrN3tY+2SV989md7fICGMXAkg4Qg1Behsu/6M5crX6yX6puqCAwca4+IrK+hVlc0OddmMx+uFW1Srziakq42PzHgDiIhQUw5NrL4d2J8IDaYpDpK1DDR4qUE5jF/jfPo9ZRUf96jGKjMlM8auHkU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954753; c=relaxed/simple; bh=YtYoTmiGxnOh5dtDECL3sKhDmcIdC9O9DzDnMbMxrZc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MulZtDj5is5F5NxSNiw4MP4XvRChH9W9+i8eeM+TbiJcYGeJ4LLKfO5L7+31meEbyQ9iJC08O54LW3ke5DPn7YMfkwcS18x8lrpnTt8unQpW73xOwP7OegQnrd4rkxr0ygTpzEZOVtcofBnQb7oZ1MXVPAUokNdriauniOrtN60= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ltgsSjVp; arc=none smtp.client-ip=209.85.215.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ltgsSjVp" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-b98983bae80so2178395a12.0 for ; Fri, 05 Dec 2025 09:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954742; x=1765559542; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=47vuMKXmBnhdjf53+B1B8/LaD2EktMN0NOXdUnTfNOk=; b=ltgsSjVp9ysDRlyKerXQDlumgJHsv8QOUwqmqbFHUJlFY9PFQQl4RxJVkc7D4TdXrP NgNT3zJVmv+y//SUoCdaVemBWaTX0RZnfb2NlMh9fmRr6NVT0D7zQU20jncF+jGv8ir2 5yoM5I0A70Zcp1B7XkjOHGbfFDyvULGsFBzM8vwk07XRU+vZutb2XyQO5eFNqywQ0NlG MJGuhjDbjzoRbROY7l0sCYU2CAS+62wIuDKT0UHR03Dc5Lbx+jRUSiPGpSI61swp5ole lW7jDxxotS2fO6dj761HvoifHLNZdeWS7OwEBO7FDMMuKquEqtvCRkmOry8LQ8i3WYGc Hw/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954742; x=1765559542; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=47vuMKXmBnhdjf53+B1B8/LaD2EktMN0NOXdUnTfNOk=; b=D6++xC2Wm3SvSrI4gqt9Xa/j6XzABGIMLWF6KfpHjnop0hTD96vsTmrmojTL0l2uB/ rFwFMorG/K/udcKpAkfxDmZ3AlcqR7BjSjgdG/4aN4F6lPyHp3wb9gKxienfpyYk6yTb UNhm8YPKqh1p2f53WCoLCbIKUdiyCdTq7xLKXNalZv+HCAlz6bZZSTgK+XrmsdVRtFrK yeo/gg6OkS3CuQloverDyLFPAUy/UIYa51UGiOVIBdv+P8tBe6xE4/abHHGtqZKlqBVj WKAlPLVgGMCTMXsysoqwFkLB89iEKfSiOixa+LWii057/cCPV9jfoZpC0jdrL9MpwB8N 28+w== X-Forwarded-Encrypted: i=1; AJvYcCXsSn0W4lK0Mb2IoV7k0fM7wLAYa4zV4oGBrnlV8oSgosNeYfinEUC6tVL+UM+XnZx7vNUNMWFJ+XK+UbQ=@vger.kernel.org X-Gm-Message-State: AOJu0YybU6zqyq7Xf7b/Hs5UlyH6rzTMZocoNv8eX3O4gLn7ys+1XnDt cY01jkncY7MIh4FKTLWA18XHzRO6DDBGaA/scNDwwoEgATLhmfjVtdPLFOk+Ww== X-Gm-Gg: ASbGncthGAhZWlaDzVypwu+jqUuv9S0meb6a2iQMYxndRTLMePcVQCcXX2Fz+6F4YYy uqYJtOwRlsHndw5qLHEOywhDoujUbsER7vxqJRtV2RmYfxZGg5SqzVQFGiKA8a/qq3/QNw6xM93 mLrfOvC2LRfyoR/lmLyA3oUJB/Fcs0MrKj14tlC6RvmDiAnZ9x6nBsmHqTrjiQ4IuhmVKyja+7V rO+NsmF/JUlHL4VzIo2Rc2zSNJSMEMIRfdUosEHVn3NtidJkrIoeurCjX+HxIrsnNCAxlaM8XVO 6BjGbFa3liOuvYlr1f32/02n6KTs5ZaVWaYzEaJkNHKygxuQ3O9XwK7+Rf5/2uZxDjTY33NA99p AtP/0xjYlOqNrNDy8ZJo6HNj01mofZvjoEETHPOkhtVcuC6XLct7rEKXMWo9FhSLEumNqutL5vj eTyjyLxILciGynrGgJqeGDpX8= X-Google-Smtp-Source: AGHT+IEk22OUEE7gdeZwhTjpvbdAQz+kolwi6WKygGxoM1AqKfc3siF5IPSsP8KEFJASWzEJYAwOyg== X-Received: by 2002:a05:693c:2d86:b0:2a4:664e:a5af with SMTP id 5a478bee46e88-2ab92e88ab7mr9468546eec.28.1764954742216; Fri, 05 Dec 2025 09:12:22 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2aba8816ae9sm15102636eec.5.2025.12.05.09.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:21 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Jiri Olsa , Peter Zijlstra Subject: [PATCH v2 09/13] selftests/seccomp: Fix build warning Date: Fri, 5 Dec 2025 09:10:03 -0800 Message-ID: <20251205171010.515236-10-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix: seccomp_bpf.c: In function =E2=80=98UPROBE_setup=E2=80=99: seccomp_bpf.c:5175:74: warning: pointer type mismatch in conditional expres= sion by type casting the argument to get_uprobe_offset(). Fixes: 9ffc7a635c35a ("selftests/seccomp: validate uprobe syscall passes th= rough seccomp") Cc: Jiri Olsa Cc: Peter Zijlstra (Intel) Signed-off-by: Guenter Roeck Reviewed-by: Kees Cook --- v2: Update subject and description to reflect that the patch fixes a build warning.=20 tools/testing/selftests/seccomp/seccomp_bpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/= selftests/seccomp/seccomp_bpf.c index 874f17763536..2584f4f5c062 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -5172,7 +5172,8 @@ FIXTURE_SETUP(UPROBE) ASSERT_GE(bit, 0); } =20 - offset =3D get_uprobe_offset(variant->uretprobe ? probed_uretprobe : prob= ed_uprobe); + offset =3D get_uprobe_offset(variant->uretprobe ? + (void *)probed_uretprobe : (void *)probed_uprobe); ASSERT_GE(offset, 0); =20 if (variant->uretprobe) --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13E6A347BD7 for ; Fri, 5 Dec 2025 17:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954753; cv=none; b=YtxpNVM0DrsAnuE/WYNWZWvxh7zfZ5x6v/YdPUBOhaK1dVqlEUvzQJ5J5SThVeOkWqT3N+MrUTImIh3HhxbBKfkVw4oK2wzlgn6uUfpotpKF9+WeODh7QF7HpuZvfCjiGqbTL1RcauU8uE9ij6RO8RHokvyMi4ipeQQDas9cwyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954753; c=relaxed/simple; bh=yuIIgf/alWIG+QnlbE0mlEBwwSslOpyY/5j2tQg/iS4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=O8BQes4nm4rPMY5Z0Q7CWtQLaxAc71W7rwC6vsNH4M1TDbPudx25qr9BBpRKSHXdPdvbjHPMFzEEpnMBkgUNkMSPT+BdkSaZ4AolxXduDv2LffVixg5JE/iyPrpMrNr3qAgoJJ4xJXZxUaV/iZzIL/F5lMzuQG1SdhXJ+DCudVQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HgLQK5KO; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HgLQK5KO" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-7acd9a03ba9so2592983b3a.1 for ; Fri, 05 Dec 2025 09:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954744; x=1765559544; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=ld7Zfx8+1mGBDI9kHG+7ggDCtFZChlITAxT8Fla3YiA=; b=HgLQK5KO1PT5LLG8pa1wfajjkS3nhaQVsSlNLlmuAp7tLqBCnx64dM3Nqr/H/dQKRu 1bs3e6eJXb10j5mBn2YJPHLC4vdf9keDT3y3jFI2+k88UXm2CFM/S9Y0gvrLtAr3brDR Z2sdrXHDlj/3+VOVBOist5mCdzbnCZFVjlknMYK6N3KrbM3tYO17YQfhxg5exdA/0Gb0 qZ4ABMR+iDEz+sowXHc0Szym3OAOuWm9bII03Jn0e8pRCOcD/LgqGvSg7X6uUQDlXShK vIxuIaDa9K53v/02iFIEU5XuQe+5RXz6bgrYhXNMxTnNYkn1bG6THXdUnLPTVukCBoV9 Dp0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954744; x=1765559544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ld7Zfx8+1mGBDI9kHG+7ggDCtFZChlITAxT8Fla3YiA=; b=UMoodnYaKj+q1Qg2KuV0qUaXYUwsuJTGw2T8s+SVaCb4kjJd3eW0yCDfoLbxb3YGT6 +XqZ00r1BdHIxat05j6T549KCjlfpcAAzooNu7dMQqZwSbtjhwj9Xtz9sPb+WzRw7iU3 h7RVAGjvZC64Q3B/Nq3ae6WuEyegV78lprS3l7JYYrVxwZ1QogF4Bvcv7Oja+JoSj3g8 xh4qSmpY6d4PoVLVDTfHWR7A4q5Cf9LSnOAUvIoczG8BjT1XljvkB8B+NLv9oLKiHhzi 4MMuSqfKUk+BcAzqO228jcF6ZrK0U5W8eJrjdssu9RXLlBi0mJ7g0UCLuhvkhOchUmXA KhPQ== X-Forwarded-Encrypted: i=1; AJvYcCVESc2ajxkVxQGKUZfi4n9I94sLFHb+9EU+RZZwef8YF4VXkUNk/r9TRdx8CGHQoYfCT3SFid2mAOsZ1jM=@vger.kernel.org X-Gm-Message-State: AOJu0Yznk0QomRbhBhkx7+afckGdppGaXaBoDLevEqc4HA6Orw68jL87 1D0AnA8AMwqaDhSNg57/e/uaRlHDqEbp1eyOc3TOXlmKJxIt/rqZi10T X-Gm-Gg: ASbGncuGITTz85iaKjNfgmNbFL06e+aa4nn8rOg+TIyLJL0ZLa/mDOR3qe8L8P7OG1f pyS30cbLpojukPIaYu3gwK2rK0YykUTw2Sotgd7XbJhhJROPpdeiSSBORwGdL7ZSc5r18PkmDQB pABCGA2nRs4Cf/fP5zRtf20rCWWDiBjUiHcl/F4z4E6/N+JpvRim9Q/XRifg1/KjhR7RQZ3igzP SGQMG66qMOBNz7umtC8i9vihJGLdgACmQVQzmBqfFA6QMF9hmPfWAX7CCLl4Y4RW3I3gQYcIv1+ CNAL/rYyqYCic7FhcUGVZHYdcckakJKeGb/Cy3sgrFMkfKlybNkuUWmxHUajJCTb+t7xC4hWLFG 2tSMirKb/fc/ieEnfMRCZZkRClrS7Of1LUoiBxSe/5/bUh/iMB/jpMta+D0iPERSMabf4oesQGc ByROnUgkMXApkjkAQ2jNHCgFQ= X-Google-Smtp-Source: AGHT+IF6pVDWfDwXkq4xnlvBOGGFZK9hjfQ59/B+jw1lZUA9k+IMOEvrgSx0HezsT2H83Dv+hHEutg== X-Received: by 2002:a05:7022:4191:b0:11b:8161:5cfc with SMTP id a92af1059eb24-11df0cd9712mr8471296c88.36.1764954743550; Fri, 05 Dec 2025 09:12:23 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df7576932sm20210155c88.4.2025.12.05.09.12.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:23 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Joe Damato Subject: [PATCH v2 10/13] selftests: net: Fix build warnings Date: Fri, 5 Dec 2025 09:10:04 -0800 Message-ID: <20251205171010.515236-11-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix ksft.h: In function =E2=80=98ksft_ready=E2=80=99: ksft.h:27:9: warning: ignoring return value of =E2=80=98write=E2=80=99 decl= ared with attribute =E2=80=98warn_unused_result=E2=80=99 ksft.h: In function =E2=80=98ksft_wait=E2=80=99: ksft.h:51:9: warning: ignoring return value of =E2=80=98read=E2=80=99 decla= red with attribute =E2=80=98warn_unused_result=E2=80=99 by checking the return value of the affected functions and displaying an error message if an error is seen. Fixes: 2b6d490b82668 ("selftests: drv-net: Factor out ksft C helpers") Cc: Joe Damato Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes build warnings. Use perror() to display an error message if one of the functions returns an error. tools/testing/selftests/net/lib/ksft.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/lib/ksft.h b/tools/testing/selftes= ts/net/lib/ksft.h index 17dc34a612c6..03912902a6d3 100644 --- a/tools/testing/selftests/net/lib/ksft.h +++ b/tools/testing/selftests/net/lib/ksft.h @@ -24,7 +24,8 @@ static inline void ksft_ready(void) fd =3D STDOUT_FILENO; } =20 - write(fd, msg, sizeof(msg)); + if (write(fd, msg, sizeof(msg)) < 0) + perror("write()"); if (fd !=3D STDOUT_FILENO) close(fd); } @@ -48,7 +49,8 @@ static inline void ksft_wait(void) fd =3D STDIN_FILENO; } =20 - read(fd, &byte, sizeof(byte)); + if (read(fd, &byte, sizeof(byte)) < 0) + perror("read()"); if (fd !=3D STDIN_FILENO) close(fd); } --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFE0133EAF3 for ; Fri, 5 Dec 2025 17:12:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954762; cv=none; b=Hp43Yq0AV2RfPok7y5chsF+PZzGvBiWHudu9zHOKVsr4pUsKgFTTJcW6qRojDyeGVtCqKsUZsxfFbixYFt4rz3ri+QePJnvwAs+JlTgR914RGuBRhQcXGRwTMWFx6qbES1n4hsJZvP3dRdZs0b+cHi/outpv5UXjk6Ljr0FXPjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954762; c=relaxed/simple; bh=7b04OUSp5PPbHF012Af7Jd1Z5TcnkOHwaX4bsLzbOSE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pYkp7PGU/K08MXhDvdK45yZP/C8Gxio0C15gz5I7+KC5w27oYUYNazD2rzGRBf46NkSSQY/cMdRwA3SiOmLuerc0e3AfpSTpdY1WKSVWRBGuiRDhHI2NKsX0lkqTpVJQQDuu0+ki9RKqrn8VWkjk2LdUNGhJRFZZra3Qok9iTQM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RQ56iiPV; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RQ56iiPV" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-29555415c5fso28609925ad.1 for ; Fri, 05 Dec 2025 09:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954745; x=1765559545; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=XDia+MA8HLQHzWjV88VwCKaD5C1zT15MPbh82oRmFds=; b=RQ56iiPVcENS3HQKjiLkzKx1aYAH3n1Jh6A8PEZ+VjWpPaJqOBps0QEuowfb2p/c/7 jGLMU7XJrB9o/toV183CCWiNgHPdUXGvS5CEYJJ0dKopLt0ndPC9TB2K5OcjEC07Sl3r NaWAtLn/mUnT3wPSl23pzccsZybVtyGNUDAR3lySTz243KjoS5jmN1FEDAMwNB4gN/R8 Kr1KBlEYYoCIKj6C6U6fxDf5PIHotZqlyF9TSGH2u7+3V03jMK4MwuRjqInTRQt25N3Z XMWR9ZSuHyf4ZE4+S4I903x1n/mpAOmN8iHRkLtmJNAgwaB7RlXeQc3PAsmeEcBQdfzc r0zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954745; x=1765559545; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XDia+MA8HLQHzWjV88VwCKaD5C1zT15MPbh82oRmFds=; b=l9VzLGr5jBaUGvI4WboM8QrLKdHMRCmfYSmUWQmM3SoDIEryfk1AGeShjXrPcrd+yc I3ZPd+zxB1eLQoIF7iC+l5ggwg9qVK9Lqe7g/h9hFR3LeTLv7W5uXUgWTS8e/GvPFrA6 PhoXQCaRXGT98bMNnlIhTh1TC7uzFO00XQHwJjiMNlCLvm8AU2DTj3MB32TiIwZlYlsj StXpC8smKFNVIoyQXEbLtYwADkasEXd76A6bu7e/Mrc1j5p8iPkRzS17EOZZDqDv8Uiz R+mODIMGli+sUhCd6m0kq401QHfIsTGGyrlOcuo73Wv3546ehbgGbUcz9+PfpFVMBRuD lAMQ== X-Forwarded-Encrypted: i=1; AJvYcCXrGV/0KNatbwU3ZngG63v8GX7YZm3suE+UTXOVwpZadR02JtZ1QacKrZEEt8WwVhPvleXCByAszi22ZFI=@vger.kernel.org X-Gm-Message-State: AOJu0YzvdexLqdCRrNSIqfjHoKQChSEzms479HTvzvunQnsiSKAOm5Mv 4I61ghLq1zj0p5PGFzR/EkbrdNpRchcdkIUwcuJ/DJPiKvnVb3ckLiHZ X-Gm-Gg: ASbGncsAH6XqfG7WMWOOR2heYi8z61Fdi1ZLn1ioqKyKeDOu8tDfl9DvdGW23g57mu8 PTYwrtRpqhupRpk5ov9hDXmUZrVmTgOQ4j7IGbWAl5TDUJCLT66+sjVOeppMEmW33zyMkx7nIWQ cW6jjHmTxHoLdgvMsi5202cgb8MXnTggKl//RxrFLp48IeVyY3hTxruR78rOwMO9fgnVAxIa8Ix P6IZi3NBSChJIPFwnOPSioGXqGS8UejkOA3ESqU/NY/UqfxsdS3l0MLg51SHOcp0tQXQPtkL2hJ x+HGmltED8ukddnddJh3v5urG+BB0H5kd/L/5XSjTqQzwENfu3l8Aaj8hbAMoWgAVv29bqBksev suCpigFA8lgy5LuH0ZBZGXglCrpo7UOjeajM1aUU6wK2YcTwk3uft5jIw6Apxgz/722M/0DF8Pd Ncb4HI+DNdzfX13M98UkAjOmI= X-Google-Smtp-Source: AGHT+IFpapsnYxxuCMxEK0T30dMrqsmXHdoldVmyDlrGUqkSkZ/3MRNWB7srXi6l4pDtAeoht0dECQ== X-Received: by 2002:a05:7022:428f:b0:119:e569:f62e with SMTP id a92af1059eb24-11df0c5273fmr9380516c88.39.1764954745007; Fri, 05 Dec 2025 09:12:25 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df7703bd7sm22123783c88.10.2025.12.05.09.12.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:24 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Miklos Szeredi Subject: [PATCH v2 11/13] selftests/fs/mount-notify: Fix build warning Date: Fri, 5 Dec 2025 09:10:05 -0800 Message-ID: <20251205171010.515236-12-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix mount-notify_test.c: In function =E2=80=98fanotify_rmdir=E2=80=99: mount-notify_test.c:467:17: warning: ignoring return value of =E2=80=98chdir=E2=80=99 declared with attribute = =E2=80=98warn_unused_result=E2=80=99 by checking the return value of chdir() and displaying an error message if an error is reported. Fixes: e1c24b52adb22 ("selftests: add tests for mount notification") Cc: Miklos Szeredi Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning. Use perror() to display an error message if chdir() returns an error. .../selftests/filesystems/mount-notify/mount-notify_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/filesystems/mount-notify/mount-notify_= test.c b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test= .c index e4b7c2b457ee..5c929275e689 100644 --- a/tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c +++ b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test.c @@ -464,7 +464,8 @@ TEST_F(fanotify, rmdir) ASSERT_GE(ret, 0); =20 if (ret =3D=3D 0) { - chdir("/"); + if (chdir("/")) + perror("chdir()"); unshare(CLONE_NEWNS); mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); umount2("/a", MNT_DETACH); --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87AAF3451D7 for ; Fri, 5 Dec 2025 17:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954761; cv=none; b=e9+gyiOLDDPSVsN6H+LnzE095djmJm1VJqIcWk+tyXBCY/PcfpXsn6i1g4z/cKNXrvwjd7YPbUh+JVnxyV1Gtd2zVHjWZ9/ytFsC+1x/F5rU07krbs81ak7LUd2xOy851L9cekD5Dh776Tby29yC0SSICeWbgUPlerLJK0z3tTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954761; c=relaxed/simple; bh=ThCJjVG5RVMfr+zdrGxXazrxZX2CekhpjLmMxCxTOIY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qu76o4Fkc6FZsN2jKA9xEOTUZt+lU7nI6bki7QLc5gtxtGgtN8FOP6MlDU5MCFkEhhY8vWBTflaNa8A/gW50/qvD1G6g9h4+KPEOEmTAtjERktHBZY3aBOjxJvJoie30PpCfbrt9tx4PHOptXZO0XQZrbn9gj1eaDLNC8xs8bBY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eP3cAG4e; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eP3cAG4e" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-29853ec5b8cso30254285ad.3 for ; Fri, 05 Dec 2025 09:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954746; x=1765559546; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=8KthOHDXIygNvoKbYqyGnez1cqEGX3CMF/hwkpTkQzU=; b=eP3cAG4ezK1TsESvpI45ZoOcnw7xSCR3V/ZH08uto4kj8uVfS6myIq6k4a+yWYITwV MpKBhj2XDnKKPUUo0397EHk2lN/jaKzwXyo5QNb3A25HSpyS2vbHSA0Y7aJfDq0AEsEX YkRGBmih/vz/fghrwW+OJ3JFRCyv8A7WKlArZg3G9hSxMeQaZwzXxssG0b5xf3swXBKg wSpJ8m6KDusuVt3CN2T5MWwm8BJt95BPq1ra25XqrTHm7/2WfEubQaIBsz5V7hnKpOEz b9vsgmI7uBjDM6e84Bd7JgZHixFTHceBd3F9sI+c4zq9yZnQxNe7pEwL//jt7sPzQIFN ttdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954746; x=1765559546; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8KthOHDXIygNvoKbYqyGnez1cqEGX3CMF/hwkpTkQzU=; b=phzXw913hRuC8ygl/O7eaM0C7MGD34MIkrkT0WN0YE2Vkgyn5Fyi9Allw/UUDiyP8H ZznBZmBaObvYT3DnOxf6a3Z3mdQr2GTebCCqcOs0SbCAX0Qmgcn1DheoRbGJQf4rWl8o JArQ/NSj+HMxAPm0HHv9CvIqxEcA3V6vWzAZLWMgcS1/H55an1Y0VsavvDbhuOo34X6l E3VVDA06CuoBSL0KdmyGN6IWjozP0PEQALmxZOyiGRV5Cfdn26PtAn8dR+Yf6FZwIxOh Izy8pRKSPqVgGOIbjrNVYX/7NqM5axtD3HJ/UkiJbbWhjuvFJ4y041wId+XX7VLR94Iv ynvQ== X-Forwarded-Encrypted: i=1; AJvYcCVKpoPHlb3FIYD5t2nlYZFtHvayOhCb9GhicKWp3FlnHeKjrl7H3Ec9OtVgWpn/YkERQMVWbHL6bKCH2pw=@vger.kernel.org X-Gm-Message-State: AOJu0YwbdN3W4PIxeL/+om6/VPEZQL5idKXPy/a1XZV/NqqDeTz2C6uc MW0ZzkfL/D+yDJpGVLGtMFKr21midyWr1p7UQbiSZgGg1/195GtdvkB0 X-Gm-Gg: ASbGncuDUaEj1u4vcwCf7fZMT2z1724Nc8TV/OzY8HQJdes3jffd6M4J8UKBBRmqf+G YepfkJMGsJgxuzOE0MX1Yq6easzMEPk8dpSUw0/0BvfIzXVzp0ru/UifftfOgYV2fIb9sMhAqRG UXhRAXrLExcOA4emIvVrKMaUSMMj3yvyQf+Fzq+Mu/IO5i7vsIBx0LojxkEBfKyM4R433ZZKhVW wgrQ69HVtFE2qsxXyDk0iY6Y8n5NhQtjFyfp/m584PrPirxVwnNWVt9dw7bAPNYv2Ip5sw9iXFm /cy0lMf8LPQoUE3BCGTvG5XLZuLYWcsbW1JpFrHo756R5Q5Ff56LXkvgA7ZSWa35Q/aMA2KEino orcTO1BfoRGzySJ7aZCgvuUC6UZGAD2gsXlj+ep1+kMSV6ZWrJmcDxfC+HLp773IEsAe/3O7/SY /1SUmIRTp35cOpK8xe5ZUNMv8= X-Google-Smtp-Source: AGHT+IFGP5H8TS9l/ZWNTkIDFkoqd//BYSN576PH3VvQ3NUTIBZhXN9o4FjDBwMKRZAasheLBNdWLg== X-Received: by 2002:a05:7022:ebc9:b0:11a:2f10:fa46 with SMTP id a92af1059eb24-11df0b44724mr9060052c88.0.1764954746240; Fri, 05 Dec 2025 09:12:26 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df7552defsm20339483c88.2.2025.12.05.09.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:25 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , Amir Goldstein Subject: [PATCH v2 12/13] selftests/fs/mount-notify-ns: Fix build warning Date: Fri, 5 Dec 2025 09:10:06 -0800 Message-ID: <20251205171010.515236-13-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix mount-notify_test_ns.c: In function =E2=80=98fanotify_rmdir=E2=80=99: mount-notify_test_ns.c:494:17: warning: ignoring return value of =E2=80=98chdir=E2=80=99 declared with attribute = =E2=80=98warn_unused_result=E2=80=99 by checking the return value of chdir() and displaying an error message if it returns an error. Fixes: 781091f3f5945 ("selftests/fs/mount-notify: add a test variant runnin= g inside userns") Cc: Amir Goldstein Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning. Use perror() to display an error message if chdir() returns an error. .../selftests/filesystems/mount-notify/mount-notify_test_ns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/filesystems/mount-notify/mount-notify_= test_ns.c b/tools/testing/selftests/filesystems/mount-notify/mount-notify_t= est_ns.c index 9f57ca46e3af..90bec6faf64e 100644 --- a/tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns= .c +++ b/tools/testing/selftests/filesystems/mount-notify/mount-notify_test_ns= .c @@ -491,7 +491,8 @@ TEST_F(fanotify, rmdir) ASSERT_GE(ret, 0); =20 if (ret =3D=3D 0) { - chdir("/"); + if (chdir("/")) + perror("chdir()"); unshare(CLONE_NEWNS); mount("", "/", NULL, MS_REC|MS_PRIVATE, NULL); umount2("/a", MNT_DETACH); --=20 2.45.2 From nobody Fri Dec 19 14:44:43 2025 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D898D3469F1 for ; Fri, 5 Dec 2025 17:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954763; cv=none; b=H7yiRTH+GUMHySHWhzee/yaGqWarBJt8OdsRvl45KbBd7yDonzLkxZ/5nEGJphaS7Dd9FCD2PNJtN0J7ed0Pv/VCUeMyN1HLnJ+0LzHswO8BQLlWkQ8B2yKGnKR5EU/sFEm62QWH3hkL5USJQUPf3Q3i3hhFZKk+sUttV4uJ/TU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764954763; c=relaxed/simple; bh=cB31pmWNA2px7ozTCQpqrnxwkRY3wOGmMDqxO5JNm/A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pxndTiwQgFRfy1IZSJy2ZHLLmnYEEPPtEMdes5p/yXaO2VPMWMIzZKCiEQI0YZ6Jn5hYjVj4Yt95E/RIQ5RgENWrXq56SKNtmt3+k+IlJozFY5TPfkIHWmZKF/XArgZaPqvHjqbMeXxZtssutDqn4zj8Ns5LfOC0Vt3Xk97VSfA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YfQwJsZZ; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YfQwJsZZ" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2984dfae0acso43398695ad.0 for ; Fri, 05 Dec 2025 09:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764954748; x=1765559548; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=svZn1kMXxy5/37Gn195RmY55SpZYbLuXKcgjq6f2gyc=; b=YfQwJsZZt8EeG5RqAGBuA5u5gBhg1ugiIn9F3uGvTiQMKOFqclk1jo2vOeJAOZKkXI /Zqq60gioILstAST97YWja/cjbCeuy1f59u+bGfbeek56t42pwW8rSMa4XaLJFiYI7qi toLn2qqti9jPuSz/5asy0JN3IVomPfBRFgkDEshrrgurJ+cgIoQFZtW/bn3rGd8eCI/y 2i14X6a+bKdra7M5ZQJOaGO4YTawkah4oLdtf8gcR2fTrMjsg+VAz/P8A0u4NxYCWBeQ UVvpsIjtJSGDE4a7FGsg3aXls3BNqZS015JmwB+k+WXmFDZcqHKNGDYad8BY3r6idv+z Ud3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764954748; x=1765559548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=svZn1kMXxy5/37Gn195RmY55SpZYbLuXKcgjq6f2gyc=; b=SNXOa/usgsh24kHeB6kF9QTL5lYJgEqp2qz08+zWGdKICDyT0HciPva+qz9lK5dWGj okegxNCs9c8CHWKj74lJWwUI1tmC5b9NbPprS4ExsCh0WV/fbKxpu/ZSpb86ZYKhyjzL xbyJoJAyvcKOoO9bGbv86xzn5jt2vV/T4V85LKW8KyzLN/cLVvR7A9DWy0/r6Lw3rhxc rv69LlP3zKttVn+QA6AWT2wgJ4IVS2Lqh8UorhYKbzKqjLcitK4tHpAKa3Yra/sk2ybm 1oJMIGVMz283CwV6fAuBC60VyjsvXyStgojee0wHxysS1Bmeo8LuTKV0tNpea7GcHADM edyw== X-Forwarded-Encrypted: i=1; AJvYcCUypTiB4887doydOh5XnOIjs9wm4d4E6ZcqtZnVNUMZQdaaz/S2PAkadBYNmmiZ8WKsnexoyNOf37uVRUI=@vger.kernel.org X-Gm-Message-State: AOJu0YwZXt2UtV5v/7I0Bg8rUsdO0N5/cMtw2q8iNPcCu4ErMToTItCG FBYzhL1HJG3PsxAhw8H4YzDDwC2V7ZF3uGRYVyyb/vOYDg9rnfSo9gEQ X-Gm-Gg: ASbGnctYiSP4I1prDO+ZUXgJCjdWMlcwWzcJZtC3PfjiTqxhDFbwBAT1WaXeu3UHCBi STqO4yvFsjvkWU0VESAe/aC1AUMEwkcAfDPPXh07AJLLh5oUe0rxgm+Rw+2pBRpEny4dAARxa9t UjRvOPXPl4+Rg4pJkYMrDCTiLAE33aGpo2w/SPPgFp8SJw2nIKD5HXfey01KlMBhn7cEyUFUt7V XRayQNhXkQkSL6UHZvPjGu6qZWRl2jlEtrxX8m1q8834agdnxmHetXOm7zonC8L0/mMAz7LnElb wfYcFjsAGeaa8aie4h5IvxeshQjAY47lSmUiA/DLRbwleCPQDqrIAOiZycHSkCJnZ+7CjAXG8TW Zstppki/GjZJYznCfsYel/Gg5sFjduycDzqDgCo8qCcRegDASgu6lRKc/zxtaKHN6WSSxw/p4i0 s1uiGC3YPRE0VqaGaPGXqcbCo= X-Google-Smtp-Source: AGHT+IGHDjpBTcigzNC5fmT2HMSl2OIXJF4Ntvq8YICmSN0m9lTSarMT6qdvBRwyf5R5o7dnkTdLEQ== X-Received: by 2002:a05:7022:6988:b0:119:e56b:c758 with SMTP id a92af1059eb24-11df649fd93mr5077082c88.29.1764954747801; Fri, 05 Dec 2025 09:12:27 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11df7703bd7sm22124088c88.10.2025.12.05.09.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Dec 2025 09:12:27 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Jakub Kicinski , Christian Brauner , Thomas Gleixner , Ingo Molnar , Eric Dumazet , Kees Cook , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, wine-devel@winehq.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Guenter Roeck , David Wei Subject: [PATCH v2 13/13] selftests: net: tfo: Fix build warning Date: Fri, 5 Dec 2025 09:10:07 -0800 Message-ID: <20251205171010.515236-14-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251205171010.515236-1-linux@roeck-us.net> References: <20251205171010.515236-1-linux@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Fix tfo.c: In function =E2=80=98run_server=E2=80=99: tfo.c:84:9: warning: ignoring return value of =E2=80=98read=E2=80=99 declar= ed with attribute =E2=80=98warn_unused_result=E2=80=99 by evaluating the return value from read() and displaying an error message if it reports an error. Fixes: c65b5bb2329e3 ("selftests: net: add passive TFO test binary") Cc: David Wei Signed-off-by: Guenter Roeck --- v2: Update subject and description to reflect that the patch fixes a build warning. Use perror() to display an error message if read() returns an error. tools/testing/selftests/net/tfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/tfo.c b/tools/testing/selftests/ne= t/tfo.c index eb3cac5e583c..8d82140f0f76 100644 --- a/tools/testing/selftests/net/tfo.c +++ b/tools/testing/selftests/net/tfo.c @@ -81,7 +81,8 @@ static void run_server(void) if (getsockopt(connfd, SOL_SOCKET, SO_INCOMING_NAPI_ID, &opt, &len) < 0) error(1, errno, "getsockopt(SO_INCOMING_NAPI_ID)"); =20 - read(connfd, buf, 64); + if (read(connfd, buf, 64) < 0) + perror("read()"); fprintf(outfile, "%d\n", opt); =20 fclose(outfile); --=20 2.45.2