summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPetr Pavlu <petr.pavlu@suse.com>2026-09-11 17:04:06 +0200
committerPetr Pavlu <petr.pavlu@suse.com>2026-10-01 16:53:55 +0200
commitff7360c5c731356a59171eef732a26a72381a8ba (patch)
tree2e6928d2a3f963d09d9b27c0b1a1184bef64ac36 /tools/perf/scripts/python/bin
parent291a8fe5d999c3937b9403c70badf847ec336b3a (diff)
module: Remove the error-injection.h include from linux/module.h
linux/module.h appears in roughly 15k #include directives across the kernel. This makes it a "hot" header, so it should avoid pulling in unnecessary definitions. The header currently includes linux/error-injection.h to obtain the definition of `struct error_injection_entry`. However, this is unnecessary because the type is only referenced in the file as a pointer, for which an incomplete type is sufficient. Remove the linux/error-injection.h include from linux/module.h and add it to kernel/module/main.c instead, where `sizeof(struct error_injection_entry)` is actually needed. Reviewed-by: Aaron Tomlin <atomlin@atomlin.com> Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions