From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935427Ab3DPTLM (ORCPT ); Tue, 16 Apr 2013 15:11:12 -0400 Received: from mail-lb0-f178.google.com ([209.85.217.178]:48573 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935158Ab3DPTLL (ORCPT ); Tue, 16 Apr 2013 15:11:11 -0400 MIME-Version: 1.0 X-Originating-IP: [188.6.195.195] In-Reply-To: References: <1366058481-21033-1-git-send-email-ccross@android.com> Date: Tue, 16 Apr 2013 21:11:10 +0200 Message-ID: Subject: Re: [PATCH] fuse: use kernel headers when __KERNEL__ is set From: Miklos Szeredi To: Colin Cross Cc: Linus Torvalds , lkml , "open list:FUSE: FILESYSTEM..." , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2013 at 8:29 PM, Colin Cross wrote: > Dropping __linux__ causes a make headers_check warning, which the > kbuild test robot reported this morning: > usr/include/linux/fuse.h:99: found __[us]{8,16,32,64} type without > #include > Using my patch without modification does not cause that warning. > > linux/types.h defines the types that are used to communicate between > the kernel and userspace. Redefining those in each header makes no > sense, and will probably cause redefined types warnings if you compile > a userspace file that includes fuse.h and another uapi header that > properly includes linux/types.h. is linux specific while the fuse API is cross platform. So the userspace header obviously has to use some cross platform type definitions. Making the type definitions depend on __linux__ is probably just as unreliable in userspace as it is in the kernel, so why complicate things with that? Thanks, Miklos