From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752049AbZKOWyX (ORCPT ); Sun, 15 Nov 2009 17:54:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751241AbZKOWyW (ORCPT ); Sun, 15 Nov 2009 17:54:22 -0500 Received: from mgw2.diku.dk ([130.225.96.92]:48044 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbZKOWyV (ORCPT ); Sun, 15 Nov 2009 17:54:21 -0500 Date: Sun, 15 Nov 2009 23:54:25 +0100 (CET) From: Julia Lawall To: Arnd Bergmann Cc: Joe Perches , Ingo Molnar , "Eric W. Biederman" , Am??rico Wang , LKML , Andrew Morton Subject: Re: [PATCH] sysctl.c: Change a .proc_handler = proc_dointvec to &proc_dointvec, In-Reply-To: <200911152053.35292.arnd@arndb.de> Message-ID: References: <1258249925.16857.198.camel@Joe-Laptop.home> <1258313031.21668.73.camel@Joe-Laptop.home> <200911152053.35292.arnd@arndb.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 15 Nov 2009, Arnd Bergmann wrote: > On Sunday 15 November 2009 20:40:25 Julia Lawall wrote: > > It would be possible to count the number of occurrences in a given file, > > and then change the ones that have the less popular format, or a format > > that occurs less than some percentage of time. > > How many of the 600 files use both formats? This time I considered only cases where the function is defined in the same file, not where the function is presented only as a prototype. I get: 502 files that use both options 83 files that only use & for function pointers 9374 files that never use & for function pointers (Only files that use at least one of the options are considered.) julia