Received: with ECARTIS (v1.0.0; list netdev); Mon, 13 Oct 2003 23:14:44 -0700 (PDT) Received: from mail.osdl.org (fw.osdl.org [65.172.181.6]) by oss.sgi.com (8.12.10/8.12.10) with SMTP id h9E6E625006972 for ; Mon, 13 Oct 2003 23:14:07 -0700 Received: from midway.verizon.net (build.pdx.osdl.net [172.20.1.2]) by mail.osdl.org (8.11.6/8.11.6) with SMTP id h9E6Dmo01974; Mon, 13 Oct 2003 23:13:48 -0700 Date: Mon, 13 Oct 2003 23:12:31 -0700 From: "Randy.Dunlap" To: "Noah J. Misch" Cc: Elmer.Joandi@ut.ee, elmer@ylenurme.ee, netdev@oss.sgi.com Subject: Re: patches for PROC_FS=n (2.6.0-test7) Message-Id: <20031013231231.791317ff.rddunlap@osdl.org> In-Reply-To: References: <20031012201316.7ecf73c8.rddunlap@osdl.org> Organization: OSDL X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-archive-position: 786 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: rddunlap@osdl.org Precedence: bulk X-list: netdev On Mon, 13 Oct 2003 22:52:56 -0700 (PDT) "Noah J. Misch" wrote: | Randy, | | I poked around the driver a bit and uncovered a few points that suggest to me a | different approach to the problem. | | The file arlan-proc.c contains a number of functions supporting the driver's | sysctl interface. Nothing in that file appears procfs-specific. Right. | I would change the Makefile to compile arlan-proc.c depending on CONFIG_SYSCTL | and remove the #ifdef CONFIG_PROC_FS guarding much of that file. I would then | make arlan.h define macro or static inline stubs for init_arlan_proc and | cleanup_arlan_proc much like the current arlan.h does. That's about what I was planning to do next if I didn't hear anything else from Elmer. | For the matter, perhaps one could add an extra config option, ARLAN_SYSCTL, that | depends on ARLAN and SYSCTL, and conditional-compile arlan-proc.c on that | instead of CONFIG_SYSCTL itself. That way, users could leave it out to save | space without zapping all sysctls. I would go for this approach myself. I wouldn't prefer this, but if you make the patch, do whatever you want. I think that CONFIG_SYSCTL should be enough to determine/decide/control it. | The configuration help text for the arlan driver claims that it builds a module | for the driver and another for its sysctl interface. It doesn't do that at the | moment, but that is another option (though not one I like as much). I missed this config help text. Glad you caught it. But I wouldn't make that a separate module. | What do you think? Go ahead, your choice, but my preferences are above. | On Sun, 12 Oct 2003, Randy.Dunlap wrote: | | > On Fri, 10 Oct 2003 16:06:29 -0700 (PDT) "Noah J. Misch" wrote: | > | > | > There are several other drivers/protocols that don't build | > | > with PROC_FS=n, like arlan, siimage, ipx, llc, and bluetooth. | > | > | > Here's a patch for the wireless/arlan driver for PROC_FS=n. | > Currently it defines both a function and a macro for | > init_arlan_proc() if PROC_FS=n. This causes a bunch of | > compile-time errors. | > | > It looks to me like it should always call the init_arlan_proc() | > (and cleanup_arlan_proc()) functions since it inits some sysctl tables. | > Or am I misunderstanding it? Thanks. And I hope that your mailbox is functional now. -- ~Randy