Hi Yudong
在 2024/6/11 15:53, cuiyudong123@xxxxxxx 写道:
From: cuiyudong123 <cuiyudong@xxxxxxxxxx>
Translate the following documents into Chinese:
- userspace-api/mseal.rst
Signed-off-by: cuiyudong123 <cuiyudong@xxxxxxxxxx>
---
V1 -> V2: Resolved compilation warnings and optimized the translation of documentation
---
.../zh_CN/userspace-api/index.rst | 1 +
.../zh_CN/userspace-api/mseal.rst | 186 ++++++++++++++++++
2 files changed, 187 insertions(+)
create mode 100644 Documentation/translations/zh_CN/userspace-api/mseal.rst
When I apply your patch, git output Warning:
Applying: docs/zh_CN: Add userspace-api/mseal Chinese translation
.git/rebase-apply/patch:160: trailing whitespace.
aio/shm 可以代表用户空间调用 mmap()/munmap() , 例如 ksys_shmdt()
在shm.c中。
.git/rebase-apply/patch:174: trailing whitespace.
技术上,在 mseal() 被添加之前,用户可以通过调用 mprotect(RO)
.git/rebase-apply/patch:189: trailing whitespace.
正如 Jann Horn 在 [3] 中指出的那样,
.git/rebase-apply/patch:212: new blank line at EOF.
+
warning: 4 lines add whitespace errors.
And you can run :
./scripts/checkpatch.pl
0001-docs-zh_CN-Add-userspace-api-mseal-Chinese-translati.patch
Then fix them.
Thanks,
Yanteng