[libc] [llvm] Implement pkey_alloc/free/get/set/mprotect for x86_64 linux (PR #162362)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 13:10:04 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- libc/src/sys/mman/linux/generic/pkey_common.h libc/src/sys/mman/linux/pkey_alloc.cpp libc/src/sys/mman/linux/pkey_free.cpp libc/src/sys/mman/linux/pkey_get.cpp libc/src/sys/mman/linux/pkey_mprotect.cpp libc/src/sys/mman/linux/pkey_set.cpp libc/src/sys/mman/linux/x86_64/pkey_common.h libc/src/sys/mman/pkey_alloc.h libc/src/sys/mman/pkey_free.h libc/src/sys/mman/pkey_get.h libc/src/sys/mman/pkey_mprotect.h libc/src/sys/mman/pkey_set.h libc/test/src/sys/mman/linux/pkey_test.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/sys/mman/pkey_mprotect.h b/libc/src/sys/mman/pkey_mprotect.h
index 4d19348ef..c02c61594 100644
--- a/libc/src/sys/mman/pkey_mprotect.h
+++ b/libc/src/sys/mman/pkey_mprotect.h
@@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_SRC_SYS_MMAN_PKEY_MPROTECT_H
#define LLVM_LIBC_SRC_SYS_MMAN_PKEY_MPROTECT_H
-#include "src/__support/macros/config.h"
#include "hdr/types/size_t.h"
+#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
``````````
</details>
https://github.com/llvm/llvm-project/pull/162362
More information about the llvm-commits
mailing list