public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Indu Bhagat <indu.bhagat@oracle.com>
To: binutils@sourceware.org
Cc: Indu Bhagat <indu.bhagat@oracle.com>
Subject: [PATCH 07/10] bfd: libsframe: use uint32_t for return type of sframe_calc_fre_type
Date: Thu, 22 Jun 2023 21:44:45 -0700	[thread overview]
Message-ID: <20230623044448.2617101-8-indu.bhagat@oracle.com> (raw)
In-Reply-To: <20230623044448.2617101-1-indu.bhagat@oracle.com>

Use uint32_t type alias consistently for all APIs in libsframe.

bfd/
	* elfxx-x86.c (_bfd_x86_elf_create_sframe_plt): Adjust for the
	changed return type.
libsframe/
	* sframe.c (sframe_calc_fre_type): Use uint32_t for return type.
include/
	* sframe-api.h (sframe_calc_fre_type): Likewise.
---
 bfd/elfxx-x86.c      | 2 +-
 include/sframe-api.h | 2 +-
 libsframe/sframe.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bfd/elfxx-x86.c b/bfd/elfxx-x86.c
index 8e13a92e7f9..ffd02f137d1 100644
--- a/bfd/elfxx-x86.c
+++ b/bfd/elfxx-x86.c
@@ -1832,7 +1832,7 @@ _bfd_x86_elf_create_sframe_plt (bfd *output_bfd,
   bool plt0_generated_p;
   unsigned int plt0_entry_size;
   unsigned char func_info;
-  unsigned int fre_type;
+  uint32_t fre_type;
   /* The dynamic plt section for which .sframe stack trace information is being
      created.  */
   asection *dpltsec;
diff --git a/include/sframe-api.h b/include/sframe-api.h
index d04ebe85d11..70829ec87cb 100644
--- a/include/sframe-api.h
+++ b/include/sframe-api.h
@@ -98,7 +98,7 @@ sframe_fde_create_func_info (uint32_t fre_type, uint32_t fde_type);
 
 /* Gather the FRE type given the function size.  */
 
-extern unsigned int
+extern uint32_t
 sframe_calc_fre_type (size_t func_size);
 
 /* The SFrame Decoder.  */
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index 7391df0d3b5..8e9dc0a9d2c 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -601,7 +601,7 @@ sframe_fde_create_func_info (uint32_t fre_type,
 /* Get the FRE type given the function size.  */
 /* FIXME API for linker.  Revisit if its better placed somewhere else?  */
 
-unsigned int
+uint32_t
 sframe_calc_fre_type (size_t func_size)
 {
   uint32_t fre_type = 0;
-- 
2.39.2


  parent reply	other threads:[~2023-06-23  4:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-23  4:44 [PATCH 00/10] Patches for libsframe versioning and symbol versioning Indu Bhagat
2023-06-23  4:44 ` [PATCH 01/10] libsframe: add library versioning Indu Bhagat
2023-06-23  4:44 ` [PATCH 02/10] libsframe: remove sframe_get_funcdesc_with_addr API Indu Bhagat
2023-06-23  4:44 ` [PATCH 03/10] libsframe: add symbol versioning Indu Bhagat
2023-06-23  4:44 ` [PATCH 04/10] libsframe: update the semantics of sframe_fre_get_ra_offset Indu Bhagat
2023-06-23  4:44 ` [PATCH 05/10] libsframe: update the semantics of sframe_fre_get_fp_offset Indu Bhagat
2023-06-23  4:44 ` [PATCH 06/10] libsframe: use uint32_t for fre_type and fde_type function args Indu Bhagat
2023-06-23  4:44 ` Indu Bhagat [this message]
2023-06-23  4:44 ` [PATCH 08/10] libsframe: use uint8_t instead of unsigned char for abi_arch Indu Bhagat
2023-06-23  4:44 ` [PATCH 09/10] libsframe: use uint8_t for return type of sframe_fre_get_base_reg_id Indu Bhagat
2023-06-23  4:44 ` [PATCH 10/10] binutils/NEWS: add note about upcoming libsframe changes Indu Bhagat
2023-06-27 19:59 ` [PATCH 00/10] Patches for libsframe versioning and symbol versioning Indu Bhagat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230623044448.2617101-8-indu.bhagat@oracle.com \
    --to=indu.bhagat@oracle.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).