From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759574Ab1IIVmh (ORCPT ); Fri, 9 Sep 2011 17:42:37 -0400 Received: from mail209.messagelabs.com ([216.82.255.3]:13392 "EHLO mail209.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755358Ab1IIVmg (ORCPT ); Fri, 9 Sep 2011 17:42:36 -0400 X-Env-Sender: hartleys@visionengravers.com X-Msg-Ref: server-3.tower-209.messagelabs.com!1315604555!11129810!1 X-Originating-IP: [216.166.12.72] X-StarScan-Version: 6.3.6; banners=-,-,- X-VirusChecked: Checked From: H Hartley Sweeten To: Linux Kernel Subject: [PATCH] probe_roms.c: quiet sparse noise and fix return type of pci_map_biosrom Date: Fri, 9 Sep 2011 14:42:24 -0700 User-Agent: KMail/1.9.9 CC: , , , , , , , , MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <201109091442.24741.hartleys@visionengravers.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function pci_map_biosrom is declared in as returning a void __iomem * but is implemented in the code to return a void *. Include to pick up the declarations and fix the return type of pci_map_biosrom to match the declaration. This quiets the following sparse noise: warning: incorrect type in return expression (different address spaces) expected void * got void [noderef] * warning: symbol 'pci_map_biosrom' was not declared. Should it be static? warning: symbol 'pci_unmap_biosrom' was not declared. Should it be static? warning: symbol 'pci_biosrom_size' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paul Gortmaker Cc: Jiri Kosina Cc: Dave Jiang Cc: Joe Perches Cc: Dan Williams --- diff --git a/arch/x86/kernel/probe_roms.c b/arch/x86/kernel/probe_roms.c index 34e06e8..c0a8915 100644 --- a/arch/x86/kernel/probe_roms.c +++ b/arch/x86/kernel/probe_roms.c @@ -19,6 +19,7 @@ #include #include #include +#include static struct resource system_rom_resource = { .name = "System ROM", @@ -149,7 +150,7 @@ static struct resource *find_oprom(struct pci_dev *pdev) return oprom; } -void *pci_map_biosrom(struct pci_dev *pdev) +void __iomem *pci_map_biosrom(struct pci_dev *pdev) { struct resource *oprom = find_oprom(pdev);