From nobody Sun Feb 8 23:04:10 2026 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 BDE173446CB for ; Thu, 4 Dec 2025 16:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764865069; cv=none; b=fdeK7cWzji+CnXZe0UnVATCaiB3Z0MHLiYKSadHw/KeZsp3pivKYEbXzlbVEMhaVJO4trNOU6YAhB2PcZgX4XRknOpIvbNUVossVxifupkrD0k08qgLZYH7P2QWw+b7o76Te+7b07WSiEuG/U5ZDy1MaCNxVPVegoQRBnm1THTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764865069; c=relaxed/simple; bh=n+63PlaZKOtY3JC7oD0NHAoiyAMuX1R4DVqHT3OXT/0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b2GDuifK1W0ANzqif814mgZe00s/twA2Wj9EEomDsINZ5Nh9tqwRa+XeapvSPeLog5x56tKYMtgdJ+FhWSJJdfuy0BmiblMVpesyVrw0dHbBHvKQ4EmfD6ve2Ag/z/mE2yGqUZ2WfusdTleOfITvfkaCI50B8WM6I/qNTE1SkiE= 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=JOlq2iP5; arc=none smtp.client-ip=209.85.214.176 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="JOlq2iP5" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-298287a26c3so14397795ad.0 for ; Thu, 04 Dec 2025 08:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764865067; x=1765469867; 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=nCCLpF4Ehq3zOwzYA8afoq69odsanopMUq/fUvlXjFQ=; b=JOlq2iP51J7G3YXdkCYgXKa6DEwLRAqdXBk7GTE+ekyqGBf5p2DqIaAz4kE63DZN4P jJBHrOVyKZ2lpP1NmPTgSVwpyj+v2Rpes31ye0UIcjQXXrpK8w3ry+aNdQMPN2VbQI5z L5S7OLUH++YM1Ypv5Gjj2ElPF+fSpt7/W+p6OyByTuI8bh6/5DKVY0BFN8YgEKIpkYmZ ZaMm3pfQWxHJk874mk1iWjctUw+sKF/+LVRPEFJ3jWBzFRXB0WJ7twBOhSmUF+TNTBFJ WyF98J/khfEOnh8ReBqBgfRqTv09PXtfGz7lP+93STATQDxQWzbenlao/l9RQWWbWsBI a2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764865067; x=1765469867; 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=nCCLpF4Ehq3zOwzYA8afoq69odsanopMUq/fUvlXjFQ=; b=NgLO+WAySsn5NL8D/WBAMH1YalWGWsUeyjXWWg/DQb2iD7SY1SRNCeEGskM5u/0RTq uPX3I5u+FyCKPJ3ns5FLf12HwaMvjR+i+Ub+0rMvluI8aAug6EjnlQPzVjCfyusSBHCG /PZP3eOhSuTPCXXV2IybPCVt2Y+qoxYrC0G8GNYDoECDbjkK1zwlImgjw73RIz7bHa09 M6rHV+2X8bxjUznOiDKUToTgQKAmWl6HN1xrSYURVuuy6txhVemGn5r5t9jVc6Wvpt0g 3yEq7FGRSlRG9RUrpIZqy6LKExB7gb8/wlCEz9G2j9RCqRBdO/Xfg9zYiRCpMKSWHrnT iFLw== X-Forwarded-Encrypted: i=1; AJvYcCVqr4TUn/SnZnIKYRZfJf3TLmdy2LMKjyAcjseUGshaomAB+gFSnI+4XSLceefEZ90TqmiIYceWSGo7vUE=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+wprr+GBkoh0EH/KOAxDHTAT2JDkyvkxJfkmVn8Ru/14iYgVv 6FyL8F+r/BhbUTZKNKIREmjAf/TDOTGmS8SBcQbwMQQQ7r2Uur5Cy8yd X-Gm-Gg: ASbGncvJqIrwm+KVwt5E9yzQMPNus4VWqSutXaUmQ0dXGBlDLnEtH5lEJhfTmoSl7ez eLUpJ4kzNw/zPRE85l6+gpa7Rz6dI20tPJfZ2oWuMCAd86lyOLiktF9Nm/Lws3H7Wq1tqVnUnIP YmF19Qs3TjhyAZaSE/lmm7twXJni0a6YdiEhTKZwacT+hmmmmXhUAjxbvJ3ebM6UQJz1KneLny/ LS/GwGMeBeZappPbNI2lL7WBgLyS9rqRyW/mP8RvPQnLnxiKk6NnTaJH58QC18K4ibhHiERpkg5 GIrAvF8YQb9M3mm0ojpuP1hunFFBYm7eJ8ic18BXZK1YSbcljN1zP+PtGKq1oKhnLn5Uw5UPTN+ Myb1Q42w/kLMvhJ/RXCBRmO6kHaf7yPV3Qhb8pDgecwCajWq6IFsiy4p0JBXwzNq11RMcwOGznm Hyy54/JjEJnkTT6zaK/UXi9p4= X-Google-Smtp-Source: AGHT+IGwXZtkCtpHlnxx5n5SCCk5+vCVmV28uuWId4Yw4ZJRYdebw+DO5VRN6jCZbGc+ZKgDSsauCg== X-Received: by 2002:a17:903:11c7:b0:298:603b:dc46 with SMTP id d9443c01a7336-29d6841440dmr81074015ad.39.1764865067038; Thu, 04 Dec 2025 08:17:47 -0800 (PST) Received: from server.roeck-us.net ([2600:1700:e321:62f0:da43:aeff:fecc:bfd5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29dae49c8a0sm23922255ad.3.2025.12.04.08.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Dec 2025 08:17:46 -0800 (PST) Sender: Guenter Roeck From: Guenter Roeck To: Shuah Khan Cc: Christian Brauner , Elizabeth Figura , Thomas Gleixner , Eric Dumazet , Jakub Kicinski , 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 10/13] selftests: net: Work around build error seen with -Werror Date: Thu, 4 Dec 2025 08:17:24 -0800 Message-ID: <20251204161729.2448052-11-linux@roeck-us.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20251204161729.2448052-1-linux@roeck-us.net> References: <20251204161729.2448052-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: error: ignoring return value of =E2=80=98write=E2=80=99 declar= ed 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: error: ignoring return value of =E2=80=98read=E2=80=99 declare= d with attribute =E2=80=98warn_unused_result=E2=80=99 by checking and then ignoring the return value of the affected functions. Fixes: 2b6d490b82668 ("selftests: drv-net: Factor out ksft C helpers") Cc: Joe Damato Signed-off-by: Guenter Roeck --- 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..b3d3f7e28e98 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))) + ; 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))) + ; if (fd !=3D STDIN_FILENO) close(fd); } --=20 2.43.0