diff mbox

[OPW,kernel] Staging: dgap: replacing <asm/uaccess.h> with <linux/access.h>

Message ID 20131022153719.GA4738@Ashvini
State New, archived
Headers show

Commit Message

Ashvini Varatharaj Oct. 22, 2013, 3:37 p.m. UTC
Fix checkpatch warning: WARNING: Use #include <linux/uaccess.h> instead
of <asm/uaccess.h>

Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com>
---
 drivers/staging/dgap/dgap_driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lisa Nguyen Oct. 22, 2013, 8:32 p.m. UTC | #1
On Tue, Oct 22, 2013 at 8:37 AM, Ashvini Varatharaj
<ashvinivaratharaj@gmail.com> wrote:
> Fix checkpatch warning: WARNING: Use #include <linux/uaccess.h> instead
> of <asm/uaccess.h>
>
> Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com>
> ---
Looks fine to me.

Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>

>  drivers/staging/dgap/dgap_driver.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/dgap/dgap_driver.c b/drivers/staging/dgap/dgap_driver.c
> index 4c1515e..f4261fa 100644
> --- a/drivers/staging/dgap/dgap_driver.c
> +++ b/drivers/staging/dgap/dgap_driver.c
> @@ -36,7 +36,7 @@
>  #include <linux/pci.h>
>  #include <linux/delay.h>       /* For udelay */
>  #include <linux/slab.h>
> -#include <asm/uaccess.h>       /* For copy_from_user/copy_to_user */
> +#include <linux/uaccess.h>     /* For copy_from_user/copy_to_user */
>  #include <linux/sched.h>
>
>  #include "dgap_driver.h"
> --
> 1.7.9.5
>
> --
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Josh Triplett Oct. 22, 2013, 8:54 p.m. UTC | #2
On Tue, Oct 22, 2013 at 09:07:20PM +0530, Ashvini Varatharaj wrote:
> Fix checkpatch warning: WARNING: Use #include <linux/uaccess.h> instead
> of <asm/uaccess.h>
> 
> Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  drivers/staging/dgap/dgap_driver.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/dgap/dgap_driver.c b/drivers/staging/dgap/dgap_driver.c
> index 4c1515e..f4261fa 100644
> --- a/drivers/staging/dgap/dgap_driver.c
> +++ b/drivers/staging/dgap/dgap_driver.c
> @@ -36,7 +36,7 @@
>  #include <linux/pci.h>
>  #include <linux/delay.h>	/* For udelay */
>  #include <linux/slab.h>
> -#include <asm/uaccess.h>	/* For copy_from_user/copy_to_user */
> +#include <linux/uaccess.h>	/* For copy_from_user/copy_to_user */
>  #include <linux/sched.h>
>  
>  #include "dgap_driver.h"
> -- 
> 1.7.9.5
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
diff mbox

Patch

diff --git a/drivers/staging/dgap/dgap_driver.c b/drivers/staging/dgap/dgap_driver.c
index 4c1515e..f4261fa 100644
--- a/drivers/staging/dgap/dgap_driver.c
+++ b/drivers/staging/dgap/dgap_driver.c
@@ -36,7 +36,7 @@ 
 #include <linux/pci.h>
 #include <linux/delay.h>	/* For udelay */
 #include <linux/slab.h>
-#include <asm/uaccess.h>	/* For copy_from_user/copy_to_user */
+#include <linux/uaccess.h>	/* For copy_from_user/copy_to_user */
 #include <linux/sched.h>
 
 #include "dgap_driver.h"