Re: [PATCH] quota: fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux