History

include/linux/eventfd.h: include linux/errno.h

The new gasket staging driver ran into a randconfig build failure when CONFIG_EVENTFD is disabled: In file included from drivers/staging/gasket/gasket_interrupt.h:11, from drivers/staging/gasket/gasket_interrupt.c:4: include/linux/eventfd.h: In function 'eventfd_ctx_fdget': include/linux/eventfd.h:51:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] I can't see anything wrong with including eventfd.h before err.h, so the easiest fix is to make it possible to do this by including the file where it is needed.

Arnd Bergmann committed 8 years ago

Commit fa3fc2a1 parent bfd40ea1 file · +1 −0Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/eventfd.h+1−0
@@ -11,6 +11,7 @@ · 10 unmodified lines
11 11
12#include <linux/fcntl.h>12#include <linux/fcntl.h>
13#include <linux/wait.h>13#include <linux/wait.h>
14#include <linux/err.h>
14 15
15/*16/*
16 * CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining17 * CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining