]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: fix signature for linked functions
authorAdin Scannell <ascannell@google.com>
Wed, 8 Feb 2023 19:15:23 +0000 (19:15 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 9 Feb 2023 01:06:51 +0000 (01:06 +0000)
These functions are linked using go:linkname, but do not match the
original declarations. This change brings these in sync.

Change-Id: I16651304c3dba2f9897c2c42e30555d2f7805c2a
Reviewed-on: https://go-review.googlesource.com/c/go/+/466615
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>

src/internal/poll/fd_poll_runtime.go
src/sync/atomic/value.go

index 4d3cc7840596117be3ec92f6fca8604255fd8498..0a2e76d73f224197330ed50b5eabd08476243555 100644 (file)
@@ -23,7 +23,7 @@ func runtime_pollServerInit()
 func runtime_pollOpen(fd uintptr) (uintptr, int)
 func runtime_pollClose(ctx uintptr)
 func runtime_pollWait(ctx uintptr, mode int) int
-func runtime_pollWaitCanceled(ctx uintptr, mode int) int
+func runtime_pollWaitCanceled(ctx uintptr, mode int)
 func runtime_pollReset(ctx uintptr, mode int) int
 func runtime_pollSetDeadline(ctx uintptr, d int64, mode int)
 func runtime_pollUnblock(ctx uintptr)
index 8c491b4616267f6b8785a663bfc1f205ced2691a..a57b08a6b877e6de59a87aa8652f9d100b6695d0 100644 (file)
@@ -190,5 +190,5 @@ func (v *Value) CompareAndSwap(old, new any) (swapped bool) {
 }
 
 // Disable/enable preemption, implemented in runtime.
-func runtime_procPin()
+func runtime_procPin() int
 func runtime_procUnpin()