From 2513787d6dfcd74f6af15a9da367365be1208a55 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 2 Aug 2022 10:19:30 -0700 Subject: [PATCH] Fix broken go:nosplit directive There must be no space in "//go:nosplit". This probably never caused problems because the function is so simple it is almost certainly inlined. PiperOrigin-RevId: 464823961 --- pkg/ring0/x86.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ring0/x86.go b/pkg/ring0/x86.go index 3f3e81a16..1c55aebcb 100644 --- a/pkg/ring0/x86.go +++ b/pkg/ring0/x86.go @@ -102,7 +102,7 @@ const ( // IsKernelFlags returns true if rflags coresponds to the kernel mode. // -// go:nosplit +//go:nosplit func IsKernelFlags(rflags uint64) bool { return rflags&_RFLAGS_IOPL0 == 0 }