All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Russell King <rmk@arm.linux.org.uk>
Cc: Sam Ravnborg <sam@ravnborg.org>,
	john stultz <johnstul@us.ibm.com>,
	"J.E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] [PATCH] subarch cleanup
Date: Thu, 21 Nov 2002 13:47:52 -0800	[thread overview]
Message-ID: <239070000.1037915272@flay> (raw)
In-Reply-To: <20021121193407.A13944@flint.arm.linux.org.uk>

>> Header files go under include ....
> 
> In this instance I'd disagree.  Think about UML.  UML has:
> 
> 	include/asm-um/*.h
> 	include/asm-um/arch -> include/asm-i386
> 
> When building for UML, what happens if you need to get to a machine
> specific file for something, and the i386 include files do:
> 
> 	#include <asm/mach-generic/foo.h>
> 
> Yep, it fails.

I don't understand what UML is trying to do here, but if it wants
the architecture specific stuff, it has to do it in the same way 
as the arch itself. That's UML's problem ... it sounds like it's
just making invalid assumptions. Maybe the include paths
need to be in a seperate makefile to avoid maintainance problems.
 
> Now guess why we in the ARM community haven't even bothered to look at
> UML yet?  There's over 1MB of include files that would need to be moved,
> along with countless #include statements needing to be fixed up.
> 
> For something that would be nice to have, and probably run quite well on
> the ARM architecture (due to some nice features ARM has, especially for
> UML's jail mode) there isn't enough interest in it to warrant such a
> painful reorganisation.
> 
> I'd therefore strongly recommend NOT going down the path of adding
> subdirectories to include/asm-*.

Another way to fix this (which might be simpler anyway) is to leave
the Makefiles alone and create:

include/asm-i386/mach_apic.h
	#ifdef CONFIG_XYZ_MACHINE
		#include <asm/mach-xyz/mach_apic.h>
	#else
		#include <asm/mach-generic/mach_apic.h>

Or something along those lines.

Whilst it's a nice idea in principle, the current subarch system does 
not scale to any real number of subarches beyond 1 or 2, and need some 
rejigging.

M.


  reply	other threads:[~2002-11-21 21:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-20  0:00 [RFC] [PATCH] subarch cleanup john stultz
2002-11-21 18:33 ` Sam Ravnborg
2002-11-21 18:35   ` Martin J. Bligh
2002-11-21 19:34     ` Russell King
2002-11-21 21:47       ` Martin J. Bligh [this message]
2002-11-22 15:00     ` J.E.J. Bottomley
2002-11-22 15:42       ` Martin J. Bligh
2002-11-22 16:40         ` J.E.J. Bottomley
2002-11-22 16:57           ` Christoph Hellwig
2002-11-22 17:20           ` Martin J. Bligh
2002-11-22 17:55             ` J.E.J. Bottomley
2002-11-21 18:55   ` john stultz
2002-11-21 19:15     ` Sam Ravnborg
2002-11-21 20:27       ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=239070000.1037915272@flay \
    --to=mbligh@aracnet.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.