Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755612AbYLBRpv (ORCPT ); Tue, 2 Dec 2008 12:45:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754012AbYLBRpl (ORCPT ); Tue, 2 Dec 2008 12:45:41 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:57214 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754004AbYLBRpk (ORCPT ); Tue, 2 Dec 2008 12:45:40 -0500 Date: Tue, 2 Dec 2008 17:44:57 +0000 From: Russell King To: Rusty Russell Cc: linux-kernel@vger.kernel.org, Richard Henderson , Haavard Skinnemoen , Bryan Wu , Mikael Starvik , David Howells , Yoshinori Sato , Tony Luck , Hirokazu Takata , Geert Uytterhoeven , Greg Ungerer , Ralf Baechle , Grant Grundler , Paul Mackerras , Heiko Carstens , Paul Mundt , "David S. Miller" , Jeff Dike , Ingo Molnar , Chris Zankel Subject: Re: [RFC 5/8] param: arch_get_boot_command_line() Message-ID: <20081202174457.GA26005@flint.arm.linux.org.uk> References: <200812012326.03151.rusty@rustcorp.com.au> <20081201131807.GD28971@flint.arm.linux.org.uk> <200812021243.38862.rusty@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200812021243.38862.rusty@rustcorp.com.au> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 39 On Tue, Dec 02, 2008 at 12:43:37PM +1030, Rusty Russell wrote: > A couple of #if 0 around code I don't think can happen (even in the orignal > place I moved it from?) Looking at just those... > @@ -697,32 +693,48 @@ void __init setup_arch(char **cmdline_p) > */ > if (tags->hdr.tag != ATAG_CORE) > convert_to_tag_list(tags); > +#if 0 > if (tags->hdr.tag != ATAG_CORE) > tags = (struct tag *)&init_tags; > +#endif This prevents 'init_tags' from ever being used, which wil happen if convert_to_tag_list() doesn't find a param_struct to convert. > + > + if (mdesc->fixup) > + mdesc->fixup(mdesc, tags, &meminfo); > + > +#if 0 > + if (tags->hdr.tag == ATAG_CORE) { > +#endif This may happen if the memory pointed to by 'tags' gets overwritten for some reason by a machine specific fixup, but that'll probably never happen. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: -- 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/