Re: Linux 2.6.26-rc5

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Alejandro Riveira <ariveira@...>, Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Thursday, June 5, 2008 - 12:32 pm

On Thursday 05 June 2008 10:19:01 am Linus Torvalds wrote:

Geez, I dreamed about this very question last night, but forgot to
take care this morning.

Actually, I didn't get a warning (gcc 4.1.3), but your way is better.
Here's the updated patch if you haven't fixed it already:



PNP: skip UNSET MEM resources as well as DISABLED ones

We don't need to reserve "unset" resources.  Trying to reserve
them results in messages like this, which are ugly but harmless:

    system 00:08: iomem range 0x0-0x0 could not be reserved

Future PNP patches will remove use of IORESOURCE_UNSET, but
we still need it for now.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

Index: work11/drivers/pnp/system.c
===================================================================
--- work11.orig/drivers/pnp/system.c	2008-06-05 09:46:33.000000000 -0600
+++ work11/drivers/pnp/system.c	2008-06-05 10:29:10.000000000 -0600
@@ -81,7 +81,7 @@ static void reserve_resources_of_dev(str
 	}
 
 	for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_MEM, i)); i++) {
-		if (res->flags & IORESOURCE_DISABLED)
+		if (res->flags & (IORESOURCE_UNSET | IORESOURCE_DISABLED))
 			continue;
 
 		reserve_range(dev, res->start, res->end, 0);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Linux 2.6.26-rc5, Linus Torvalds, (Wed Jun 4, 11:36 pm)
Re: Linux 2.6.26-rc5, Jesper Krogh, (Sat Jun 7, 3:52 pm)
Re: Linux 2.6.26-rc5, Jesper Krogh, (Sat Jun 7, 3:44 pm)
Re: Linux 2.6.26-rc5, Frans Pop, (Sat Jun 7, 5:50 pm)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Sun Jun 8, 11:39 pm)
Re: Linux 2.6.26-rc5, Frans Pop, (Mon Jun 9, 6:01 am)
Re: Linux 2.6.26-rc5, Alex Romosan, (Thu Jun 5, 10:47 am)
Re: Linux 2.6.26-rc5, Ben Dooks, (Thu Jun 5, 10:43 am)
Re: Linux 2.6.26-rc5, Linus Torvalds, (Fri Jun 6, 2:35 pm)
ACPI pull for 2.6.26?, Adrian Bunk, (Tue Jun 10, 8:57 am)
Re: ACPI pull for 2.6.26?, Len Brown, (Tue Jun 10, 11:23 am)
Re: ACPI pull for 2.6.26?, Adrian Bunk, (Tue Jun 10, 11:39 am)
Re: Linux 2.6.26-rc5, Alejandro Riveira , (Thu Jun 5, 9:03 am)
Re: Linux 2.6.26-rc5, Linus Torvalds, (Thu Jun 5, 10:54 am)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Thu Jun 5, 12:12 pm)
Re: Linux 2.6.26-rc5, Linus Torvalds, (Thu Jun 5, 12:19 pm)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Thu Jun 5, 12:32 pm)
Re: Linux 2.6.26-rc5, Bjorn Helgaas, (Thu Jun 5, 11:12 am)
Re: Linux 2.6.26-rc5, Olaf Hering, (Thu Jun 5, 7:24 am)
Re: Linux 2.6.26-rc5, Alan Cox, (Thu Jun 5, 8:42 am)
Re: Linux 2.6.26-rc5 (G5 SATA broken), Hugh Dickins, (Thu Jun 5, 8:09 am)
Re: Linux 2.6.26-rc5 (G5 SATA broken), Benjamin Herrenschmidt, (Fri Jun 6, 12:36 am)
Re: Linux 2.6.26-rc5 (G5 SATA broken), Alan Cox, (Thu Jun 5, 8:54 am)
[PATCH] libata: fix G5 SATA broken on -rc5, Hugh Dickins, (Thu Jun 5, 9:44 am)
Re: [PATCH] libata: fix G5 SATA broken on -rc5, Olaf Hering, (Thu Jun 5, 10:45 am)