]> Cypherpunks repositories - gostls13.git/commit
runtime: fix vet complaints for linux/amd64
authorRuss Cox <rsc@golang.org>
Wed, 8 May 2019 17:16:05 +0000 (13:16 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 9 May 2019 21:13:19 +0000 (21:13 +0000)
commitfe67ce2efb243b9289e81a61a5ccae79b75048f2
tree88d9ceb8abb44da267f99e7e78b5532473002557
parent6ed2ec4aa5ea6c34b1e3d42b7995c81ab74a27c4
runtime: fix vet complaints for linux/amd64

Working toward making the tree vet-safe instead of having
so many exceptions in cmd/vet/all/whitelist.

This CL makes "GOOS=linux GOARCH=amd64 go vet -unsafeptr=false runtime" happy,
while keeping "GO_BUILDER_NAME=misc-vetall go tool dist test" happy too.

For #31916.

Change-Id: I4ca1acb02f4666b102d25fcc55fac96b8f80379a
Reviewed-on: https://go-review.googlesource.com/c/go/+/176100
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
20 files changed:
src/cmd/vet/all/whitelist/amd64.txt [deleted file]
src/cmd/vet/all/whitelist/android_amd64.txt [deleted file]
src/cmd/vet/all/whitelist/darwin_amd64.txt [deleted file]
src/cmd/vet/all/whitelist/dragonfly_amd64.txt
src/cmd/vet/all/whitelist/freebsd_amd64.txt
src/cmd/vet/all/whitelist/illumos_amd64.txt
src/cmd/vet/all/whitelist/linux_amd64.txt [deleted file]
src/cmd/vet/all/whitelist/nacl_amd64p32.txt
src/cmd/vet/all/whitelist/netbsd_386.txt
src/cmd/vet/all/whitelist/netbsd_amd64.txt [deleted file]
src/cmd/vet/all/whitelist/openbsd_386.txt
src/cmd/vet/all/whitelist/openbsd_amd64.txt [deleted file]
src/cmd/vet/all/whitelist/plan9_amd64.txt [deleted file]
src/cmd/vet/all/whitelist/solaris_amd64.txt
src/cmd/vet/all/whitelist/windows_amd64.txt
src/runtime/asm_amd64.s
src/runtime/stubs_386.go
src/runtime/stubs_amd64x.go [moved from src/runtime/stubs_x86.go with 70% similarity]
src/runtime/sys_netbsd_386.s
src/runtime/sys_openbsd_386.s