From patchwork Sat May 18 14:21:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1936723 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=KR0QWRdP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VhQy30Sftz20KJ for ; Sun, 19 May 2024 00:22:02 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 211F6352832A; Sat, 18 May 2024 16:21:54 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=KR0QWRdP; dkim-atps=neutral Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by helium.openadk.org (Postfix) with ESMTPS id 410B635210E4 for ; Sat, 18 May 2024 16:21:50 +0200 (CEST) Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-51fe647633dso175809e87.1 for ; Sat, 18 May 2024 07:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716042109; x=1716646909; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ulNVQZVI7VsoXk8b/bVgtC1P+Jv651QimMnKvxu6e8A=; b=KR0QWRdPRNzIJt6niztPg4KBI4xzUhB25PeQ62GMHeqM4551QpIHR1PuidrEcS9Xc/ bjsFcm0UDKuUONUYd5kKIAHaHTU5Aka6xpl9/PMCXxmUeCfMQvVkn4XX5bnXsxtG+dST yqNl1yh3CBeh01vf/Ed20G9dY2TzGsXCTGaCjnzfR6dk5ijbYesb1+7pZBejehsoIvjQ dY/nvHXHBbr/Fcp/pce3rDcEWOhLokE+SOLSfLt6mmpIMfS72apgNzC/0NDbh9mh2ed+ 2wxb0+E2oCAa1tmRIuzlu8zPZ/kUyejah4u+709JavQJ1iJROn6kzHoul36ce8JrchAZ Z9Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716042109; x=1716646909; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ulNVQZVI7VsoXk8b/bVgtC1P+Jv651QimMnKvxu6e8A=; b=PfqETnqsokS6w6giarzl64qWmysbChaavjbr3wumU96p7OLUL4O4JF3+GYLXWyyL0U WcqvGVQ0LyvZRbagsCxBFXdvap+RSQAN95yNWPk+NodPVnpzqPdqL6jxu9/Bid0ls0Q4 DKnR51IG2QtL8bo6AN5wQKWpQqRkFXdvBFfRyMx/2J0LFoOF1cClUmn6swhiX8fm286e acnvF+vVLKdIxmage5TVAOP9mbPPXLbwh+NigKV7YqsjozKCuNGN25hPg+KCbV/YcacV XOk1RDNboolZXN4cfu+oSRJO4C9mjX6aAy8CLO86GNRgFvr/syXwGk7Meevt7VwJ3zRK TXGg== X-Gm-Message-State: AOJu0YwY3ctiaIYo62RQjdqrUB5zxmPbx/JOh+B06uoBaAC8Edko5Rka Gmw7HCCmhHC/e8UaZDbmuu2UymbBPPefZ7ZgyjHjtJO+MhJq6BphYGYtkA== X-Google-Smtp-Source: AGHT+IFKBdTIJLgJjBc/RJaP2CDwvt7MesqFyE80gwKYvstsRm531hFLwztzBxssR2h4CPxP34d7sg== X-Received: by 2002:a05:6512:3f0d:b0:518:8c8c:db57 with SMTP id 2adb3069b0e04-5220fc7862bmr21738066e87.1.1716042108653; Sat, 18 May 2024 07:21:48 -0700 (PDT) Received: from localhost.localdomain (109-252-38-243.nat.spd-mgts.ru. [109.252.38.243]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52387d66c81sm1420175e87.229.2024.05.18.07.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 07:21:48 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Sat, 18 May 2024 17:21:33 +0300 Message-ID: <20240518142133.201711-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Message-ID-Hash: WODYLQFM7GJ6CQPFW5PPEJSWF2JXVJZT X-Message-ID-Hash: WODYLQFM7GJ6CQPFW5PPEJSWF2JXVJZT X-MailFrom: dm.chestnykh@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Dmitry Chestnykh X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH v2] riscv32: Fix `struct ucontext` definition. List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The correct typedef is `struct ucontext` -> `ucontext_t`, not `struct ucontext_t` -> `ucontext_t` like for other architectures. Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/riscv32/sys/ucontext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/riscv32/sys/ucontext.h b/libc/sysdeps/linux/riscv32/sys/ucontext.h index 2893ff359..308ccb8c2 100644 --- a/libc/sysdeps/linux/riscv32/sys/ucontext.h +++ b/libc/sysdeps/linux/riscv32/sys/ucontext.h @@ -83,10 +83,10 @@ typedef struct mcontext_t } mcontext_t; /* Userlevel context. */ -typedef struct ucontext_t +typedef struct ucontext { unsigned long int __uc_flags; - struct ucontext_t *uc_link; + struct ucontext *uc_link; stack_t uc_stack; sigset_t uc_sigmask; /* There's some padding here to allow sigset_t to be expanded in the