From: Alexander Beregalov <a.beregalov@gmail.com>
To: gregkh@suse.de, linux-kernel@vger.kernel.org
Cc: Alexander Beregalov <a.beregalov@gmail.com>
Subject: [PATCH 2/2] Staging: sep: fix warnings
Date: Tue, 18 Aug 2009 13:48:52 +0400 [thread overview]
Message-ID: <1250588932-7595-2-git-send-email-a.beregalov@gmail.com> (raw)
In-Reply-To: <1250588932-7595-1-git-send-email-a.beregalov@gmail.com>
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
next prev parent reply other threads:[~2009-08-18 9:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 9:48 [PATCH 1/2] Staging: sep: should depend on PCI Alexander Beregalov
2009-08-18 9:48 ` Alexander Beregalov [this message]
2009-08-18 17:35 ` [PATCH 2/2] Staging: sep: fix warnings Greg KH
2009-08-18 17:34 ` [PATCH 1/2] Staging: sep: should depend on PCI Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1250588932-7595-2-git-send-email-a.beregalov@gmail.com \
--to=a.beregalov@gmail.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome