From: madhuparnabhowmik04@gmail.com (Madhuparna Bhowmik)
Subject: [Linux-kernel-mentees] [PATCH] Staging: media: ipu3: Changed unsigned long int to unsigned long
Date: Sat, 28 Sep 2019 00:31:27 +0530 [thread overview]
Message-ID: <20190927190123.GA9230@madhuparna-HP-Notebook> (raw)
Message-ID: <20190927190127.Xvm50HsjudycbBhnVzG3YKHldazTY4FSHkds5ACK4jo@z> (raw)
This patch fixes the following warning:
WARNING: Prefer 'unsigned long' over 'unsigned long int' as the int is unnecessary
Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik04 at gmail.com>
---
drivers/staging/media/ipu3/ipu3-mmu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/media/ipu3/ipu3-mmu.c b/drivers/staging/media/ipu3/ipu3-mmu.c
index 3d969b0522ab..5f3ff964f3e7 100644
--- a/drivers/staging/media/ipu3/ipu3-mmu.c
+++ b/drivers/staging/media/ipu3/ipu3-mmu.c
@@ -130,7 +130,7 @@ static u32 *imgu_mmu_alloc_page_table(u32 pteval)
for (pte = 0; pte < IPU3_PT_PTES; pte++)
pt[pte] = pteval;
- set_memory_uc((unsigned long int)pt, IPU3_PT_ORDER);
+ set_memory_uc((unsigned long)pt, IPU3_PT_ORDER);
return pt;
}
@@ -141,7 +141,7 @@ static u32 *imgu_mmu_alloc_page_table(u32 pteval)
*/
static void imgu_mmu_free_page_table(u32 *pt)
{
- set_memory_wb((unsigned long int)pt, IPU3_PT_ORDER);
+ set_memory_wb((unsigned long)pt, IPU3_PT_ORDER);
free_page((unsigned long)pt);
}
--
2.17.1
next reply other threads:[~2019-09-27 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 19:01 madhuparnabhowmik04 [this message]
2019-09-27 19:01 ` [Linux-kernel-mentees] [PATCH] Staging: media: ipu3: Changed unsigned long int to unsigned long Madhuparna Bhowmik
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=20190927190123.GA9230@madhuparna-HP-Notebook \
--to=madhuparnabhowmik04@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).