From 74465645cdb4391b9fc95d12fd750a88012ad479 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Mon, 21 Jan 2013 15:28:52 -0700 Subject: NTB: Fix Sparse Warnings Address the sparse warnings and resulting fallout Signed-off-by: Jon Mason Signed-off-by: Greg Kroah-Hartman --- drivers/ntb/ntb_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/ntb/ntb_hw.c') diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 6d8e937670c4..f802e7c92356 100644 --- a/drivers/ntb/ntb_hw.c +++ b/drivers/ntb/ntb_hw.c @@ -104,7 +104,7 @@ MODULE_DEVICE_TABLE(pci, ntb_pci_tbl); * RETURNS: An appropriate -ERRNO error value on error, or zero for success. */ int ntb_register_event_callback(struct ntb_device *ndev, - void (*func)(void *handle, unsigned int event)) + void (*func)(void *handle, enum ntb_hw_event event)) { if (ndev->event_cb) return -EINVAL; @@ -343,7 +343,7 @@ int ntb_read_remote_spad(struct ntb_device *ndev, unsigned int idx, u32 *val) * * RETURNS: pointer to virtual address, or NULL on error. */ -void *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw) +void __iomem *ntb_get_mw_vbase(struct ntb_device *ndev, unsigned int mw) { if (mw > NTB_NUM_MW) return NULL; -- cgit v1.2.3