Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765923AbXHXJ7V (ORCPT ); Fri, 24 Aug 2007 05:59:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762401AbXHXJ7N (ORCPT ); Fri, 24 Aug 2007 05:59:13 -0400 Received: from nic.NetDirect.CA ([216.16.235.2]:58986 "EHLO rubicon.netdirect.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762191AbXHXJ7N (ORCPT ); Fri, 24 Aug 2007 05:59:13 -0400 X-Originating-Ip: 72.143.66.27 Date: Fri, 24 Aug 2007 05:49:42 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Paul Mundt cc: Linux Kernel Mailing List Subject: Re: what is the value of the macro "__setup_param"? In-Reply-To: <20070824095058.GA32013@linux-sh.org> Message-ID: References: <20070824095058.GA32013@linux-sh.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Net-Direct-Inc-MailScanner-Information: Please contact the ISP for more information X-Net-Direct-Inc-MailScanner: Found to be clean X-Net-Direct-Inc-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-16.8, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -15.00, INIT_RECVD_OUR_AUTH -20.00, RCVD_IN_SORBS_DUL 20.00) X-Net-Direct-Inc-MailScanner-From: rpjday@mindspring.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1616 Lines: 40 On Fri, 24 Aug 2007, Paul Mundt wrote: > On Fri, Aug 24, 2007 at 05:19:29AM -0400, Robert P. J. Day wrote: > > > > perhaps i'm missing it, but it seems that the macro __setup_param is > > entirely superfluous: > > > > $ grep -rw __setup_param * > > include/linux/init.h:#define __setup_param(str, unique_id, fn, early) \ > > include/linux/init.h: __setup_param(str, unique_id, NULL, 0) > > include/linux/init.h: __setup_param(str, fn, fn, 0) > > include/linux/init.h: __setup_param(str, fn, fn, 1) > > include/linux/init.h:#define __setup_param(str, unique_id, fn) /* nothing */ > > $ > > > > or am i must misreading something badly? > Superfluous how? It does different things depending on whether > MODULE is defined or not. It's a good indicator of how often people > use __setup_param() from module context though, given the complete > mismatch of parameters. It's probably worth fixing that up at least. never mind, i've already clued in. up too long, and trying to do too many things at once. more sleep or more coffee -- time to make a decision. sorry for the noise. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://crashcourse.ca ======================================================================== - 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/