From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [185.226.149.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A138C30BF70 for ; Mon, 2 Mar 2026 10:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.226.149.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772446738; cv=none; b=KVva4SryOm23jKRwqx6kgrRq8m8RXnzqOhMRJvk2+c9Q0nFIABUoHeBpHWfjdWNuh9AQEIZYRBxvlVVknld4fVrAYkgD2Z/Ggj6YLwP/H0ehFoZzWtWKlwZDf3r/Jet7xIdBvvg9akdbU3SXTiTEJnAaYcPZO7ijiRhRKiPBRTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772446738; c=relaxed/simple; bh=mCSPed7AHFcMNuHHq0bG4fjc1cHlDqpqZWCT1XNyDU0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AMnthHGl/ZhyasMml74JppWtSoR1RRQlsawuJY+Cm1niy4sAEWesUhaUXB0vJbos63Yp+zfYMZZ6LJjOiwVjVuXcK2emClNUU9fuUtfYDZhaTKGKO3GVcPJFS/BkZVuGdngDgKsLJHA1FcAny4QJHXgqce5qhcPMNVH5UkQaqE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=runbox.com; dkim=pass (2048-bit key) header.d=runbox.com header.i=@runbox.com header.b=d+Pxy/aF; arc=none smtp.client-ip=185.226.149.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=runbox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=runbox.com header.i=@runbox.com header.b="d+Pxy/aF" Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1vx0MU-003BaM-0r; Mon, 02 Mar 2026 11:18:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-Id:Date:Subject:Cc:To:From; bh=497xUsnVEtW9Xpu7mj/f0vOhWR1K3fzMfjlQ+XiJHU4=; b=d+Pxy/aFGMD+DgDJCZ9rjY1DV5 8I6zSkXxsplEtLlryaHLBWqJcHCwxH1xCi0Rsd2rVplNnWRRiSHGSZPaWGLOe8uNNmkA0OKxwWX+0 Re4E3SWwMQHmifhFfqQUjut7sSYFzQ2ErBWmRmZU3HBCHDdVzvfuAMcpylYsbM/j7l9JXkt0iducQ KGzZgGbWOBUfHOCm6vZsbEcjyPAVbYLRrwP/WOGLOMNjG3bjSW2TMUH/OraKOWnGTW9k/XFxXY5VJ 6rJ05aZaq1flaS10y/Izmdsqg0yXSt5MCLyj6gH9FW7ZfGxGKmFuhz4RIdeqnu9s/p/y99PRC6IcE 2HaukEOg==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1vx0MT-00055W-N9; Mon, 02 Mar 2026 11:18:49 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (1493616)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1vx0MA-006y7o-Vy; Mon, 02 Mar 2026 11:18:31 +0100 From: david.laight.linux@gmail.com To: Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Cheng Li Cc: David Laight Subject: [PATCH v4 next 10/23] tools/nolibc: Rename the 'errnum' parameter to strerror() Date: Mon, 2 Mar 2026 10:18:02 +0000 Message-Id: <20260302101815.3043-11-david.laight.linux@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260302101815.3043-1-david.laight.linux@gmail.com> References: <20260302101815.3043-1-david.laight.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: David Laight Change the parameter variable name from 'errno' to 'errnum'. Matches any documentation and avoids any issues that might happen if errno is actually a #define (which is not uncommon). Signed-off-by: David Laight --- v4: - split from the previous patch. tools/include/nolibc/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/include/nolibc/stdio.h b/tools/include/nolibc/stdio.h index 03fcd0229f90..a567b9a5c31e 100644 --- a/tools/include/nolibc/stdio.h +++ b/tools/include/nolibc/stdio.h @@ -730,7 +730,7 @@ int strerror_r(int errnum, char *buf, size_t buflen __attribute__((unused))) } static __attribute__((unused)) -const char *strerror(int errno) +const char *strerror(int errnum) { static char buf[18]; char *b = buf; @@ -739,7 +739,7 @@ const char *strerror(int errno) _NOLIBC_OPTIMIZER_HIDE_VAR(b); /* Use strerror_r() to avoid having the only .data in small programs. */ - strerror_r(errno, b, sizeof(buf)); + strerror_r(errnum, b, sizeof(buf)); return b; } -- 2.39.5