lkml.org 
[lkml]   [2008]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: asm-x86/byteorder.h: clean up for userspace
Christoph Hellwig wrote:
> On Mon, Dec 31, 2007 at 01:12:45PM -0500, Mike Frysinger wrote:
>> Since asm-x86/byteorder.h is exported to userspace, use __asm__ rather than
>> asm in its code.
>
> The correct fix is to not export it to userspace.

Unfortunately, it's historically been provided, for over 15 years. It's
also trivial to export, without funnies, and it's *useful* to userspace,
as it provides an interface sorely lacking from the stock libc interfaces.

So please do provide it, even though it's arguably the wrong thing. The
downside is worse.

-hpa


\
 
 \ /
  Last update: 2008-01-01 22:27    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog