From: Nihal Jere <nihal@nihaljere.xyz>
To: musl@lists.openwall.com
Cc: Nihal Jere <nihal@nihaljere.xyz>
Subject: [musl] [PATCH] change __volatile to __volatile__ for consistency
Date: Wed, 17 Apr 2024 22:10:17 -0500 [thread overview]
Message-ID: <20240418031046.4383-2-nihal@nihaljere.xyz> (raw)
---
These look like the only two occurences of "__volatile" in musl,
elsewhere "__volatile__" is used.
arch/x32/atomic_arch.h | 2 +-
arch/x86_64/atomic_arch.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x32/atomic_arch.h b/arch/x32/atomic_arch.h
index 918c2d4e..eef253db 100644
--- a/arch/x32/atomic_arch.h
+++ b/arch/x32/atomic_arch.h
@@ -44,7 +44,7 @@ static inline void a_or(volatile int *p, int v)
#define a_and_64 a_and_64
static inline void a_and_64(volatile uint64_t *p, uint64_t v)
{
- __asm__ __volatile(
+ __asm__ __volatile__(
"lock ; and %1, %0"
: "=m"(*p) : "r"(v) : "memory" );
}
diff --git a/arch/x86_64/atomic_arch.h b/arch/x86_64/atomic_arch.h
index da4e2037..8753b700 100644
--- a/arch/x86_64/atomic_arch.h
+++ b/arch/x86_64/atomic_arch.h
@@ -53,7 +53,7 @@ static inline void a_or(volatile int *p, int v)
#define a_and_64 a_and_64
static inline void a_and_64(volatile uint64_t *p, uint64_t v)
{
- __asm__ __volatile(
+ __asm__ __volatile__(
"lock ; and %1, %0"
: "=m"(*p) : "r"(v) : "memory" );
}
--
2.43.0
next reply other threads:[~2024-04-18 12:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-18 3:10 Nihal Jere [this message]
2024-04-19 13:45 ` Rich Felker
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=20240418031046.4383-2-nihal@nihaljere.xyz \
--to=nihal@nihaljere.xyz \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).