mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-26 19:48:56 +00:00
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:
parent
9e3353a7e4
commit
eda8ea154a
src/runtime
pkg
virtcontainers
acrn.goacrn_arch_base.goacrn_test.goclh.goclh_test.gofc.gofc_metrics.gofc_test.goipvlan_endpoint.goipvlan_endpoint_test.gomacvlan_endpoint.gomacvlan_endpoint_test.gomacvtap_endpoint.gomacvtap_endpoint_test.gophysical_endpoint.gophysical_endpoint_test.goqemu.goqemu_amd64.goqemu_amd64_test.goqemu_arch_base.goqemu_arch_base_test.goqemu_arm64.goqemu_arm64_test.goqemu_ppc64le.goqemu_ppc64le_test.goqemu_s390x.goqemu_s390x_test.goqemu_test.gotap_endpoint.gotuntap_endpoint.goveth_endpoint.goveth_endpoint_test.govhostuser_endpoint.govhostuser_endpoint_test.go
@ -1,3 +1,4 @@
|
||||
//go:build !s390x
|
||||
// +build !s390x
|
||||
|
||||
// Copyright contributors to the Virtual Machine Manager for Go project
|
||||
|
@ -9,7 +9,7 @@ package govmm
|
||||
// MaxVCPUs returns the maximum number of vCPUs supported
|
||||
func MaxVCPUs() uint32 {
|
||||
// Max number of virtual Cpu defined in qemu. See
|
||||
// https://github.com/qemu/qemu/blob/80422b00196a7af4c6efb628fae0ad8b644e98af/target/s390x/cpu.h#L55
|
||||
// #define S390_MAX_CPUS 248
|
||||
return uint32(248)
|
||||
// https://github.com/qemu/qemu/blob/80422b00196a7af4c6efb628fae0ad8b644e98af/target/s390x/cpu.h#L55
|
||||
// #define S390_MAX_CPUS 248
|
||||
return uint32(248)
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2021-2022 Apple Inc.
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2019 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2019 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2019 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,7 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
//
|
||||
// Copyright (c) 2019 Ericsson Eurolab Deutschland GmbH
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2019 Ericsson Eurolab Deutschland G.m.b.H.
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,7 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
//
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2020 Ant Group
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2019 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,7 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
|
||||
//
|
||||
// Copyright (c) 2016 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 IBM
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 IBM
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 IBM
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 IBM
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 IBM
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2016 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Huawei Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Huawei Corporation
|
||||
// Copyright (c) 2019 Intel Corporation
|
||||
//
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
@ -1,5 +1,6 @@
|
||||
//go:build linux
|
||||
// +build linux
|
||||
//
|
||||
|
||||
// Copyright (c) 2018 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user