media: pci: mgb4: include linux/errno.h
Subsystems (2)
PATCH 1/1 media: pci: mgb4: include linux/errno.h
From: Arnd Bergmann <[email protected]>
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 <[email protected]>
--- drivers/media/pci/mgb4/mgb4_regs.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/pci/mgb4/mgb4_regs.c +1 -0
@@ -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)
Signature · 1 line
2.39.5
Quoted 18 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The
errno.hheader 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 <[email protected]>--- drivers/media/pci/mgb4/mgb4_regs.c | 1 + 1 file changed, 1 insertion(+)drivers/media/pci/mgb4/mgb4_regs.c +0
-0
drivers/media/pci/mgb4/mgb4_regs.c line 11
Quoted 7 lines
drivers/media/pci/mgb4/mgb4_regs.c +1
-0@@ -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)
Acked-by Martin Tůma <[email protected]>