[PATCH 2/2] Staging: sep: fix warnings

From: Alexander Beregalov
Date: Tue Aug 18 2009 - 05:55:44 EST


Fix this warnings
drivers/staging/sep/sep_driver.c:290: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
drivers/staging/sep/sep_driver.c:382: warning: unused variable 'sep'

Signed-off-by: Alexander Beregalov <a.beregalov@xxxxxxxxx>
---
drivers/staging/sep/sep_driver.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/sep/sep_driver.c b/drivers/staging/sep/sep_driver.c
index 531814b..e131c9d 100644
--- a/drivers/staging/sep/sep_driver.c
+++ b/drivers/staging/sep/sep_driver.c
@@ -287,7 +287,7 @@ static int sep_map_and_alloc_shared_area(struct sep_device *sep,
sep->shared_area = sep->shared_addr;
/* set the physical address of the shared area */
sep->shared_area_bus = sep->shared_bus;
- edbg("sep: shared_area %d bytes @%p (bus %08llx)\n",
+ edbg("sep: shared_area %lu bytes @%p (bus %08llx)\n",
size, sep->shared_addr, (unsigned long long)sep->shared_bus);
return 0;
}
@@ -379,7 +379,7 @@ end_function:
-------------------------------------------------------------*/
static int sep_release(struct inode *inode_ptr, struct file *filp)
{
- struct sep_driver *sep = filp->private_data;
+/* struct sep_driver *sep = filp->private_data; */
dbg("----------->SEP Driver: sep_release start\n");

#if 0 /*!SEP_DRIVER_POLLING_MODE */
--
1.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/