From patchwork Fri Mar 29 06:18:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tatsuyuki Ishi X-Patchwork-Id: 87805 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 318BF3858433 for ; Fri, 29 Mar 2024 06:19:22 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 836363858D28 for ; Fri, 29 Mar 2024 06:18:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 836363858D28 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 836363858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::532 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711693137; cv=none; b=rz0ZvKfAsBEtO7ndFP4db3bU4SUaBVpu02YPrUGVpofxRFBHlGFDW00d90K+uo9ThIt9OLKtdtatGCiVvl5JJ4b2XK+cS9mfFXQjc9k80e0ubhUPpnXF/fLNIR6YvNxue/+eq68i0/6WfXHIdbmJViiKc4VmvmCQPSH57VIwl+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711693137; c=relaxed/simple; bh=L46JIt+dyO2zoAajHe2Gk4TmWUO526/zgrH5IJn71vo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SnoidZHDjkKKmsZnGKNanRT0y830eSyp+lxqRcbMA1kNMYwsBzBrrqJUTeTC6fqHNzgvstQLp3sDFwAjwtS97+eDfHKuS8ruE3sHefQEiIStRA7IGqATCSO+63FCrMBJq9pe8nA7fGkKVtcZkiZUBfHf92MNBTR8e47p7wMWfww= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-5d862e8b163so374329a12.1 for ; Thu, 28 Mar 2024 23:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711693127; x=1712297927; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hUOQWXTVhQe5q4/sE61TKpfM4+S7Gje9/btRM0aZACo=; b=JCGBQkS9TunU2oFpK032BFCnrFonoIeY2M5wYeSLiODP8ej1v9d3MTEtclJyylUGwr Vg+eeBHGhDzLQPqF8EDGd1AB+7ErbdlDjRSfmbImw/ft41J+YL3GZ4GIwh3/qpMF3r/e T7j85mpX8yhHlgfoWrh5He9Gzqol175V/3VjitqjrcJMGK1KogKS+UdzZarfWxEq1Nzh W8CoZ3LjhNmmkNYfQToJ5SLnA2jaV/2XlkeSW5YNwTAaJ47ROOuz26D4GsuxKz3tWbMV epQBQBWaKUS9uHoeD/qUTZW3nlpuR8Xz8jp+H+/kSHDiuMYq+IClvLyA3F/35Lcck1FZ Hb5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711693127; x=1712297927; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hUOQWXTVhQe5q4/sE61TKpfM4+S7Gje9/btRM0aZACo=; b=PupF9+OE8jnDa+SZ8ORe89/p/SoaTziMvxEEbia6VNyPqETlA5C04fnrRuPMtu9MLq Zs+G/IdJ9oT2832SPtMSFCWreP5HIOxee7jXmMCUVApR4JGWZYkMQplVIuMSqvw+9z0i bWcW9H4T1pFCarBWfip10je5FtCKiczZKDVXoATSlBi3uJSyX+7EtY8aW9vQPPHQgxYy Ksxj1jIZr4iZ2Owa6/TXcULkxP9JosGkXCt1VWFy0JFxU+K0q1V7gT1OMvY1sGmi32f+ 36f29+M9fGLFYc4XfdN5/H+IeiF62z1v0UOMllwmQp0QX3SWJZTR6TSxUHKRMGi+gOqZ eLnQ== X-Gm-Message-State: AOJu0YzCVmHodD8lh2HbeLodYTVwg81jmtv5ce9Yk66LkizZT0knGeUB g8f+1E+VBCFmsUOEBaiQcN6agUZhK1JBs7Ks3yedX21HWAxkLCs8 X-Google-Smtp-Source: AGHT+IGy0DIBW10hhQY9ril/zIZHMmL5PlwfLv+7dgvKvEH9jD5wYc1yDVFGjwJCCWro64l9m8amFA== X-Received: by 2002:a17:902:c401:b0:1dd:e128:16b1 with SMTP id k1-20020a170902c40100b001dde12816b1mr1582005plk.6.1711693127400; Thu, 28 Mar 2024 23:18:47 -0700 (PDT) Received: from localhost (zz20184013906F627101.userreverse.dion.ne.jp. [111.98.113.1]) by smtp.gmail.com with ESMTPSA id s23-20020a170902b19700b001e0b5ef2bcbsm2691269plr.128.2024.03.28.23.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 23:18:46 -0700 (PDT) From: Tatsuyuki Ishi To: ishitatsuyuki@gmail.com Cc: libc-alpha@sourceware.org, rui314@gmail.com, ruiu@bluewhale.systems, schwab@linux-m68k.org, adhemerval.zanella@linaro.org, andrew@sifive.com, fweimer@redhat.com Subject: [PATCH v6 1/3] RISC-V: Add include guard for dl-tls.h. Date: Fri, 29 Mar 2024 15:18:32 +0900 Message-ID: <20240329061834.40019-2-ishitatsuyuki@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240329061834.40019-1-ishitatsuyuki@gmail.com> References: <20230817181228.122674-2-ishitatsuyuki@gmail.com> <20240329061834.40019-1-ishitatsuyuki@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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: 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+patchwork=sourceware.org@sourceware.org The to-be-added dl-tlsdesc.h will depend on tls_index from dl-tls.h. Add an include guard to avoid confusing issues when including both. Reviewed-by: Adhemerval Zanella --- sysdeps/riscv/dl-tls.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/riscv/dl-tls.h b/sysdeps/riscv/dl-tls.h index 049161f02f..42914c752b 100644 --- a/sysdeps/riscv/dl-tls.h +++ b/sysdeps/riscv/dl-tls.h @@ -16,6 +16,8 @@ License along with the GNU C Library. If not, see . */ +#ifndef _DL_TLS_H +# define _DL_TLS_H 1 /* Type used for the representation of TLS information in the GOT. */ typedef struct @@ -46,3 +48,5 @@ extern void *__tls_get_addr (tls_index *ti); /* Value used for dtv entries for which the allocation is delayed. */ #define TLS_DTV_UNALLOCATED ((void *) -1l) + +#endif /* _DL_TLS_H */