diff mbox series

[2/2] gpio: sim: include a missing header

Message ID 20230915123423.75948-2-brgl@bgdev.pl
State New
Headers show
Series [1/2] gpio: sim: fix an invalid __free() usage | expand

Commit Message

Bartosz Golaszewski Sept. 15, 2023, 12:34 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

We're using various ERR macros from linux/err.h but the include is
missing. Add it.

Fixes: cb8c474e79be ("gpio: sim: new testing module")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/gpio/gpio-sim.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-sim.c b/drivers/gpio/gpio-sim.c
index b4e6d06d08a2..d9d7df7bd387 100644
--- a/drivers/gpio/gpio-sim.c
+++ b/drivers/gpio/gpio-sim.c
@@ -12,6 +12,7 @@ 
 #include <linux/completion.h>
 #include <linux/configfs.h>
 #include <linux/device.h>
+#include <linux/err.h>
 #include <linux/gpio/consumer.h>
 #include <linux/gpio/driver.h>
 #include <linux/gpio/machine.h>