* [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI
@ 2008-09-08 23:19 Steven Noonan
2008-09-08 23:19 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Steven Noonan
2008-09-09 6:56 ` [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Ingo Molnar
0 siblings, 2 replies; 9+ messages in thread
From: Steven Noonan @ 2008-09-08 23:19 UTC (permalink / raw)
To: linux-kernel; +Cc: mingo, steven
Added dummy function for hpet_setup_msi_irq().
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
arch/x86/kernel/hpet.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index 01005ae..422c577 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -635,6 +635,10 @@ static int hpet_cpuhp_notify(struct notifier_block *n,
}
#else
+static int hpet_setup_msi_irq(unsigned int irq)
+{
+ return 0;
+}
void hpet_msi_capability_lookup(unsigned int start_timer)
{
return;
--
1.6.0.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM
2008-09-08 23:19 [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Steven Noonan
@ 2008-09-08 23:19 ` Steven Noonan
2008-09-08 23:19 ` [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags() Steven Noonan
2008-09-09 6:51 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Ingo Molnar
2008-09-09 6:56 ` [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Ingo Molnar
1 sibling, 2 replies; 9+ messages in thread
From: Steven Noonan @ 2008-09-08 23:19 UTC (permalink / raw)
To: linux-kernel; +Cc: mingo, steven
Fixing compiler warning when the kernel isn't compiled with support
for RAM block devices enabled.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
init/initramfs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/init/initramfs.c b/init/initramfs.c
index da8d030..2f056e2 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -512,6 +512,7 @@ skip:
initrd_end = 0;
}
+#ifdef CONFIG_BLK_DEV_RAM
#define BUF_SIZE 1024
static void __init clean_rootfs(void)
{
@@ -558,6 +559,7 @@ static void __init clean_rootfs(void)
sys_close(fd);
kfree(buf);
}
+#endif
static int __init populate_rootfs(void)
{
--
1.6.0.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags()
2008-09-08 23:19 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Steven Noonan
@ 2008-09-08 23:19 ` Steven Noonan
2008-09-09 6:57 ` Ingo Molnar
2008-09-09 6:51 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Ingo Molnar
1 sibling, 1 reply; 9+ messages in thread
From: Steven Noonan @ 2008-09-08 23:19 UTC (permalink / raw)
To: linux-kernel; +Cc: mingo, steven
Fixed a warning caused by a badly placed ifdef.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
---
include/asm-x86/dma-mapping.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index a072ae6..8bb3108 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/include/asm-x86/dma-mapping.h
@@ -255,9 +255,9 @@ static inline unsigned long dma_alloc_coherent_mask(struct device *dev,
static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp)
{
+#ifdef CONFIG_X86_64
unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp);
-#ifdef CONFIG_X86_64
if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA))
gfp |= GFP_DMA32;
#endif
--
1.6.0.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags()
2008-09-08 23:19 ` [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags() Steven Noonan
@ 2008-09-09 6:57 ` Ingo Molnar
2008-09-09 7:04 ` FUJITA Tomonori
0 siblings, 1 reply; 9+ messages in thread
From: Ingo Molnar @ 2008-09-09 6:57 UTC (permalink / raw)
To: Steven Noonan; +Cc: linux-kernel, Thomas Gleixner, H. Peter Anvin
* Steven Noonan <steven@uplinklabs.net> wrote:
> Fixed a warning caused by a badly placed ifdef.
>
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
applied to tip/x86/iommu - thanks Steven,
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags()
2008-09-09 6:57 ` Ingo Molnar
@ 2008-09-09 7:04 ` FUJITA Tomonori
2008-09-09 7:13 ` Ingo Molnar
0 siblings, 1 reply; 9+ messages in thread
From: FUJITA Tomonori @ 2008-09-09 7:04 UTC (permalink / raw)
To: mingo; +Cc: steven, linux-kernel, tglx, hpa
On Tue, 9 Sep 2008 08:57:36 +0200
Ingo Molnar <mingo@elte.hu> wrote:
>
> * Steven Noonan <steven@uplinklabs.net> wrote:
>
> > Fixed a warning caused by a badly placed ifdef.
> >
> > Signed-off-by: Steven Noonan <steven@uplinklabs.net>
>
> applied to tip/x86/iommu - thanks Steven,
Did you apply the same patch yesterday?
http://lkml.org/lkml/2008/9/8/274
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags()
2008-09-09 7:04 ` FUJITA Tomonori
@ 2008-09-09 7:13 ` Ingo Molnar
0 siblings, 0 replies; 9+ messages in thread
From: Ingo Molnar @ 2008-09-09 7:13 UTC (permalink / raw)
To: FUJITA Tomonori; +Cc: steven, linux-kernel, tglx, hpa
* FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:
> On Tue, 9 Sep 2008 08:57:36 +0200
> Ingo Molnar <mingo@elte.hu> wrote:
>
> >
> > * Steven Noonan <steven@uplinklabs.net> wrote:
> >
> > > Fixed a warning caused by a badly placed ifdef.
> > >
> > > Signed-off-by: Steven Noonan <steven@uplinklabs.net>
> >
> > applied to tip/x86/iommu - thanks Steven,
>
> Did you apply the same patch yesterday?
>
> http://lkml.org/lkml/2008/9/8/274
yes, but i havent pushed it out in time yesterday night. In such
scenarios i generally zap the patch i generated and replace it with the
fix that is being sent against the last publicly available tree. That is
what happened here too. This makes it all symmetric and fair (i as a
maintainer have no time advantage to get fixes in first) and it also
teaches me to push out fixes faster :-)
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM
2008-09-08 23:19 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Steven Noonan
2008-09-08 23:19 ` [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags() Steven Noonan
@ 2008-09-09 6:51 ` Ingo Molnar
1 sibling, 0 replies; 9+ messages in thread
From: Ingo Molnar @ 2008-09-09 6:51 UTC (permalink / raw)
To: Steven Noonan; +Cc: linux-kernel, Arjan van de Ven
* Steven Noonan <steven@uplinklabs.net> wrote:
> Fixing compiler warning when the kernel isn't compiled with support
> for RAM block devices enabled.
>
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
applied to tip/fastboot - thanks Steven!
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI
2008-09-08 23:19 [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Steven Noonan
2008-09-08 23:19 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Steven Noonan
@ 2008-09-09 6:56 ` Ingo Molnar
2008-09-09 0:13 ` Steven Noonan
1 sibling, 1 reply; 9+ messages in thread
From: Ingo Molnar @ 2008-09-09 6:56 UTC (permalink / raw)
To: Steven Noonan
Cc: linux-kernel, Thomas Gleixner, H. Peter Anvin, Venki Pallipadi
* Steven Noonan <steven@uplinklabs.net> wrote:
> Added dummy function for hpet_setup_msi_irq().
>
> Signed-off-by: Steven Noonan <steven@uplinklabs.net>
applied to tip/timers/hpet-percpu - thanks Steven.
I'm wondering, what is the compiler error you got? I havent seen any in
my testing.
Ingo
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI
2008-09-09 6:56 ` [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Ingo Molnar
@ 2008-09-09 0:13 ` Steven Noonan
0 siblings, 0 replies; 9+ messages in thread
From: Steven Noonan @ 2008-09-09 0:13 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Thomas Gleixner, H. Peter Anvin, Venki Pallipadi
On Tue, 9 Sep 2008, Ingo Molnar wrote:
>
> I'm wondering, what is the compiler error you got? I havent seen any in
> my testing.
>
> Ingo
>
Actually, it was technically a compiler warning and link error.
The compiler warning was "hpet_setup_msi_irq used but never defined", and
then when trying to link, it threw the linker error "undefined reference
to hpet_setup_msi_irq".
- Steven
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-09-09 7:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-08 23:19 [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Steven Noonan
2008-09-08 23:19 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Steven Noonan
2008-09-08 23:19 ` [PATCH] x86: unused variable in dma_alloc_coherent_gfp_flags() Steven Noonan
2008-09-09 6:57 ` Ingo Molnar
2008-09-09 7:04 ` FUJITA Tomonori
2008-09-09 7:13 ` Ingo Molnar
2008-09-09 6:51 ` [PATCH] init/initramfs.c: unused function when compiling without CONFIG_BLK_DEV_RAM Ingo Molnar
2008-09-09 6:56 ` [PATCH] x86: fix HPET compiler error when not using CONFIG_PCI_MSI Ingo Molnar
2008-09-09 0:13 ` Steven Noonan
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.