Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932973Ab2HVPXa (ORCPT ); Wed, 22 Aug 2012 11:23:30 -0400 Received: from mail-qc0-f174.google.com ([209.85.216.174]:52030 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932872Ab2HVPXZ (ORCPT ); Wed, 22 Aug 2012 11:23:25 -0400 Date: Wed, 22 Aug 2012 11:23:23 -0400 (EDT) From: Nicolas Pitre To: Arnd Bergmann cc: linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] [RFC] ARM: multiplatform: rename all mach headers In-Reply-To: <201208221253.07278.arnd@arndb.de> Message-ID: References: <201208221253.07278.arnd@arndb.de> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2360 Lines: 51 On Wed, 22 Aug 2012, Arnd Bergmann wrote: > I've created this series some time ago, and updated it now to > v3.6-rc1. The idea is to get us a big step closer to the > single zImage kernel across multiple ARM platforms by > untangling the duplicate header file names. Thanks for picking up this task. > There are two branches available in the arm-soc tree: > > 1. This series, > http://git.kernel.org/?p=linux/kernel/git/arm/arm-soc.git;a=shortlog;h=refs/heads/testing/mach-headers > This just moves header files around and changes most of the > files including them. There are a few remaining drivers > and platform files that keep including a generic file name > like . It remains possible to do that, > and I've run extensive tests to ensure I did not break > anything with this. However, each of these instances means > that there is something that stops working when you get to > the real multiplatform kernel and we still need to deal > with them one by one. The content of is fundamentally machine or SOC specific. We already know it is generally incompatible with a multi platform kernel. So the best way to deal with this at the moment is probably to just provide a dummy uncompress.h with empty stubs whenever CONFIG_ARCH_MULTIPLATFORM is selected. The effect from this is that there wouldn't be any "Uncompressing the kernel... Done" output anymore, which should be an acceptable compromise until a better solution is found. One problem is that some (very few) machines define a method in that file to keep a hardware watchdog alive. This might not be the case for all the intended targets to gather in a single kernel binary image though. Another issue is the fact that some platforms do very ugly layer-violating hacks where the decompressor selects a serial port for early output and then store that selection in some arbitrary memory location for the main kernel to blindly use, making the decompressor mandatory. OMAP and Davinci are prime example of such "abuse" which would need to be fixed. Nicolas -- 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/