From: Simon Horman Subject: [rfc 01/18] Make register_real_device() and unregister_real_device() static Date: Tue, 17 Feb 2009 20:07:49 +1100 Message-ID: <20090217091545.027745853@vergenet.net> References: <20090217090748.580007796@vergenet.net> Return-path: Content-Disposition: inline; filename=ioemu-static-register_real_device.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Ian Jackson List-Id: xen-devel@lists.xenproject.org Make register_real_device() and unregister_real_device() static as they are only used inside hw/pass-through.c Signed-off-by: Simon Horman Index: ioemu-remote/hw/pass-through.c =================================================================== --- ioemu-remote.orig/hw/pass-through.c 2009-02-17 17:27:27.000000000 +0900 +++ ioemu-remote/hw/pass-through.c 2009-02-17 17:27:29.000000000 +0900 @@ -3068,7 +3068,7 @@ static int pt_msixctrl_reg_write(struct return 0; } -struct pt_dev * register_real_device(PCIBus *e_bus, +static struct pt_dev * register_real_device(PCIBus *e_bus, const char *e_dev_name, int e_devfn, uint8_t r_bus, uint8_t r_dev, uint8_t r_func, uint32_t machine_irq, struct pci_access *pci_access, char *opt) @@ -3254,7 +3254,7 @@ out: return assigned_device; } -int unregister_real_device(int php_slot) +static int unregister_real_device(int php_slot) { struct php_dev *php_dev; struct pci_dev *pci_dev; -- -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en