From 204f4fde068172170c5bc22bcffd60753d583c35 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 May 2020 19:38:14 +0200 Subject: sys/syz-extract: fix for full paths pkg/ast now uses full paths since 554f8f39c57d91c1be8724cf4054424c9fb5f151. Fix syz-extract accordingly. --- sys/syz-extract/linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/syz-extract/linux.go') diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go index 29d99d1de..7760bcb0f 100644 --- a/sys/syz-extract/linux.go +++ b/sys/syz-extract/linux.go @@ -134,7 +134,7 @@ func (*linux) prepareArch(arch *Arch) error { } func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) { - if info.File == "dev_kvm.txt" && arch.target.Arch == "arm" { + if strings.HasSuffix(info.File, "_kvm.txt") && arch.target.Arch == "arm" { // Hack: KVM is not supported on ARM anymore. We may want some more official support // for marking descriptions arch-specific, but so far this combination is the only one. // Note: syz-sysgen also ignores this file for arm. -- cgit mrf-deployment