All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Jeff Liu <jeff.liu@oracle.com>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	Jan Kara <jack@suse.cz>
Subject: Re: [PATCH] quota:  fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h>
Date: Tue, 29 May 2012 15:01:12 +0200	[thread overview]
Message-ID: <20120529130112.GC23991@quack.suse.cz> (raw)
In-Reply-To: <4FC39C61.3020608@oracle.com>

On Mon 28-05-12 23:40:17, Jeff Liu wrote:
> 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.
  Thanks. Merged into my tree.

								Honza

> 
> 
> 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

      reply	other threads:[~2012-05-29 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 15:40 [PATCH] quota: fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h> Jeff Liu
2012-05-29 13:01 ` Jan Kara [this message]

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=20120529130112.GC23991@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=jeff.liu@oracle.com \
    --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.