aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/linux/rules.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-23 16:17:40 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-23 16:56:04 +0100
commita7ade81b6eb453a9568462b2060cb1d6b39cb632 (patch)
tree3fdae65d6bee5de19f98f8c1bf2955e6932cdf86 /pkg/subsystem/linux/rules.go
parenta40d9a295763f9eea8868182887b1781024c04f5 (diff)
pkg/subsystem/linux: support custom subsystem grouping
There are cases when a subsystem doesn't have a mailing list and yet we'd prefer not to merge it with others. Let's add the ability to add custom rules that join several specified MAINTAINERS records into one Subsystem.
Diffstat (limited to 'pkg/subsystem/linux/rules.go')
-rw-r--r--pkg/subsystem/linux/rules.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/subsystem/linux/rules.go b/pkg/subsystem/linux/rules.go
index 3ed8cf0fd..9282a7129 100644
--- a/pkg/subsystem/linux/rules.go
+++ b/pkg/subsystem/linux/rules.go
@@ -9,6 +9,9 @@ type customRules struct {
// These emails do not represent separate subsystems, even though they seem to
// per all criteria we have.
notSubsystemEmails map[string]struct{}
+ // These subsystems need to be extracted even without mailing lists.
+ // Key is the subsystem name, value is the list of raw names in MAINTAINERS.
+ extraSubsystems map[string][]string
}
var (
@@ -64,5 +67,6 @@ var (
"coreteam@netfilter.org": {},
"SHA-cyfmac-dev-list@infineon.com": {},
},
+ extraSubsystems: map[string][]string{},
}
)