summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/rawfile
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-05-30 12:01:41 -0700
committerShentubot <shentubot@google.com>2019-05-30 12:09:39 -0700
commit38de91b028639ef5f4a4c8874b3ee23503fd2f3a (patch)
tree8d58a49107c491688a89c805336690ca493bf008 /pkg/tcpip/link/rawfile
parente3c5fa3345139a38b380e14067640931ce885288 (diff)
Add build guard to files using go:linkname
Funcion signatures are not validated during compilation. Since they are not exported, they can change at any time. The guard ensures that they are verified at least on every version upgrade. PiperOrigin-RevId: 250733742
Diffstat (limited to 'pkg/tcpip/link/rawfile')
-rw-r--r--pkg/tcpip/link/rawfile/blockingpoll_amd64_unsafe.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/tcpip/link/rawfile/blockingpoll_amd64_unsafe.go b/pkg/tcpip/link/rawfile/blockingpoll_amd64_unsafe.go
index 0b51982c6..c87268610 100644
--- a/pkg/tcpip/link/rawfile/blockingpoll_amd64_unsafe.go
+++ b/pkg/tcpip/link/rawfile/blockingpoll_amd64_unsafe.go
@@ -13,9 +13,10 @@
// limitations under the License.
// +build linux,amd64
-// +build !go1.13
+// +build go1.12
+// +build !go1.14
-// This must be validated with Go 1.13 and future releases.
+// Check go:linkname function signatures when updating Go version.
package rawfile