From patchwork Tue Sep 5 09:59:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 75274 Return-Path: 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 449803857731 for ; Tue, 5 Sep 2023 09:59:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 475053858D35 for ; Tue, 5 Sep 2023 09:59:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 475053858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 3CF8720135; Tue, 5 Sep 2023 11:59:35 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0y_V0tb2FRhh; Tue, 5 Sep 2023 11:59:35 +0200 (CEST) Received: from begin (nat-inria-interne-52-gw-01-bso.bordeaux.inria.fr [194.199.1.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id F29112012C; Tue, 5 Sep 2023 11:59:34 +0200 (CEST) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1qdSqM-001G41-1R; Tue, 05 Sep 2023 11:59:34 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Subject: [hurd, commited] hurd: Avoid including thread_state.h in installed header Date: Tue, 5 Sep 2023 11:59:34 +0200 Message-Id: <20230905095934.300070-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: commit-hurd@gnu.org Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" thread_state.h is not actually installed. It was only needed for struct machine_thread_all_state, which we can just declare, actually. --- hurd/hurd/signal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h index 290c455ad4..4373e589f3 100644 --- a/hurd/hurd/signal.h +++ b/hurd/hurd/signal.h @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -185,6 +184,7 @@ _hurd_self_sigstate (void) # endif #endif +struct machine_thread_all_state; extern mach_port_t _hurdsig_abort_rpcs (struct hurd_sigstate *ss, int signo, int sigthread, struct machine_thread_all_state *state, int *state_change, @@ -331,7 +331,6 @@ extern void _hurd_internal_post_signal (struct hurd_sigstate *ss, stack the handler will use, and which describes the state of the thread encoded in STATE before running the handler). */ -struct machine_thread_all_state; extern struct sigcontext * _hurd_setup_sighandler (struct hurd_sigstate *ss, const struct sigaction *action, __sighandler_t handler,