public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/2] Revert "ptrace07: Fix compilation when not on x86"
@ 2022-10-24 10:38 Richard Palethorpe via ltp
  2022-10-24 10:38 ` [LTP] [PATCH 2/2] cpuid/ptrace07: Only compile on x86_64 Richard Palethorpe via ltp
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Palethorpe via ltp @ 2022-10-24 10:38 UTC (permalink / raw)
  To: ltp; +Cc: Richard Palethorpe, Martin Doucha

Empty macro could lead to confusing tests failures. This needs to be
handled differently.

This reverts commit acf485f199347fc270a7da7e33e7635f9e78b6c7.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Suggested-by: Martin Doucha <martin.doucha@suse.com>
---
 include/lapi/cpuid.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/lapi/cpuid.h b/include/lapi/cpuid.h
index 20e977093..cd0567f92 100644
--- a/include/lapi/cpuid.h
+++ b/include/lapi/cpuid.h
@@ -16,15 +16,11 @@
  * have __cpuid_count().
  */
 #ifndef __cpuid_count
-#  if defined(__i386__) || defined(__x86_64__)
 #define __cpuid_count(level, count, a, b, c, d) ({			\
 	__asm__ __volatile__ ("cpuid\n\t"				\
 			      : "=a" (a), "=b" (b), "=c" (c), "=d" (d)	\
 			      : "0" (level), "2" (count));		\
 })
-#  else
-#define __cpuid_count(level, count, a, b, c, d)
-#  endif
 #endif
 
 #endif /* LAPI_CPUID_H__ */
-- 
2.36.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2022-10-24 14:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-24 10:38 [LTP] [PATCH 1/2] Revert "ptrace07: Fix compilation when not on x86" Richard Palethorpe via ltp
2022-10-24 10:38 ` [LTP] [PATCH 2/2] cpuid/ptrace07: Only compile on x86_64 Richard Palethorpe via ltp
2022-10-24 10:44   ` Jan Stancek
2022-10-24 13:41   ` Martin Doucha
2022-10-24 14:25     ` Richard Palethorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox