| Message ID | 20250702073929.107261-1-sebastian.huber@embedded-brains.de |
|---|---|
| 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 24BD0385DDD4 for <patchwork@sourceware.org>; Wed, 2 Jul 2025 07:40:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24BD0385DDD4 X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id DDF88385DDC0 for <newlib@sourceware.org>; Wed, 2 Jul 2025 07:39:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDF88385DDC0 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DDF88385DDC0 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=85.10.215.148 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751441975; cv=none; b=jNh3copQpZK42LlKW8TjbRiY8iyXJOfARdF2cy+VLmjlMIN8EkGWTECAwCqzA/Dik2/dxMXZUGpcHSk8Us++7G4C1HnF1OAxEwcNuOUbbs66LD6/iGR1O7f+mljXMAmQcmHB2D6/2Rj0m7PkfusoxCaec2o5/SV83M/DH0GWojY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751441975; c=relaxed/simple; bh=r+X8A/+egD0c6HBfqOcZHmkE6sKRTaoTOvh29wHg+Lw=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=E0Q9Eqy4alngyy9dCvUgTupGF7bBVhn1vjkIOWvawdtck9KRw2Rl6U7thCH95IPzV8Ktn0ECsRTiRhqZ2RGMOsOkztVl84di1vSFWVDwFmuLq53DK5Pc64bieCj9L4eyFBpuFN3DFUmNSay4eeuoeQIkd/fSQfjXPjjrP5T0eGo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDF88385DDC0 Received: from sslproxy04.your-server.de ([78.46.152.42]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from <sebastian.huber@embedded-brains.de>) id 1uWs45-000ICy-2R for newlib@sourceware.org; Wed, 02 Jul 2025 09:39:33 +0200 Received: from localhost ([127.0.0.1]) by sslproxy04.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <sebastian.huber@embedded-brains.de>) id 1uWs44-0008qG-3A for newlib@sourceware.org; Wed, 02 Jul 2025 09:39:33 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 3EF1D480063 for <newlib@sourceware.org>; Wed, 2 Jul 2025 09:39:33 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavis, port 10032) with ESMTP id ZqCz9cRQxJ4u for <newlib@sourceware.org>; Wed, 2 Jul 2025 09:39:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 0581648006F for <newlib@sourceware.org>; Wed, 2 Jul 2025 09:39:33 +0200 (CEST) X-Virus-Scanned: amavis at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavis, port 10026) with ESMTP id gramUsrF1_ie for <newlib@sourceware.org>; Wed, 2 Jul 2025 09:39:32 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id D62BB480063 for <newlib@sourceware.org>; Wed, 2 Jul 2025 09:39:32 +0200 (CEST) From: Sebastian Huber <sebastian.huber@embedded-brains.de> To: newlib@sourceware.org Subject: [PATCH] rtems: No-return _arc4random_getentropy_fail() Date: Wed, 2 Jul 2025 09:39:29 +0200 Message-ID: <20250702073929.107261-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Clear (ClamAV 1.0.7/27686/Tue Jul 1 10:40:53 2025) X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, 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 |
rtems: No-return _arc4random_getentropy_fail()
|
|
Commit Message
Sebastian Huber
July 2, 2025, 7:39 a.m. UTC
The _arc4random_getentropy_fail() function does not return. Mark it as
such.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
newlib/libc/sys/rtems/include/machine/_arc4random.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Sebastian, I think you can tweak RTMES files without waiting for approval from Jeff or me. Thanks, Corinna On Jul 2 09:39, Sebastian Huber wrote: > The _arc4random_getentropy_fail() function does not return. Mark it as > such. > > Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de> > --- > newlib/libc/sys/rtems/include/machine/_arc4random.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/newlib/libc/sys/rtems/include/machine/_arc4random.h b/newlib/libc/sys/rtems/include/machine/_arc4random.h > index 7ef296899..83b8493f1 100644 > --- a/newlib/libc/sys/rtems/include/machine/_arc4random.h > +++ b/newlib/libc/sys/rtems/include/machine/_arc4random.h > @@ -28,7 +28,7 @@ > > __BEGIN_DECLS > > -void _arc4random_getentropy_fail(void); > +_Noreturn void _arc4random_getentropy_fail(void); > > #define _ARC4RANDOM_GETENTROPY_FAIL() _arc4random_getentropy_fail() > > -- > 2.43.0
diff --git a/newlib/libc/sys/rtems/include/machine/_arc4random.h b/newlib/libc/sys/rtems/include/machine/_arc4random.h index 7ef296899..83b8493f1 100644 --- a/newlib/libc/sys/rtems/include/machine/_arc4random.h +++ b/newlib/libc/sys/rtems/include/machine/_arc4random.h @@ -28,7 +28,7 @@ __BEGIN_DECLS -void _arc4random_getentropy_fail(void); +_Noreturn void _arc4random_getentropy_fail(void); #define _ARC4RANDOM_GETENTROPY_FAIL() _arc4random_getentropy_fail()