Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752678AbZGTHWt (ORCPT ); Mon, 20 Jul 2009 03:22:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752611AbZGTHWs (ORCPT ); Mon, 20 Jul 2009 03:22:48 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:55362 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610AbZGTHWr (ORCPT ); Mon, 20 Jul 2009 03:22:47 -0400 From: Mike Frysinger To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Thomas Gleixner Subject: [PATCH] linux/futex.h: place kernel types behind __KERNEL__ Date: Mon, 20 Jul 2009 03:22:45 -0400 Message-Id: <1248074565-11454-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.6.3.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 44 The forward decls for some kernel types are only needed by the code behind __KERNEL__, so don't bleed these types to userspace. Signed-off-by: Mike Frysinger --- include/linux/futex.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/futex.h b/include/linux/futex.h index 34956c8..8ec1799 100644 --- a/include/linux/futex.h +++ b/include/linux/futex.h @@ -4,11 +4,6 @@ #include #include -struct inode; -struct mm_struct; -struct task_struct; -union ktime; - /* Second argument to futex syscall */ @@ -129,6 +124,11 @@ struct robust_list_head { #define FUTEX_BITSET_MATCH_ANY 0xffffffff #ifdef __KERNEL__ +struct inode; +struct mm_struct; +struct task_struct; +union ktime; + long do_futex(u32 __user *uaddr, int op, u32 val, union ktime *timeout, u32 __user *uaddr2, u32 val2, u32 val3); -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/