Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752976AbZFFFoi (ORCPT ); Sat, 6 Jun 2009 01:44:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751241AbZFFFoa (ORCPT ); Sat, 6 Jun 2009 01:44:30 -0400 Received: from hera.kernel.org ([140.211.167.34]:53384 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbZFFFoa (ORCPT ); Sat, 6 Jun 2009 01:44:30 -0400 Subject: Re: [PATCH 17/39] kbuild: fix header export when __ASSEMBLY__ is used From: Jaswinder Singh Rajput To: Arnd Bergmann Cc: Sam Ravnborg , linux-kbuild , LKML , Russell King In-Reply-To: <200906060041.07600.arnd@arndb.de> References: <20090605233720.GA13588@uranus.ravnborg.org> <1244245377-17441-17-git-send-email-sam@ravnborg.org> <200906060041.07600.arnd@arndb.de> Content-Type: text/plain Date: Sat, 06 Jun 2009 11:15:44 +0530 Message-Id: <1244267144.2449.29.camel@ht.satnam> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1399 Lines: 40 Hello Sam, Russell, On Sat, 2009-06-06 at 00:41 +0000, Arnd Bergmann wrote: > On Friday 05 June 2009 11:42:35 pm Sam Ravnborg wrote: > > Because it does not know __ASSEMBLY__ it does not > > detect that htis is not for userspace. > > This caused too much code to be exported, and headers_check barfed > > over this code. > > > > For arm this fixes following "make headers_check" warning: > > /usr/include/asm/hwcap.h:29: extern's make no sense in userspace > > Are you sure that this is safe for all user space? If a user application > for instance includes asm/signal.h or asm/types.h from assembly (for > whatever reason), it now breaks. > > I can't think of a good reason why anyone would do such a thing, > but it used to be possible. > I also want to add : __KERNEL__ and __ASSEMBLY__ is used for specific purpose, please do not mix them otherwise it leads to confusion and people will start using interchangeably. It seems to me that you are introducing Pink traffic light for stoppage so my request is to respect the protocols. I do not think it is safe and this will screw some user-space apps and then later on kernel. Thanks, -- JSR -- 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/