Skip to content

Commit f215161

Browse files
arndbhverkuil
authored andcommitted
media: pci: mgb4: include linux/errno.h
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>
1 parent ca8dc59 commit f215161

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/media/pci/mgb4/mgb4_regs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <linux/ioport.h>
8+
#include <linux/errno.h>
89
#include "mgb4_regs.h"
910

1011
int mgb4_regs_map(struct resource *res, struct mgb4_regs *regs)

0 commit comments

Comments
 (0)