From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D89AFEB64D7 for ; Tue, 13 Jun 2023 20:09:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231991AbjFMUJm (ORCPT ); Tue, 13 Jun 2023 16:09:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbjFMUJl (ORCPT ); Tue, 13 Jun 2023 16:09:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AAAE1732; Tue, 13 Jun 2023 13:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bcoLkRc5GqoKYGFqDiytS/vPJEc249EbSEUtuRtnckU=; b=aORgD+1AX4Q7om7BTIByRZwq76 8k220N5mx3Isdtc6Zj5r8sOAcrKox9us5lT67AlWqbewr7NyIbL81nba/JonFbpTVwo7lD+9SMZwF 2OM5agA6Xe41e/SfoqzrfsKL8C0+Hp/6hil0/oTCD9fdsktKs7ZI/+o9MJEJ0WD8S7vnYCAldmIg6 5ZayTu+x/DGEOBinuvLMj+57NWmkVmevrww3nOm3SUgSdrkOomy52+gyql2jZixF326tYZSsPiCRJ 3KdYKXokN0eH4jJr+3xWvhsjpTbhYva5G2i5Zj+gbn3BO+SA1cmRD2cpe5lMQojV3PzpHusOkWHTe LcOmoW+Q==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1q9AKO-004HfY-5C; Tue, 13 Jun 2023 20:09:20 +0000 Date: Tue, 13 Jun 2023 21:09:20 +0100 From: Matthew Wilcox To: wenyang.linux@foxmail.com Cc: Alexander Viro , Jens Axboe , Christian Brauner , Christoph Hellwig , Dylan Yudaken , David Woodhouse , Eric Biggers , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] eventfd: add a uapi header for eventfd userspace APIs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Jun 14, 2023 at 12:59:11AM +0800, wenyang.linux@foxmail.com 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 Why do you need types.h? > +/* For O_CLOEXEC and O_NONBLOCK */ > +#include > + > +#define EFD_SEMAPHORE (1 << 0) > +#define EFD_CLOEXEC O_CLOEXEC > +#define EFD_NONBLOCK O_NONBLOCK > + > +#endif /* _UAPI_LINUX_EVENTFD_H */ > -- > 2.25.1 >