From 4cfb3203f692b6f5b490fff512b1557136b883c2 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 22 Oct 2021 12:01:31 +0300 Subject: [PATCH] source: fix gofmt errors The tool got pickier with golang v1.17. --- source/cpu/cstate_stub.go | 1 + source/cpu/power_stub.go | 1 + source/cpu/pstate_stub.go | 1 + source/cpu/rdt_amd64.go | 1 + source/cpu/rdt_stub.go | 1 + 5 files changed, 5 insertions(+) diff --git a/source/cpu/cstate_stub.go b/source/cpu/cstate_stub.go index 9a94f9d35..7c6e4dce5 100644 --- a/source/cpu/cstate_stub.go +++ b/source/cpu/cstate_stub.go @@ -1,3 +1,4 @@ +//go:build !amd64 // +build !amd64 /* diff --git a/source/cpu/power_stub.go b/source/cpu/power_stub.go index 700a5f4ca..eac4417ea 100644 --- a/source/cpu/power_stub.go +++ b/source/cpu/power_stub.go @@ -1,3 +1,4 @@ +//go:build !amd64 // +build !amd64 /* diff --git a/source/cpu/pstate_stub.go b/source/cpu/pstate_stub.go index 713aaa0f2..b53f8c0fb 100644 --- a/source/cpu/pstate_stub.go +++ b/source/cpu/pstate_stub.go @@ -1,3 +1,4 @@ +//go:build !amd64 // +build !amd64 /* diff --git a/source/cpu/rdt_amd64.go b/source/cpu/rdt_amd64.go index 5edeb95d4..07d110288 100644 --- a/source/cpu/rdt_amd64.go +++ b/source/cpu/rdt_amd64.go @@ -1,3 +1,4 @@ +//go:build amd64 // +build amd64 /* diff --git a/source/cpu/rdt_stub.go b/source/cpu/rdt_stub.go index 3dc2aec29..addad4c00 100644 --- a/source/cpu/rdt_stub.go +++ b/source/cpu/rdt_stub.go @@ -1,3 +1,4 @@ +//go:build !amd64 // +build !amd64 /*