]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: pci: mgb4: include linux/errno.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 Mar 2025 10:24:27 +0000 (11:24 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 7 Mar 2025 11:05:42 +0000 (12:05 +0100)
The errno.h header is not always included indirectly, leading
to rare randconfig build warnings.

drivers/media/pci/mgb4/mgb4_regs.c:20:11: error: use of undeclared identifier 'EINVAL'
   20 |                 return -EINVAL;

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/pci/mgb4/mgb4_regs.c

index 31befd722d72ddd95958b84baf0820075c3f39a1..b45537dbfafabddcab3dd8a9eec0d2425fa4ee9e 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <linux/ioport.h>
+#include <linux/errno.h>
 #include "mgb4_regs.h"
 
 int mgb4_regs_map(struct resource *res, struct mgb4_regs *regs)