Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755263AbYL0VKz (ORCPT ); Sat, 27 Dec 2008 16:10:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754892AbYL0VK2 (ORCPT ); Sat, 27 Dec 2008 16:10:28 -0500 Received: from terminus.zytor.com ([198.137.202.10]:57730 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754871AbYL0VK1 (ORCPT ); Sat, 27 Dec 2008 16:10:27 -0500 Message-ID: <495699A0.10305@zytor.com> Date: Sat, 27 Dec 2008 13:09:52 -0800 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Mike Frysinger CC: Sam Ravnborg , Ingo Molnar , tglx@linutronix.de, mingo@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86 byteorder.h: use __asm__/__inline__ for userspace References: <1230360604-6711-1-git-send-email-vapier@gentoo.org> <200812271505.46872.vapier@gentoo.org> <495693E5.3060604@zytor.com> <200812271557.07003.vapier@gentoo.org> In-Reply-To: <200812271557.07003.vapier@gentoo.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 25 Mike Frysinger wrote: > ... > #ifdef __KERNEL__ > # define kernel_flock flock > #endif > struct kernel_flock { > ... FWIW, a long time ago I proposed the __kabi_ prefix for these things; I think it is a good thing to make userspace-visible structures stand out even in the kernel code itself. As such, I would suggest *not* adding the #define at all. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/