All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] quota:  fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h>
@ 2012-05-28 15:40 Jeff Liu
  2012-05-29 13:01 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Liu @ 2012-05-28 15:40 UTC (permalink / raw)
  To: linux-fsdevel@vger.kernel.org; +Cc: Jan Kara

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] quota:  fix checkpatch.pl warnning by replacing <asm/uaccess.h> with <linux/uaccess.h>
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2012-05-29 13:01 UTC (permalink / raw)
  To: Jeff Liu; +Cc: linux-fsdevel@vger.kernel.org, Jan Kara

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-29 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.