[patch] alpha: build fixes

2007-12-13 Thread Ivan Kokshaysky
This fixes some of the alpha-specific build problems, except a) modpost warning about COMMON symbol "saved_config" and b) nasty final link failure with gcc-4.x, -Os and scsi-disk driver configured built-in (due to jump table in .rodata referencing discarded .exit.text). - build failure with gcc-4.

Re: [PATCH] ALPHA: build fixes - force architecture (take 2)

2007-04-13 Thread Ivan Kokshaysky
On Fri, Apr 13, 2007 at 12:05:03PM -0700, Andrew Morton wrote: > alpha-fix-bootp-image-creation.patch > alpha-prctl-macros.patch > alpha-fixes-for-specific-machine-types.patch > alpha-more-fixes-for-specific-machine-types.patch > alpha-build-fixes-force-architecture.patch > > Which of these do you

Re: [PATCH] ALPHA: build fixes - force architecture (take 2)

2007-04-13 Thread Andrew Morton
On Thu, 12 Apr 2007 14:16:39 -0700 Richard Henderson <[EMAIL PROTECTED]> wrote: > On Thu, Apr 12, 2007 at 12:01:10PM +0400, Ivan Kokshaysky wrote: > > [CIX stuff reworked, .got change dropped as Richard suggested] > > > > Override compiler .arch directive for generic kernel build. > > > > Signed

Re: [PATCH] ALPHA: build fixes - force architecture (take 2)

2007-04-12 Thread Richard Henderson
On Thu, Apr 12, 2007 at 12:01:10PM +0400, Ivan Kokshaysky wrote: > [CIX stuff reworked, .got change dropped as Richard suggested] > > Override compiler .arch directive for generic kernel build. > > Signed-off-by: Ivan Kokshaysky <[EMAIL PROTECTED]> Signed-off-by: Richard Henderson <[EMAIL PROTE

[PATCH] ALPHA: build fixes - force architecture (take 2)

2007-04-12 Thread Ivan Kokshaysky
[CIX stuff reworked, .got change dropped as Richard suggested] Override compiler .arch directive for generic kernel build. Signed-off-by: Ivan Kokshaysky <[EMAIL PROTECTED]> --- linux.orig/arch/alpha/kernel/sys_titan.cThu Apr 12 01:19:47 2007 +++ linux/arch/alpha/kernel/sys_titan.c Thu Apr 1

Re: [PATCH] alpha build fixes

2005-03-23 Thread Matthew Wilcox
[I'm not subscribed, please excuse the thread-breaking] Alan Cox wrote: > > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > > +{ > > + return channel ? 15 : 14; > > +} > > The issue is bigger - it's needed for the CMD controllers on PA-RISC for > example it appears

Re: [PATCH] alpha build fixes

2005-03-21 Thread Benjamin Herrenschmidt
> > Ok, but asm-generic/pci.h is not a good place for default IRQ 14/15 case - > this header cannot be included on non-x86 without additional #ifdef's. > Perhaps we can move it to linux/pci.h or linux/ata.h (as Bart noted)? Well, I would have expected other archs to just make their own, but I ha

Re: [PATCH] alpha build fixes

2005-03-21 Thread Jeff Garzik
On Mon, Mar 21, 2005 at 10:16:18AM -0800, Richard Henderson wrote: > On Mon, Mar 21, 2005 at 02:52:10PM +, Alan Cox wrote: > > The issue is bigger - it's needed for the CMD controllers on PA-RISC for > > example it appears - and anything else where IDE legacy IRQ is wired > > oddly. > > Sure,

Re: [PATCH] alpha build fixes

2005-03-21 Thread Richard Henderson
On Mon, Mar 21, 2005 at 02:52:10PM +, Alan Cox wrote: > The issue is bigger - it's needed for the CMD controllers on PA-RISC for > example it appears - and anything else where IDE legacy IRQ is wired > oddly. Sure, but who queries this information? That's my question. r~ - To unsubscribe fr

Re: [PATCH] alpha build fixes

2005-03-21 Thread Alan Cox
On Sad, 2005-03-19 at 23:11, Richard Henderson wrote: > On Fri, Mar 18, 2005 at 11:34:07PM -0500, Jeff Garzik wrote: > > +/* TODO: integrate with include/asm-generic/pci.h ? */ > > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > > +{ > > + return channel ? 15 : 14; >

Re: [PATCH] alpha build fixes

2005-03-21 Thread Ivan Kokshaysky
On Mon, Mar 21, 2005 at 11:27:39PM +1100, Benjamin Herrenschmidt wrote: > IRQs on IDE in legacy mode is sort of an out-of-spec piece of junk that > was invented to make PCI based peecees "look like" good old rotten > hardware, unfortunately, some modern and non-x86 HW vendors still don't > haev a c

Re: [PATCH] alpha build fixes

2005-03-21 Thread Benjamin Herrenschmidt
> > Then isn't linux/ide.h the proper place for default pci_get_legacy_ide_irq() > > ide.h is not shared between IDE and libata drivers (but ata.h is) > > > implementation instead of asm-generic/pci.h? The latter is only used by > > 7 out of 23 architectures, so not only alpha gets broken. I'm

Re: [PATCH] alpha build fixes

2005-03-21 Thread Bartlomiej Zolnierkiewicz
On Mon, 21 Mar 2005 12:16:16 +0300, Ivan Kokshaysky <[EMAIL PROTECTED]> wrote: > On Mon, Mar 21, 2005 at 09:05:39AM +0100, Bartlomiej Zolnierkiewicz wrote: > > On Sat, 19 Mar 2005 18:16:41 -0500, Jeff Garzik <[EMAIL PROTECTED]> wrote: > > > On Sat, Mar 19, 2005 at 03:11:16PM -0800, Richard Henderso

Re: [PATCH] alpha build fixes

2005-03-21 Thread Ivan Kokshaysky
On Mon, Mar 21, 2005 at 09:05:39AM +0100, Bartlomiej Zolnierkiewicz wrote: > On Sat, 19 Mar 2005 18:16:41 -0500, Jeff Garzik <[EMAIL PROTECTED]> wrote: > > On Sat, Mar 19, 2005 at 03:11:16PM -0800, Richard Henderson wrote: > > > On Fri, Mar 18, 2005 at 11:34:07PM -0500, Jeff Garzik wrote: > > > > +

Re: [PATCH] alpha build fixes

2005-03-21 Thread Bartlomiej Zolnierkiewicz
On Sat, 19 Mar 2005 18:16:41 -0500, Jeff Garzik <[EMAIL PROTECTED]> wrote: > On Sat, Mar 19, 2005 at 03:11:16PM -0800, Richard Henderson wrote: > > On Fri, Mar 18, 2005 at 11:34:07PM -0500, Jeff Garzik wrote: > > > +/* TODO: integrate with include/asm-generic/pci.h ? */ > > > +static inline int pci

Re: [PATCH] alpha build fixes

2005-03-19 Thread Jeff Garzik
On Sat, Mar 19, 2005 at 03:11:16PM -0800, Richard Henderson wrote: > On Fri, Mar 18, 2005 at 11:34:07PM -0500, Jeff Garzik wrote: > > +/* TODO: integrate with include/asm-generic/pci.h ? */ > > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > > +{ > > + return channel

Re: [PATCH] alpha build fixes

2005-03-19 Thread Richard Henderson
On Fri, Mar 18, 2005 at 11:34:07PM -0500, Jeff Garzik wrote: > +/* TODO: integrate with include/asm-generic/pci.h ? */ > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > +{ > + return channel ? 15 : 14; > +} Am I missing something, or is this *only* used by drivers

[PATCH] alpha build fixes

2005-03-18 Thread Jeff Garzik
Needed this to build Fedora rawhide kernel (2.6.12-rc1 + some patches) on alpha. This is the upstream portion of the build fixes. Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]> diff -urN ../kernel-2.6.11.orig/linux-2.6.11/drivers/char/agp/generic.c linux-2.6.11/drivers/char/agp/generic.c --- ../