Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 7 Jun 2002 15:27:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 7 Jun 2002 15:27:03 -0400 Received: from cpe-24-221-152-185.az.sprintbbd.net ([24.221.152.185]:3205 "EHLO opus.bloom.county") by vger.kernel.org with ESMTP id ; Fri, 7 Jun 2002 15:27:02 -0400 Date: Fri, 7 Jun 2002 12:26:14 -0700 From: Tom Rini To: Pavel Machek Cc: Linus Torvalds , Kernel Mailing List Subject: Re: [PATCH] Cleanup i386 abuses Message-ID: <20020607192614.GN14252@opus.bloom.county> In-Reply-To: <20020605163614.GF1335@opus.bloom.county> <20020607110145.GA9975@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 07, 2002 at 01:01:45PM +0200, Pavel Machek wrote: > Hi! > > > The following patch cleans up the i386 usage of . > > This remove from which did not need > > it, which only had it due to an extern using > > __init, which is not needed. > > This adds to which actually has > > numerous __init functions and adds to 9 files inside of > > arch/i386 which were indirectly including previously. > > > @@ -33,7 +32,7 @@ > extern pgprot_t kmap_prot; > extern pte_t *pkmap_page_table; > > -extern void kmap_init(void) __init; > +extern void kmap_init(void); > > /* > * Right now we initialize only a single pte table. It can be > extended > > > __init is usefull as a documentation... Perhaps adding /* This is > __init function */ would be good. The use of __init in externs is done very infrequently right now, and is probably causing to be included in a few more headers that probably don't need it and thus masking the bugs in some .c files. I also think it makes very poor documentation right now since it's done a total of 24 times, and should probably be removed for consistency. Or left alone since mentions you can do it. But personally, I'm against doing it. -- Tom Rini (TR1265) http://gate.crashing.org/~trini/ - 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/