Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1766003AbXFRS7Y (ORCPT ); Mon, 18 Jun 2007 14:59:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765929AbXFRS7K (ORCPT ); Mon, 18 Jun 2007 14:59:10 -0400 Received: from pasmtpb.tele.dk ([80.160.77.98]:52878 "EHLO pasmtpB.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765898AbXFRS7H (ORCPT ); Mon, 18 Jun 2007 14:59:07 -0400 Date: Mon, 18 Jun 2007 21:00:09 +0200 From: Sam Ravnborg To: Christoph Hellwig , Mike Frysinger , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, rmk@arm.linux.org.uk Subject: Re: [patch] use __asm__ and __volatile__ in i386/arm/s390 byteorder.h Message-ID: <20070618190009.GB25340@uranus.ravnborg.org> References: <200706171833.29046.vapier@gentoo.org> <20070618183450.GA17112@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070618183450.GA17112@infradead.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 955 Lines: 19 On Mon, Jun 18, 2007 at 07:34:50PM +0100, Christoph Hellwig wrote: > On Sun, Jun 17, 2007 at 06:33:28PM -0400, Mike Frysinger wrote: > > This changes asm() to __asm__() and volatile to __volatile__ so that these > > headers can be used with gcc's -std=c99. > > We should not allow inline assemly in the exported part of userspace headers > at all. These headers must only include defintions for the kernel <-> user > ABI, and should not include code at all. Do you imply that if we see asm or __asm__ in user space headers we ougth to warn about it? Seems at least sensible to me but if we introduce such a check we should kill all offenders first - which Mike's patches seems to trigger for some part. Sam - 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/