From 0f503c18d939e6dde67eb2b2d44202db44fe9de6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 3 May 2018 15:53:13 +0200 Subject: gometalinter: enable misspell Update #538 --- sys/linux/386.go | 8 ++++---- sys/linux/amd64.go | 8 ++++---- sys/linux/init_alg_test.go | 2 +- sys/linux/kvm.txt | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'sys') diff --git a/sys/linux/386.go b/sys/linux/386.go index 3a9506b8a..cf22addd3 100644 --- a/sys/linux/386.go +++ b/sys/linux/386.go @@ -6203,7 +6203,7 @@ var structDescs_386 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "entries", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "kvm_cpuid_entry2", Dir: 1}}}, }}}, {Key: StructKey{Name: "kvm_cpuid_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_entry", TypeSize: 24}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_funciton", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_function", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "eax", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ebx", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ecx", TypeSize: 4}}}, @@ -6211,7 +6211,7 @@ var structDescs_386 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad", TypeSize: 4}}}, }}}, {Key: StructKey{Name: "kvm_cpuid_entry2"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_entry2", TypeSize: 40}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_funciton", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_function", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "eax", TypeSize: 4}}}, @@ -6221,7 +6221,7 @@ var structDescs_386 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3}, }}}, {Key: StructKey{Name: "kvm_cpuid_entry2", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_entry2", TypeSize: 40, ArgDir: 1}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_funciton", FldName: "func", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_function", FldName: "func", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4, ArgDir: 1}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_flags", FldName: "flags", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{1, 2, 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "eax", TypeSize: 4, ArgDir: 1}}}, @@ -29655,4 +29655,4 @@ var consts_386 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_386 = "e1e3ea1d7c3a36e08c8fcaee513af7676ce73ef9" +const revision_386 = "9c1e3d88594580bd4b3123526425c29d9753a03a" diff --git a/sys/linux/amd64.go b/sys/linux/amd64.go index a95a3b1f9..95a8e45be 100644 --- a/sys/linux/amd64.go +++ b/sys/linux/amd64.go @@ -6313,7 +6313,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "entries", ArgDir: 1, IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "kvm_cpuid_entry2", Dir: 1}}}, }}}, {Key: StructKey{Name: "kvm_cpuid_entry"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_entry", TypeSize: 24}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_funciton", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_function", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "eax", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ebx", TypeSize: 4}}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "ecx", TypeSize: 4}}}, @@ -6321,7 +6321,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "pad", TypeSize: 4}}}, }}}, {Key: StructKey{Name: "kvm_cpuid_entry2"}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_entry2", TypeSize: 40}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_funciton", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_function", FldName: "func", TypeSize: 4}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_flags", FldName: "flags", TypeSize: 4}}, Vals: []uint64{1, 2, 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "eax", TypeSize: 4}}}, @@ -6331,7 +6331,7 @@ var structDescs_amd64 = []*KeyedStruct{ &ArrayType{TypeCommon: TypeCommon{TypeName: "array", FldName: "pad", TypeSize: 12}, Type: &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", TypeSize: 4}}}, Kind: 1, RangeBegin: 3, RangeEnd: 3}, }}}, {Key: StructKey{Name: "kvm_cpuid_entry2", Dir: 1}, Desc: &StructDesc{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_entry2", TypeSize: 40, ArgDir: 1}, Fields: []Type{ - &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_funciton", FldName: "func", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, + &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpu_function", FldName: "func", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{0, 1, 2, 4, 6, 7, 10, 11, 13, 1073741824, 1073741825, 2147483648, 2147483649, 2147483655, 2147483656, 2147483673, 3221225472, 3221225473}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "index", TypeSize: 4, ArgDir: 1}}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "kvm_cpuid_flags", FldName: "flags", TypeSize: 4, ArgDir: 1}}, Vals: []uint64{1, 2, 4}}, &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "int32", FldName: "eax", TypeSize: 4, ArgDir: 1}}}, @@ -30326,4 +30326,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "a2463ce91be2e035728a8241aa9c54bde7fe127a" +const revision_amd64 = "f8acbe0e15423ec80dfcf52662c0f6109ef208bf" diff --git a/sys/linux/init_alg_test.go b/sys/linux/init_alg_test.go index d1c049d12..30dfaf7bd 100644 --- a/sys/linux/init_alg_test.go +++ b/sys/linux/init_alg_test.go @@ -126,7 +126,7 @@ func TestTemplateAlg1(t *testing.T) { // TestTemplateAlg2 tests creation of all templates with 2 argument. func TestTemplateAlg2(t *testing.T) { algTest(t) - // Can't affort to test all permutations of 2 algorithms, + // Can't afford to test all permutations of 2 algorithms, // 20 algorithm pairs for each type pair and use them. selections := make(map[int][]int) for typ1, algs1 := range allAlgs { diff --git a/sys/linux/kvm.txt b/sys/linux/kvm.txt index a7a925fe6..f5e75d0a8 100644 --- a/sys/linux/kvm.txt +++ b/sys/linux/kvm.txt @@ -128,7 +128,7 @@ kvm_device_type = KVM_DEV_TYPE_FSL_MPIC_20, KVM_DEV_TYPE_FSL_MPIC_42, KVM_DEV_TY kvm_device_flags = 0, KVM_CREATE_DEVICE_TEST kvm_guest_debug_flags = KVM_GUESTDBG_ENABLE, KVM_GUESTDBG_SINGLESTEP, KVM_GUESTDBG_USE_SW_BP, KVM_GUESTDBG_USE_HW_BP, KVM_GUESTDBG_INJECT_DB, KVM_GUESTDBG_INJECT_BP kvm_chip_id = KVM_IRQCHIP_PIC_MASTER, KVM_IRQCHIP_PIC_SLAVE, KVM_IRQCHIP_IOAPIC -kvm_cpu_funciton = 0, 1, 2, 4, 6, 7, 10, 11, 13, KVM_CPUID_SIGNATURE, KVM_CPUID_FEATURES, 0x80000000, 0x80000001, 0x80000007, 0x80000008, 0x80000019, 0xc0000000, 0xc0000001 +kvm_cpu_function = 0, 1, 2, 4, 6, 7, 10, 11, 13, KVM_CPUID_SIGNATURE, KVM_CPUID_FEATURES, 0x80000000, 0x80000001, 0x80000007, 0x80000008, 0x80000019, 0xc0000000, 0xc0000001 kvm_guest_selector = 0, 3, 4, 8, 9, 10, 11, 12, 13, 14, 15, 16 kvm_mce_flags = 1, 2, 4 kvm_mcg_status = MCG_STATUS_RIPV, MCG_STATUS_EIPV, MCG_STATUS_MCIP, MCG_STATUS_LMCES @@ -547,7 +547,7 @@ kvm_signal_mask { } kvm_cpuid_entry { - func flags[kvm_cpu_funciton, int32] + func flags[kvm_cpu_function, int32] eax int32 ebx int32 ecx int32 @@ -562,7 +562,7 @@ kvm_cpuid { } kvm_cpuid_entry2 { - func flags[kvm_cpu_funciton, int32] + func flags[kvm_cpu_function, int32] index int32 flags flags[kvm_cpuid_flags, int32] eax int32 -- cgit mrf-deployment