gvisor: set type for all TraceBlockReason constants

Currently, the gvisor nogo checks are failing with this error:

gvisor/pkg/sync/runtime_exectracer2.go:21:2: only the
first constant in this group has an explicit type

I don’t know why the constants in runtime_exectracer1.go do not
seem to trigger this error, but either way, the fix is simple enough.

PiperOrigin-RevId: 588412325
This commit is contained in:
gVisor bot
2023-12-06 07:01:50 -08:00
parent 063000448f
commit fd84b23367
+1 -1
View File
@@ -19,5 +19,5 @@ package sync
// TraceBlockReason constants, from Go's src/runtime/trace2runtime.go.
const (
TraceBlockSelect TraceBlockReason = 3 // +checkconst runtime traceBlockSelect
TraceBlockSync = 5 // +checkconst runtime traceBlockSync
TraceBlockSync TraceBlockReason = 5 // +checkconst runtime traceBlockSync
)