diff mbox series

i8042: add missing include

Message ID 49fd4d400d1ab62095e5ed75a6637f883c0d071b.1682795105.git.mirq-linux@rere.qmqm.pl (mailing list archive)
State Accepted
Commit 7b9c13dd4d0ebbe89dfd7e1ecd09696037622101
Headers show
Series i8042: add missing include | expand

Commit Message

Michał Mirosław April 29, 2023, 7:06 p.m. UTC
<linux/i8042.h> include uses ENODEV when included with
!IS_ENABLED(CONFIG_SERIO_I8042) and so need to include it.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
 include/linux/i8042.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Dmitry Torokhov May 2, 2023, 12:39 a.m. UTC | #1
On Sat, Apr 29, 2023 at 09:06:49PM +0200, Michał Mirosław wrote:
> <linux/i8042.h> include uses ENODEV when included with
> !IS_ENABLED(CONFIG_SERIO_I8042) and so need to include it.
> 
> Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>

Applied, thank you.
diff mbox series

Patch

diff --git a/include/linux/i8042.h b/include/linux/i8042.h
index 0261e2fb3636..95b07f8b77fe 100644
--- a/include/linux/i8042.h
+++ b/include/linux/i8042.h
@@ -3,6 +3,7 @@ 
 #define _LINUX_I8042_H
 
 
+#include <linux/errno.h>
 #include <linux/types.h>
 
 /*