summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim
diff options
context:
space:
mode:
authorPetr Pavlu <petr.pavlu@suse.com>2026-09-11 17:04:02 +0200
committerPetr Pavlu <petr.pavlu@suse.com>2026-10-01 16:53:55 +0200
commitaf930db5ad471134731b1aec4f6c8f0ac1c44b45 (patch)
treecb3da9730d7ac1d1767ecc1fcb86eb3c2ec8cf3c /drivers/net/netdevsim
parentb67653531fe2c3a2ad8f823a94d9925b3c86f304 (diff)
net: Include error-injection.h for ALLOW_ERROR_INJECTION()
drivers/net/netdevsim/tc.c and net/core/skb_fault_injection.c use ALLOW_ERROR_INJECTION(), which is defined in asm-generic/error-injection.h. They currently rely on this header being included indirectly through linux/module.h -> linux/error-injection.h. Add the missing include in preparation for removing the linux/error-injection.h include from linux/module.h. Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Diffstat (limited to 'drivers/net/netdevsim')
-rw-r--r--drivers/net/netdevsim/tc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/netdevsim/tc.c b/drivers/net/netdevsim/tc.c
index a415e02a6df1..e2d7d3aba193 100644
--- a/drivers/net/netdevsim/tc.c
+++ b/drivers/net/netdevsim/tc.c
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
+#include <linux/error-injection.h>
#include <linux/netdevice.h>
#include <net/pkt_sched.h>
#include <net/pkt_cls.h>