Messages in this thread Patch in this message | | | From | Alexander Beregalov <> | Subject | [PATCH 2/2] Staging: sep: fix warnings | Date | Tue, 18 Aug 2009 13:48:52 +0400 |
| |
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@gmail.com> --- 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
| |