Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751887AbWJ2UH5 (ORCPT ); Sun, 29 Oct 2006 15:07:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751906AbWJ2UH4 (ORCPT ); Sun, 29 Oct 2006 15:07:56 -0500 Received: from outbound0.mx.meer.net ([209.157.153.23]:1291 "EHLO outbound0.sv.meer.net") by vger.kernel.org with ESMTP id S1751887AbWJ2UHy (ORCPT ); Sun, 29 Oct 2006 15:07:54 -0500 Subject: Re: [PATCH 1/4] Prep for paravirt: Be careful about touching BIOS address space From: Don Mullis To: Rusty Russell Cc: Andrew Morton , lkml - Kernel Mailing List , virtualization In-Reply-To: <1161920535.17807.33.camel@localhost.localdomain> References: <1161920325.17807.29.camel@localhost.localdomain> <1161920535.17807.33.camel@localhost.localdomain> Content-Type: text/plain Date: Sun, 29 Oct 2006 12:01:09 -0800 Message-Id: <1162152070.23311.27.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1082 Lines: 32 Rusty Russell wrote: > @@ -301,7 +302,7 @@ static struct pci_raw_ops pci_bios_acces > > static struct pci_raw_ops * __devinit pci_find_bios(void) > { > - union bios32 *check; > + union bios32 *check, sig; This "sig" definition has no references, and is shadowed by the definition below. > @@ -314,6 +315,10 @@ static struct pci_raw_ops * __devinit pc > for (check = (union bios32 *) __va(0xe0000); > check <= (union bios32 *) __va(0xffff0); > ++check) { > + long sig; > + if (__get_user(sig, &check->fields.signature)) But, no complaint from gcc. Trying to elicit a complaint by configuring CC_OPTIMIZE_FOR_SIZE='n' breaks the build with: include/asm/desc.h: In function 'set_ldt': include/asm/desc.h:92: error: implicit declaration of function 'write_gdt_entry' See reply to "[PATCH 3/4]" for a fix. DM - 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/