From 95871dcc45f6531b4c692ff892aad56bdd95e16f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 10 Feb 2023 12:14:36 +0100 Subject: pkg/subsystem: restructure the package Remove the entity and match subpackages. Regenerate the linux.go file. --- pkg/subsystem/list.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'pkg/subsystem/list.go') diff --git a/pkg/subsystem/list.go b/pkg/subsystem/list.go index 737ab859e..7842f8620 100644 --- a/pkg/subsystem/list.go +++ b/pkg/subsystem/list.go @@ -3,10 +3,6 @@ package subsystem -import ( - "github.com/google/syzkaller/pkg/subsystem/entity" -) - // In general, it's not correct to assume that subsystems are only determined by target.OS, // because subsystems are related not to the user interface of the OS kernel, but rather to // the OS kernel implementation. @@ -17,16 +13,16 @@ import ( // Therefore, subsystem lists have to be a completely different entity. var ( - lists = make(map[string][]*entity.Subsystem) + lists = make(map[string][]*Subsystem) ) -func RegisterList(name string, list []*entity.Subsystem) { +func RegisterList(name string, list []*Subsystem) { if _, ok := lists[name]; ok { panic(name + " subsystem list already exists!") } lists[name] = list } -func GetList(name string) []*entity.Subsystem { +func GetList(name string) []*Subsystem { return lists[name] } -- cgit mrf-deployment