public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] arm: Fix typo in array count
@ 2017-05-24 16:26 Siddhesh Poyarekar
  2017-05-24 16:37 ` Joseph Myers
  0 siblings, 1 reply; 2+ messages in thread
From: Siddhesh Poyarekar @ 2017-05-24 16:26 UTC (permalink / raw)
  To: libc-alpha

I just noticed that the array count for the hwcap flags list in ARM is
off by 10, i.e. 37 instead of 27.  Following patch fixes this.

	* sysdeps/unix/sysv/linux/arm/dl-procinfo.c
	(_dl_arm_cap_flags): Fix array subscript.
	* sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
	Fix count.
---
 sysdeps/unix/sysv/linux/arm/dl-procinfo.c | 2 +-
 sysdeps/unix/sysv/linux/arm/dl-procinfo.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/arm/dl-procinfo.c b/sysdeps/unix/sysv/linux/arm/dl-procinfo.c
index 2024694..15c45d0 100644
--- a/sysdeps/unix/sysv/linux/arm/dl-procinfo.c
+++ b/sysdeps/unix/sysv/linux/arm/dl-procinfo.c
@@ -46,7 +46,7 @@
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_arm_cap_flags
 #else
-PROCINFO_CLASS const char _dl_arm_cap_flags[37][10]
+PROCINFO_CLASS const char _dl_arm_cap_flags[27][10]
 #endif
 #ifndef PROCINFO_DECL
 = {
diff --git a/sysdeps/unix/sysv/linux/arm/dl-procinfo.h b/sysdeps/unix/sysv/linux/arm/dl-procinfo.h
index 5dc394d..b6a9d9f 100644
--- a/sysdeps/unix/sysv/linux/arm/dl-procinfo.h
+++ b/sysdeps/unix/sysv/linux/arm/dl-procinfo.h
@@ -23,7 +23,7 @@
 #include <ldsodefs.h>
 #include <sysdep.h>
 
-#define _DL_HWCAP_COUNT 37
+#define _DL_HWCAP_COUNT 27
 
 /* Low 22 bits are allocated in HWCAP.  */
 #define _DL_HWCAP_LAST		21
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm: Fix typo in array count
  2017-05-24 16:26 [PATCH] arm: Fix typo in array count Siddhesh Poyarekar
@ 2017-05-24 16:37 ` Joseph Myers
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph Myers @ 2017-05-24 16:37 UTC (permalink / raw)
  To: Siddhesh Poyarekar; +Cc: libc-alpha

On Wed, 24 May 2017, Siddhesh Poyarekar wrote:

> I just noticed that the array count for the hwcap flags list in ARM is
> off by 10, i.e. 37 instead of 27.  Following patch fixes this.
> 
> 	* sysdeps/unix/sysv/linux/arm/dl-procinfo.c
> 	(_dl_arm_cap_flags): Fix array subscript.
> 	* sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
> 	Fix count.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 16:26 [PATCH] arm: Fix typo in array count Siddhesh Poyarekar
2017-05-24 16:37 ` Joseph Myers

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).