Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932602AbZACBko (ORCPT ); Fri, 2 Jan 2009 20:40:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758643AbZACBkf (ORCPT ); Fri, 2 Jan 2009 20:40:35 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:54180 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758566AbZACBke (ORCPT ); Fri, 2 Jan 2009 20:40:34 -0500 From: Arnd Bergmann To: Mike Frysinger Subject: Re: [PATCH] headers_check.pl: disallow extern's Date: Sat, 3 Jan 2009 02:40:28 +0100 User-Agent: KMail/1.9.9 Cc: Arjan van de Ven , Sam Ravnborg , linux-kernel@vger.kernel.org References: <1230363816-24097-1-git-send-email-vapier@gentoo.org> <200901030109.58197.arnd@arndb.de> <200901022020.44200.vapier@gentoo.org> In-Reply-To: <200901022020.44200.vapier@gentoo.org> X-Face: I@=L^?./?$U,EK.)V[4*>`zSqm0>65YtkOe>TFD'!aw?7OVv#~5xd\s,[~w]-J!)|%=]>=?utf-8?q?+=0A=09=7EohchhkRGW=3F=7C6=5FqTmkd=5Ft=3FLZC=23Q-=60=2E=60Y=2Ea=5E?= =?utf-8?q?3zb?=) =?utf-8?q?+U-JVN=5DWT=25cw=23=5BYo0=267C=26bL12wWGlZi=0A=09=7EJ=3B=5Cwg?= =?utf-8?q?=3B3zRnz?=,J"CT_)=\H'1/{?SR7GDu?WIopm.HaBG=QYj"NZD_[zrM\Gip^U MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901030240.28759.arnd@arndb.de> X-Provags-ID: V01U2FsdGVkX1/MWAYPyeNEB0fX0B7BG6x6CIK9DXrsoABW5Q4 6GoxLLNphr8otXfOjdCXCNlmODi4MsttZJ6wZyoKWUryGdiXxW WHiJKV5LTqGNQmkY7JafA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 24 On Saturday 03 January 2009, Mike Frysinger wrote: > On Friday 02 January 2009 19:09:57 Arnd Bergmann wrote: > > On Saturday 03 January 2009, Arjan van de Ven wrote: > > > in addition... what business does the kernel have to provide function > > > prototypes to userspace, other than the system call prototypes? > > > > This is the point I raised in my initial comment: we should warn about > > all of them if possible. Note that the syscalls.h file is not even > > exported. I can't think of a single case where a function protoype > > should be exported from the kernel to user space. > > right, and unless people someone can come up with some magic perl code to > detect function prototypes, i suggest we start adding extern keywords ... In the presence of /usr/bin/ctags-exuberant, we can use that to find all of these. If it doesn't exist, just don't check or warn about the fact that we might be missing checks. Arnd <>< -- 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/