From patchwork Wed Sep 9 21:08:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 7149051 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DEFB5BEEC1 for ; Wed, 9 Sep 2015 21:14:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 141F220986 for ; Wed, 9 Sep 2015 21:14:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 252CF20979 for ; Wed, 9 Sep 2015 21:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755595AbbIIVOG (ORCPT ); Wed, 9 Sep 2015 17:14:06 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:34943 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754210AbbIIVIw (ORCPT ); Wed, 9 Sep 2015 17:08:52 -0400 Received: by pacfv12 with SMTP id fv12so21099999pac.2 for ; Wed, 09 Sep 2015 14:08:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc:cc :cc:cc:subject:date:message-id:in-reply-to:references; bh=EXnH+X6fIt/zTaTAmzzy6/rocqI7ZAj71r8sThcI4yg=; b=bOszFobbTiCY6lKiz0rPGa8olunovbIa3k9aeEPpRyt44XQH2pYkGugyBMIFW4f4ZK MJa25Y4iteTRZ++m6TsvDqkWCouoKNj1KRvc+xW4jtDJbagzVP1GIGwAWpw7mqcopDgM f2SvJkPHISMKr2Mdhrfns5ID6HqEpiVquYjKYBMdV5KhXb3/J0eWsJNSTPIZY+0JKw5n mGrpPaS9ssewedEL9JQ4CQyFGIF3REZbtlprQK0WP47R8OG+P0fmG+lAwOIm4TKtTOOo LAa0ISLQFTXcFzpuRalaMhtvelA8nbDOdDUFjOLz8qSf0o4xHBczOda/goT8rxPK/UBX K9sQ== X-Gm-Message-State: ALoCoQmu/Aslz2Utlkh11EaZw/sfWqbanRiirIv8/AXjmx0u/wd+JDV/Ad/Vyt0Jgd9BD5mkDwvd X-Received: by 10.66.148.71 with SMTP id tq7mr65379281pab.0.1441832931679; Wed, 09 Sep 2015 14:08:51 -0700 (PDT) Received: from localhost (wap-cal.CS.Berkeley.EDU. [128.32.35.228]) by smtp.gmail.com with ESMTPSA id hm7sm8032895pdb.24.2015.09.09.14.08.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 14:08:51 -0700 (PDT) From: Palmer Dabbelt To: arnd@arndb.de Cc: 3chas3@gmail.com Cc: hpa@zytor.com Cc: mingo@redhat.com Cc: plagnioj@jcrosoft.com Cc: jikos@kernel.org Cc: linux-api@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: linux-atm-general@lists.sourceforge.net Cc: linux-fbdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Cc: tglx@linutronix.de Cc: tomi.valkeinen@ti.com Cc: x86@kernel.org Cc: Palmer Dabbelt Subject: [PATCH 06/13] Hide ep_take_care_of_epollwakeup() behind #ifdef __KERNEL__ Date: Wed, 9 Sep 2015 14:08:15 -0700 Message-Id: <1441832902-28993-7-git-send-email-palmer@dabbelt.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1441832902-28993-1-git-send-email-palmer@dabbelt.com> References: <2644177.lVCYzIBfPW@wuerfel> <1441832902-28993-1-git-send-email-palmer@dabbelt.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This doesn't make any sense to expose to userspace. Signed-off-by: Palmer Dabbelt Reviewed-by: Andrew Waterman Reviewed-by: Albert Ou --- include/uapi/linux/eventpoll.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/eventpoll.h b/include/uapi/linux/eventpoll.h index bc81fb2e1f0e..290426bfb0aa 100644 --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -61,6 +61,7 @@ struct epoll_event { __u64 data; } EPOLL_PACKED; +#ifdef __KERNEL__ #ifdef CONFIG_PM_SLEEP static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) { @@ -73,4 +74,6 @@ static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev) epev->events &= ~EPOLLWAKEUP; } #endif +#endif /*__KERNEL__*/ + #endif /* _UAPI_LINUX_EVENTPOLL_H */