From patchwork Wed Jan 3 17:14:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 1882024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=DIGQmwuP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4T4xHW5cVsz1yQ5 for ; Thu, 4 Jan 2024 04:17:43 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD1B33857733 for ; Wed, 3 Jan 2024 17:17:41 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id 370143858004 for ; Wed, 3 Jan 2024 17:15:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 370143858004 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 370143858004 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302110; cv=none; b=wT1bSrhL+4/AN1YIsLUAGJZCcmHuA3wSfeA/58X5mWFpsrwDEolTmDG1eSvTihKCGRRv9426mikm664YTUf4sawjaPKI7EcCi4X5agAZBLiiGT26y6oB5WDXQNPFNlk6vJ95hx4h//eiMU5tK9mbOpK4FIlXGhkdAHs6CGZ7YuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704302110; c=relaxed/simple; bh=0mlV4RotcjWMxpZZB0N0dOF2m0nUmbKVitk4JRy9PO8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wJr7P3d2aM/QUSwkxAxvkG/yIrGx+q6fq7Cg8MuacP20mU1D3NmPYhmqO2pDxKdcrZkauY+vRSvIOiQtsmPsNZycW7gfwt7311iqc+rMyL25WZ+BiJjJGkuFEbiFBb7EosFK+qMTZApPmksgQEYE2Lvu98A7+jQ1rSl5uttyR/Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50e5a9bcec9so12822058e87.3 for ; Wed, 03 Jan 2024 09:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704302106; x=1704906906; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=IIsGE57VFb5SHfljB59eqil5h/0US409NQHhiI7fpkQ=; b=DIGQmwuPxZhr17LydKqBnGwHwhlnUm4Ottux8t1Pw9gGfqJx+BmDgSlFE90hnSaZOb W2MjaIU6NvnEdfiKuOgwlBnTbWecSMPZVhkDckhDuebWu5k/DFm1Qr8NHB/GgyBMRxq/ yEsakCjhm+wr97NfuKjOgdw7F9GWew194U+RuLSCmBIz5OUIzn4vikokKhmD87R97Vv6 X3DI8wj553fQ0l63T2gRpv89CjWA2tHVtNkca7AY0M3YtRFOALjKYLBbmd9aakQph88x +oNRDv3njaW68kO54Ejh1o7/7vc2cHa6AP+pVqXlJbgDuCxJ7i8ptIX+5id1pLtqFrq1 Y5YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704302106; x=1704906906; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IIsGE57VFb5SHfljB59eqil5h/0US409NQHhiI7fpkQ=; b=mLP9xS3PUU+tAiarybLjR3yxuHBhyHwXq9MVX/PTcOJxIMv4VHetZBQtyD0Ncf0T4m vhkwLM+jvaDSwojapsNHXNT/6Bt1DUGVYeC0bTbve2mU62+ob7H1CyC4nzF80fk6wwVp YgEQ+RdWMXy8T4gWpJNb2d7UWczIkBWrfu66C3huv2trHEoKzZB6IkptCd5/vR3vvvnX e7Usga6HK1FWxRgS2MD9i7Haqh1cewqzqyYqjul/AzWKeAnHhVhyx2Reeq0IjOq6cBas /Pk1VE8w8qvLlkBjYY5QTicPwOGbVKoGDi8DcAf7GVH7iDFoAKtb5joz9wDERGoOJ148 yXTQ== X-Gm-Message-State: AOJu0YzYmcADFjQnoe3qes8J3bMaEfeN6WOL2O0mGbVRU7gpFKrbGz+x nFKrVMuZPFnYs03QDymgNIJ0XNgd64I= X-Google-Smtp-Source: AGHT+IFUhnOG3k4MQh9dHiQjGSZK12t3B/6jOOBXwnEszJiChEtQATqe0STfvSP9u3vOjJKNu3SwkA== X-Received: by 2002:a19:384e:0:b0:50e:384c:6982 with SMTP id d14-20020a19384e000000b0050e384c6982mr7880127lfj.42.1704302106035; Wed, 03 Jan 2024 09:15:06 -0800 (PST) Received: from surface-pro-6.. ([2a00:1370:818c:b32f:ebdc:fd0:376b:8006]) by smtp.gmail.com with ESMTPSA id y23-20020a196417000000b0050e6d84d177sm3546068lfb.279.2024.01.03.09.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:15:05 -0800 (PST) From: Sergey Bugaev To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [PATCH 02/23] hurd: Declare _hurd_intr_rpc_msg* with protected visibility Date: Wed, 3 Jan 2024 20:14:35 +0300 Message-ID: <20240103171502.1358371-3-bugaevc@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240103171502.1358371-1-bugaevc@gmail.com> References: <20240103171502.1358371-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org These symbols are internal and never exported; make sure the compiler realizes that when compiling hurdsig.c and does not try to emit GOT reads. Signed-off-by: Sergey Bugaev --- hurd/hurdsig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index fe788193..882a0347 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -416,9 +416,9 @@ _hurdsig_abort_rpcs (struct hurd_sigstate *ss, int signo, int sigthread, struct machine_thread_all_state *state, int *state_change, void (*reply) (void)) { - extern const void _hurd_intr_rpc_msg_about_to; - extern const void _hurd_intr_rpc_msg_setup_done; - extern const void _hurd_intr_rpc_msg_in_trap; + extern const void _hurd_intr_rpc_msg_about_to attribute_hidden; + extern const void _hurd_intr_rpc_msg_setup_done attribute_hidden; + extern const void _hurd_intr_rpc_msg_in_trap attribute_hidden; mach_port_t rcv_port = MACH_PORT_NULL; mach_port_t intr_port;