On Wed, Jun 14, 2023 at 12:59:11AM +0800, wenyang.linux@xxxxxxxxxxx wrote: > +++ b/include/uapi/linux/eventfd.h > @@ -0,0 +1,14 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > +#ifndef _UAPI_LINUX_EVENTFD_H > +#define _UAPI_LINUX_EVENTFD_H > + > +#include <linux/types.h> Why do you need types.h? > +/* For O_CLOEXEC and O_NONBLOCK */ > +#include <linux/fcntl.h> > + > +#define EFD_SEMAPHORE (1 << 0) > +#define EFD_CLOEXEC O_CLOEXEC > +#define EFD_NONBLOCK O_NONBLOCK > + > +#endif /* _UAPI_LINUX_EVENTFD_H */ > -- > 2.25.1 >