From f0c7190c5ee2c4ec638b0e505866bb6456fc83c4 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 20 Dec 2023 14:46:10 +0000 Subject: [PATCH] unix: remove extra trailing newlines in zsyscall_openbsd_*.go These newlines are written by mksyscall.go but should not appear in the final generated files once the output is passed through gofmt. This is done by mkall.sh but I had written a custom script just to generate these openbsd zsyscall files in CL 468095. Running the mksyscall.go output through gofmt fixes this issue. Fixes golang/go#64820 Change-Id: I1b1bf55145bd5a5208e091ded24a973f953c479f GitHub-Last-Rev: 514272bd56a9bfbcf1ff1e787aece426e235da37 GitHub-Pull-Request: golang/sys#183 Reviewed-on: https://go-review.googlesource.com/c/sys/+/551715 Reviewed-by: Tobias Klauser Reviewed-by: Carlos Amedee Run-TryBot: Jorropo TryBot-Result: Gopher Robot Reviewed-by: Than McIntosh LUCI-TryBot-Result: Go LUCI --- unix/zsyscall_openbsd_386.go | 2 -- unix/zsyscall_openbsd_amd64.go | 2 -- unix/zsyscall_openbsd_arm.go | 2 -- unix/zsyscall_openbsd_arm64.go | 2 -- unix/zsyscall_openbsd_mips64.go | 2 -- unix/zsyscall_openbsd_ppc64.go | 2 -- unix/zsyscall_openbsd_riscv64.go | 2 -- 7 files changed, 14 deletions(-) diff --git a/unix/zsyscall_openbsd_386.go b/unix/zsyscall_openbsd_386.go index a1d06159..9dc42410 100644 --- a/unix/zsyscall_openbsd_386.go +++ b/unix/zsyscall_openbsd_386.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_amd64.go b/unix/zsyscall_openbsd_amd64.go index 5b2a7409..0d3a0751 100644 --- a/unix/zsyscall_openbsd_amd64.go +++ b/unix/zsyscall_openbsd_amd64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_arm.go b/unix/zsyscall_openbsd_arm.go index f6eda134..c39f7776 100644 --- a/unix/zsyscall_openbsd_arm.go +++ b/unix/zsyscall_openbsd_arm.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_arm64.go b/unix/zsyscall_openbsd_arm64.go index 55df20ae..57571d07 100644 --- a/unix/zsyscall_openbsd_arm64.go +++ b/unix/zsyscall_openbsd_arm64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_mips64.go b/unix/zsyscall_openbsd_mips64.go index 8c1155cb..e62963e6 100644 --- a/unix/zsyscall_openbsd_mips64.go +++ b/unix/zsyscall_openbsd_mips64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_ppc64.go b/unix/zsyscall_openbsd_ppc64.go index 7cc80c58..00831354 100644 --- a/unix/zsyscall_openbsd_ppc64.go +++ b/unix/zsyscall_openbsd_ppc64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_riscv64.go b/unix/zsyscall_openbsd_riscv64.go index 0688737f..79029ed5 100644 --- a/unix/zsyscall_openbsd_riscv64.go +++ b/unix/zsyscall_openbsd_riscv64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - -