From: Jeff Liu <jeff.liu@oracle.com>
To: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Cc: Jan Kara <jack@suse.cz>
Subject: [PATCH] quota: fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h>
Date: Mon, 28 May 2012 23:40:17 +0800 [thread overview]
Message-ID: <4FC39C61.3020608@oracle.com> (raw)
Hello,
checkpatch.pl raise warnning info when I checking a patch for quota stuff which was shown as following:
"WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>"
Below patch can fix it, thanks.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
fs/quota/dquot.c | 2 +-
fs/quota/quota.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 10cbe84..0c541dc 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -78,7 +78,7 @@
#include <linux/quotaops.h>
#include "../internal.h" /* ugh */
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
/*
* There are three quota SMP locks. dq_list_lock protects all lists with quotas
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 40f381e..6943e1d 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -9,7 +9,7 @@
#include <linux/namei.h>
#include <linux/slab.h>
#include <asm/current.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
#include <linux/kernel.h>
#include <linux/security.h>
#include <linux/syscalls.h>
--
1.7.9
next reply other threads:[~2012-05-28 15:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 15:40 Jeff Liu [this message]
2012-05-29 13:01 ` [PATCH] quota: fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h> Jan Kara
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=4FC39C61.3020608@oracle.com \
--to=jeff.liu@oracle.com \
--cc=jack@suse.cz \
--cc=linux-fsdevel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.