From patchwork Sat May 18 15:07:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitriy Chestnykh X-Patchwork-Id: 1936731 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=YZHzvbCO; 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)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VhS0k6w3Dz20KJ for ; Sun, 19 May 2024 01:09:26 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 8527B3521138; Sat, 18 May 2024 17:09:15 +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=YZHzvbCO; dkim-atps=neutral Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) by helium.openadk.org (Postfix) with ESMTPS id BF1343521163 for ; Sat, 18 May 2024 17:08:01 +0200 (CEST) Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-51f929b9f10so623349e87.2 for ; Sat, 18 May 2024 08:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716044880; x=1716649680; 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=Eb4aFoqofhxD9cUlJGY5z28mh7wn6Sj/N4bG9dHjP84=; b=YZHzvbCOZ9PikkjgCn50XiEZjwTuyIM3rKwQLWa3HLmHAmY8oFwePHC3LLT9R5Ezsg hUlBNgkItwPnf2i5PjbPPlVL2ejMzXhz6AGwdCraVlW0fHdfN9/UcG2/et+WKeG+/J+g d8Ek/4OVGoWDmarFKeqecpbILDmSAu+J/SbnXb+Ms5HUyrXKJp20zPOl4OxWF4/8q3RG 2VdBYCu/fqTQ1juLRwTFdJ8mlGnpS8UDXXJFwu6cs4az43xUARIBTO6UJiWVkjugAzvt vgOVcnd/Z4lycGhvoUwUpFXJXFmADBzUgK9TVjX2nxcqfDjw9jkqlKx7GtP9GU3A4MlZ XfCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716044880; x=1716649680; 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=Eb4aFoqofhxD9cUlJGY5z28mh7wn6Sj/N4bG9dHjP84=; b=LzjVAEkmGOgzZBkC0f1AON4feFswMO+UNYWwWwMu1dF5JAq0SCVwjdaZvvkDHL4+Bo 0e7h8/ud8IWJaCgSC1O1Va8478I3o2f1POHc1Rvi1MKq0aZ6Te9/+8CIsOqOFkxVFMDu MgH8V6Fem3Zq5XewMqMceXoFeBRjlgVqNzDWN4vbjPdNsfGJZ2SycFkWRhmCHrWngfQG +k4x9gWPf4yI5QvhajkcPeZ8Li3rmU4TBZpRhmCXdRBvHNG3sruNw68gh+hcqrmYvBCb L2yQdkZM+fBbBwlnriPAz7g6AUkQKpWouxALj6F6rvvn/TD/GdXYlNkuKSJ47FaC85E5 ue9Q== X-Gm-Message-State: AOJu0Yym2pKaKJ1Iv3cOwXb3RT9TBa9Hm8mfSOT86dzCZBbF5GH1ZELi W2IFMZ/UZm2N8NiSNJVGIQGqgRwp3Um4liam3euuidtfCptFfd3CPpfF1Q== X-Google-Smtp-Source: AGHT+IFgHvHRW2W2M2KZobIy9IKb9w0hS/4oWNzlCr8HnSrkyTGtTWDQhJGFV3b41D+w6U4CWXXbTw== X-Received: by 2002:ac2:53b5:0:b0:518:b180:3f94 with SMTP id 2adb3069b0e04-5220fc7eb89mr13119658e87.2.1716044879618; Sat, 18 May 2024 08:07:59 -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-52389b09bd0sm1405888e87.138.2024.05.18.08.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 08:07:59 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Sat, 18 May 2024 18:07:44 +0300 Message-ID: <20240518150744.584015-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Message-ID-Hash: CUYHXE7VZ4SVS22QBCPJECJZHVZDMFTF X-Message-ID-Hash: CUYHXE7VZ4SVS22QBCPJECJZHVZDMFTF 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] Fix wrong `struct ucontext_t` typedef for all arches. List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The correct one is `struct ucontext` -> `ucontext_t`. Signed-off-by: Dmitry Chestnykh --- libc/sysdeps/linux/aarch64/sys/ucontext.h | 4 ++-- libc/sysdeps/linux/riscv64/sys/ucontext.h | 4 ++-- libc/sysdeps/linux/tile/sys/ucontext.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libc/sysdeps/linux/aarch64/sys/ucontext.h b/libc/sysdeps/linux/aarch64/sys/ucontext.h index 5f75cbbf3..1a27f918b 100644 --- a/libc/sysdeps/linux/aarch64/sys/ucontext.h +++ b/libc/sysdeps/linux/aarch64/sys/ucontext.h @@ -45,10 +45,10 @@ typedef elf_fpregset_t fpregset_t; typedef struct sigcontext mcontext_t; /* Userlevel context. */ -typedef struct ucontext_t +typedef struct ucontext { unsigned long uc_flags; - struct ucontext_t *uc_link; + struct ucontext *uc_link; stack_t uc_stack; __sigset_t uc_sigmask; unsigned char __reserved[128]; diff --git a/libc/sysdeps/linux/riscv64/sys/ucontext.h b/libc/sysdeps/linux/riscv64/sys/ucontext.h index 2893ff359..308ccb8c2 100644 --- a/libc/sysdeps/linux/riscv64/sys/ucontext.h +++ b/libc/sysdeps/linux/riscv64/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 diff --git a/libc/sysdeps/linux/tile/sys/ucontext.h b/libc/sysdeps/linux/tile/sys/ucontext.h index ed2c27b58..068da8c4a 100644 --- a/libc/sysdeps/linux/tile/sys/ucontext.h +++ b/libc/sysdeps/linux/tile/sys/ucontext.h @@ -82,10 +82,10 @@ typedef struct } mcontext_t; /* Userlevel context. */ -typedef struct ucontext_t +typedef struct ucontext { unsigned long int __ctx(uc_flags); - struct ucontext_t *uc_link; + struct ucontext *uc_link; stack_t uc_stack; mcontext_t uc_mcontext; sigset_t uc_sigmask;