runtime: Gofmt fixes

- Mostly blank lines after `+build` -- see
  https://pkg.go.dev/go/build@go1.14.15 -- this is, to date, enforced by
  `gofmt`.
- 1.17-style go:build directives are also added.
- Spaces in govmm/vmm_s390x.go

Fixes: #3769
Signed-off-by: Jakob Naucke <jakob.naucke@ibm.com>
This commit is contained in:
Jakob Naucke 2022-02-25 10:25:33 +01:00
parent 9e3353a7e4
commit eda8ea154a
No known key found for this signature in database
GPG Key ID: 45FA1C7D310C0EBE
37 changed files with 51 additions and 38 deletions

View File

@ -1,3 +1,4 @@
//go:build !s390x
// +build !s390x // +build !s390x
// Copyright contributors to the Virtual Machine Manager for Go project // Copyright contributors to the Virtual Machine Manager for Go project

View File

@ -9,7 +9,7 @@ package govmm
// MaxVCPUs returns the maximum number of vCPUs supported // MaxVCPUs returns the maximum number of vCPUs supported
func MaxVCPUs() uint32 { func MaxVCPUs() uint32 {
// Max number of virtual Cpu defined in qemu. See // Max number of virtual Cpu defined in qemu. See
// https://github.com/qemu/qemu/blob/80422b00196a7af4c6efb628fae0ad8b644e98af/target/s390x/cpu.h#L55 // https://github.com/qemu/qemu/blob/80422b00196a7af4c6efb628fae0ad8b644e98af/target/s390x/cpu.h#L55
// #define S390_MAX_CPUS 248 // #define S390_MAX_CPUS 248
return uint32(248) return uint32(248)
} }

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2021-2022 Apple Inc. // Copyright (c) 2021-2022 Apple Inc.
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2019 Intel Corporation // Copyright (c) 2019 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2019 Intel Corporation // Copyright (c) 2019 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2019 Intel Corporation // Copyright (c) 2019 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,7 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2019 Ericsson Eurolab Deutschland GmbH // Copyright (c) 2019 Ericsson Eurolab Deutschland GmbH
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2019 Ericsson Eurolab Deutschland G.m.b.H. // Copyright (c) 2019 Ericsson Eurolab Deutschland G.m.b.H.
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,7 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2020 Ant Group // Copyright (c) 2020 Ant Group
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2019 Intel Corporation // Copyright (c) 2019 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,7 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2016 Intel Corporation // Copyright (c) 2016 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 IBM // Copyright (c) 2018 IBM
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 IBM // Copyright (c) 2018 IBM
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 IBM // Copyright (c) 2018 IBM
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 IBM // Copyright (c) 2018 IBM
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 IBM // Copyright (c) 2018 IBM
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,6 +1,6 @@
//go:build linux //go:build linux
// +build linux // +build linux
//
// Copyright (c) 2016 Intel Corporation // Copyright (c) 2016 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Huawei Corporation // Copyright (c) 2018 Huawei Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Huawei Corporation // Copyright (c) 2018 Huawei Corporation
// Copyright (c) 2019 Intel Corporation // Copyright (c) 2019 Intel Corporation
// //

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0

View File

@ -1,5 +1,6 @@
//go:build linux
// +build linux // +build linux
//
// Copyright (c) 2018 Intel Corporation // Copyright (c) 2018 Intel Corporation
// //
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0