Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263895AbUFBTqs (ORCPT ); Wed, 2 Jun 2004 15:46:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263962AbUFBTqs (ORCPT ); Wed, 2 Jun 2004 15:46:48 -0400 Received: from mail.fh-wedel.de ([213.39.232.194]:29857 "EHLO mail.fh-wedel.de") by vger.kernel.org with ESMTP id S263895AbUFBTqj (ORCPT ); Wed, 2 Jun 2004 15:46:39 -0400 Date: Wed, 2 Jun 2004 21:45:15 +0200 From: =?iso-8859-1?Q?J=F6rn?= Engel To: viro@parcelfarce.linux.theplanet.co.uk Cc: Davide Libenzi , Linus Torvalds , Horst von Brand , Pavel Machek , Andrew Morton , Arjan van de Ven , Ingo Molnar , Andrea Arcangeli , Rik van Riel , Linux Kernel Mailing List Subject: Re: [RFC PATCH] explicitly mark recursion count Message-ID: <20040602194515.GA4477@wohnheim.fh-wedel.de> References: <200406011929.i51JTjGO006174@eeyore.valparaiso.cl> <20040602131623.GA23017@wohnheim.fh-wedel.de> <20040602182019.GC30427@wohnheim.fh-wedel.de> <20040602185832.GA2874@wohnheim.fh-wedel.de> <20040602193720.GQ12308@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040602193720.GQ12308@parcelfarce.linux.theplanet.co.uk> User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 31 On Wed, 2 June 2004 20:37:20 +0100, viro@parcelfarce.linux.theplanet.co.uk wrote: > On Wed, Jun 02, 2004 at 08:58:32PM +0200, J?rn Engel wrote: > > Note the "in the most general case" part. You can get things right if > > you make some assumptions and those assumptions are actually valid. > > In my case the assumptions are: > > 1. all relevant function pointers are stuffed into some struct and > > Wrong. They are often passed as arguments to generic helpers, without > being ever put into any structures. Ok. Would it be ok to use the following then? b1. Function pointer are passed as arguments to functions and b2. those pointer are called directly from the function, they are passed to. Either that or the previous two rules, renamed to a1 and a2. (Note that I care more about sane rules than what any random code in some dark corner happens to do right now.) J?rn -- A surrounded army must be given a way out. -- Sun Tzu - 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/