Message ID | 20220629002028.1232579-6-ammar.faizi@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | aarch64 nolibc support | expand |
On 6/28/22 6:27 PM, Ammar Faizi wrote: > From: Ammar Faizi <ammarfaizi2@gnuweeb.org> > > In the Linux kernel tree, we use `arm64` instead of `aarch64` to name > the directory that saves this arch specific code. Follow this naming > in liburing too. I don't feel too strongly about this, though I do think the linux kernel is wrong in this regard and liburing is doing it right :-)
On 6/29/22 9:48 PM, Jens Axboe wrote: > On 6/28/22 6:27 PM, Ammar Faizi wrote: >> From: Ammar Faizi <ammarfaizi2@gnuweeb.org> >> >> In the Linux kernel tree, we use `arm64` instead of `aarch64` to name >> the directory that saves this arch specific code. Follow this naming >> in liburing too. > > I don't feel too strongly about this, though I do think the linux > kernel is wrong in this regard and liburing is doing it right :-) OK, will drop this in v2.
diff --git a/src/arch/aarch64/syscall.h b/src/arch/arm64/syscall.h similarity index 95% rename from src/arch/aarch64/syscall.h rename to src/arch/arm64/syscall.h index 5e26714..732ada0 100644 --- a/src/arch/aarch64/syscall.h +++ b/src/arch/arm64/syscall.h @@ -4,8 +4,8 @@ #error "This file should be included from src/syscall.h (liburing)" #endif -#ifndef LIBURING_ARCH_AARCH64_SYSCALL_H -#define LIBURING_ARCH_AARCH64_SYSCALL_H +#ifndef LIBURING_ARCH_ARM64_SYSCALL_H +#define LIBURING_ARCH_ARM64_SYSCALL_H #if defined(__aarch64__) @@ -96,4 +96,4 @@ #endif /* #if defined(__aarch64__) */ -#endif /* #ifndef LIBURING_ARCH_AARCH64_SYSCALL_H */ +#endif /* #ifndef LIBURING_ARCH_ARM64_SYSCALL_H */ diff --git a/src/syscall.h b/src/syscall.h index 214789d..9e72e6f 100644 --- a/src/syscall.h +++ b/src/syscall.h @@ -74,7 +74,7 @@ static inline bool IS_ERR(const void *ptr) #if defined(__x86_64__) || defined(__i386__) #include "arch/x86/syscall.h" #elif defined(__aarch64__) -#include "arch/aarch64/syscall.h" +#include "arch/arm64/syscall.h" #else /* * We don't have native syscall wrappers