Commit fa3fc2ad authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Linus Torvalds

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.

Fixes: 9a69f508 ("drivers/staging: Gasket driver framework + Apex driver")
Signed-off-by: default avatarArnd Bergmann <>
Cc: Eric Biggers <>
Cc: Al Viro <>
Cc: Greg Kroah-Hartman <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent bfd40eaf
......@@ -11,6 +11,7 @@
#include <linux/fcntl.h>
#include <linux/wait.h>
#include <linux/err.h>
* CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment