| Message ID | 20251029-fix-libgloss-i386-compile-issues-v1-2-26edcb02f69c@kernel.org |
|---|---|
| State | New |
| Headers |
Return-Path: <newlib-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF84C3858D2A for <patchwork@sourceware.org>; Wed, 29 Oct 2025 07:04:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF84C3858D2A Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=YU/ZNcCB X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) by sourceware.org (Postfix) with ESMTPS id B61A13858D2A for <newlib@sourceware.org>; Wed, 29 Oct 2025 06:58:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B61A13858D2A Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B61A13858D2A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2600:3c0a:e001:78e:0:1991:8:25 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761721136; cv=none; b=pB6pVroZKOOyCqbGt9Xik8z1GI54Y81qp8rwHRe59BHeR73KAut+gldj1WNNAXIuv2l1sW0WMRoeRxQoj9+sxVTiQEiGz3e7BvFdQ2SIx7pDFo5NUHc3RKVjl8gMh7JAq8vQYSfGwSc6V0zbIltsxpGPP265iUbAzTTwgWOk+1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761721136; c=relaxed/simple; bh=9pfd1UpaEhiBXAfkL/M7UArZHa4Y4GdKbuQaci/meWk=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=kG7k4garO+WhXW+ddWY+k8VOjqJXF0svGc2q/ntxlbPW0PbD7d00PM5r0ClMV03TaFH11aKyJcT28xRzUI7aQxRIBZ5kCUsdpGWSu3bdXcBlDGSHmcIs21I1YBp9yG+W3sVQLauX4LW0RcdEU8TmgHyE15LY3PJf/RoZCHd/BEQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B61A13858D2A Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 0905045486 for <newlib@sourceware.org>; Wed, 29 Oct 2025 06:58:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FD9FC4CEFB; Wed, 29 Oct 2025 06:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761721135; bh=9pfd1UpaEhiBXAfkL/M7UArZHa4Y4GdKbuQaci/meWk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YU/ZNcCBeLLACarhlFFKdT1bNhcgZDdUojOumK/yCxeSsgauZGA62yc2ypXwPuzZX 4CJsJ6FlNaSpqltrnE1rPT0sjxofflYiRtlgfI+sCJ+osq+RA4GrZJ0d12MMp5e0ci AZoRXNw3NFTX8t0hT5FIgzRWmoPzLFHUWZYCaQppp+dTP/eRk1M4cl2TV/wVNqBw33 CwS7hw7nkD+nmR1OT0ncHjA1oU9KenkyTbhZRGnOmgp9QU/PZ/h528CnfbcZFFnrcP HE0grMePHQOo4dXBtz+Jm/PZW9LWyVbA58LMFOxCvot80zKY7/2Yc7gKTP6HUnNhML mvuKyxZ9lYq3A== From: Vincent Mailhol <mailhol@kernel.org> Date: Wed, 29 Oct 2025 07:58:27 +0100 Subject: [PATCH 2/6] libgloss: i386: cygmon-gmon.c: add profil() prototype MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251029-fix-libgloss-i386-compile-issues-v1-2-26edcb02f69c@kernel.org> References: <20251029-fix-libgloss-i386-compile-issues-v1-0-26edcb02f69c@kernel.org> In-Reply-To: <20251029-fix-libgloss-i386-compile-issues-v1-0-26edcb02f69c@kernel.org> To: newlib@sourceware.org Cc: Vincent Mailhol <mailhol@kernel.org> X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1057; i=mailhol@kernel.org; h=from:subject:message-id; bh=9pfd1UpaEhiBXAfkL/M7UArZHa4Y4GdKbuQaci/meWk=; b=owGbwMvMwCV2McXO4Xp97WbG02pJDJmMu2W1Uv7JXsl9J2+95lzVvb37lH90eW9NM7y0+laJV +J8HtafHaUsDGJcDLJiiizLyjm5FToKvcMO/bWEmcPKBDKEgYtTACZSEsXwv2B31dVQoRzWYo71 5mtDprFztxXZ70kwiHvBOal9w90MTkaGs3/4XjM/uzwxec6alr/agQmFXp9tGf5InZladzqrIvk 3CwA= X-Developer-Key: i=mailhol@kernel.org; a=openpgp; fpr=ED8F700574E67F20E574E8E2AB5FEB886DBB99C2 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
libgloss: i386: fix compilation issues
|
|
Commit Message
Vincent Mailhol
Oct. 29, 2025, 6:58 a.m. UTC
Add the prototype of profil() to resolve below GCC error:
cygmon-gmon.c: In function 'moncontrol':
cygmon-gmon.c:349:7: error: implicit declaration of function 'profil' [-Wimplicit-function-declaration]
349 | profil((unsigned short *)(sbuf + sizeof(struct phdr)),
| ^~~~~~
Note that unistd.h in which profil() is normally present is not
sufficient here because newlib's unistd.h does not provide it.
Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
---
libgloss/i386/cygmon-gmon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libgloss/i386/cygmon-gmon.c b/libgloss/i386/cygmon-gmon.c index ac3af30a6..7d0697852 100644 --- a/libgloss/i386/cygmon-gmon.c +++ b/libgloss/i386/cygmon-gmon.c @@ -68,6 +68,9 @@ static char sccsid[] = "@(#)gmon.c 5.3 (Berkeley) 5/22/91"; #include "cygmon-gmon.h" +int profil(unsigned short *tampon, size_t taille_tampon, + size_t offset, unsigned int echelle); + /* * froms is actually a bunch of unsigned shorts indexing tos */