Skip to contentSkip to conversation

pinctrl: imx1: Include the <linux/seq_file.h> header

PATCH In review Fabio Estevam 2 participants 2 messages Oct 19, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: imx1: Include the <linux/seq_file.h> header

After some recent header cleanup in the pinctrl subsystem, the following build error is seen:

drivers/pinctrl/freescale/pinctrl-imx1-core.c: In function 'imx1_pin_dbg_show':
drivers/pinctrl/freescale/pinctrl-imx1-core.c:209:2: error: implicit declaration of function 'seq_printf'; did you mean 'scnprintf'? [-Werror=implicit-function-declaration]

Explicitly add the <linux/seq_file.h> header to fix it.

---
 drivers/pinctrl/freescale/pinctrl-imx1-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pinctrl/freescale/pinctrl-imx1-core.c +1 -0
index 70186448d2f4..1fac1a761d25 100644
@@ -20,6 +20,7 @@
 #include <linux/pinctrl/pinconf.h>
 #include <linux/pinctrl/pinctrl.h>
 #include <linux/pinctrl/pinmux.h>
+#include <linux/seq_file.h>
 #include <linux/slab.h>
 
 #include "../core.h"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 9 lines · Fabio Estevam

After some recent header cleanup in the pinctrl subsystem, the following build error is seen:

drivers/pinctrl/freescale/pinctrl-imx1-core.c: In function 'imx1_pin_dbg_show':
drivers/pinctrl/freescale/pinctrl-imx1-core.c:209:2: error: implicit declaration of function 'seq_printf'; did you mean 'scnprintf'? [-Werror=implicit-function-declaration]

Explicitly add the <linux/seq_file.h> header to fix it.

Thank you, I will incorporate it into the respective series.

Signature · 2 lines
With Best Regards,
Andy Shevchenko