android: removed asm-generic/errno-base.h
PATCH 1/1 android: removed asm-generic/errno-base.h
asm-generic/errno-base.h can be replaced by linux/errno.h and the file will still build correctly. It is an asm-generic file which should be avoided if possible.
--- drivers/android/binderfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/binderfs.c +1 -1
@@ -29,7 +29,7 @@#include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h> #include <uapi/linux/android/binder.h> #include <uapi/linux/android/binderfs.h>
---
base-commit: 606d9c29e71fbf52fcfd3fcc3ad92e444c8e1d47
change-id: 20231218-binderfs-a758e162e0ba
Best regards,
Signature · 1 line
Tanzir Hasan <[email protected]>
Quoted 28 lines · Tanzir Hasan
asm-generic/errno-base.hcan be replaced bylinux/errno.hand the file will still build correctly. It is an asm-generic file which should be avoided if possible.Suggested-by Al Viro <[email protected]>Signed-off-by Tanzir Hasan <[email protected]>--- drivers/android/binderfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binderfs.c +1
-2@@ -29,7 +29,7 @@#include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h> #include <uapi/linux/android/binder.h> #include <uapi/linux/android/binderfs.h> ---base-commit:
606d9c29e71fbf52fcfd3fcc3ad92e444c8e1d47
change-id: 20231218-binderfs-a758e162e0ba
Quoted 3 lines
Best regards,
Signature · 1 line
Tanzir Hasan <[email protected]>
Thanks,
--
Carlos Llamas
Le 26/12/2023 à 18:09, Tanzir Hasan a écrit :
Quoted 15 lines
asm-generic/errno-base.hcan be replaced bylinux/errno.hand the file will still build correctly. It is an asm-generic file which should be avoided if possible.Suggested-by Al Viro <[email protected]>Signed-off-by Tanzir Hasan <[email protected]>--- drivers/android/binderfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binderfs.c +0
-0
drivers/android/binderfs.c line 32
Quoted 5 lines
drivers/android/binderfs.c +1
-1@@ -29,7 +29,7 @@#include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h>
linux/errno.h is already included a few lines above.
CJ
Quoted 9 lines
drivers/android/binderfs.c +0
-1#include <uapi/linux/android/binder.h> #include <uapi/linux/android/binderfs.h> ---base-commit:
606d9c29e71fbf52fcfd3fcc3ad92e444c8e1d47
change-id: 20231218-binderfs-a758e162e0baBest regards,
Joel Fernandes
Reviewed-byQuoted 11 lines · Christophe JAILLET
Le 26/12/2023 à 18:09, Tanzir Hasan a écrit :
Quoted 10 lines
asm-generic/errno-base.hcan be replaced bylinux/errno.hand the file will still build correctly. It is an asm-generic file which should be avoided if possible.Suggested-by Al Viro <[email protected]>Signed-off-by Tanzir Hasan <[email protected]>---
drivers/android/binderfs.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
drivers/android/binderfs.c line 32
Quoted 10 lines
drivers/android/binderfs.c +1
-1@@ -29,7 +29,7 @@ #include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h>
linux/errno.his already included a few lines above.
Good point! With that nit addressed:
Thanks.
Carlos Llamas
maintainerQuoted 24 lines · Christophe JAILLET
Le 26/12/2023 à 18:09, Tanzir Hasan a écrit :
Quoted 15 lines
asm-generic/errno-base.hcan be replaced bylinux/errno.hand the file will still build correctly. It is an asm-generic file which should be avoided if possible.Suggested-by Al Viro <[email protected]>Signed-off-by Tanzir Hasan <[email protected]>--- drivers/android/binderfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binderfs.c +0
-0drivers/android/binderfs.c line 32
Quoted 5 lines
drivers/android/binderfs.c +1
-1@@ -29,7 +29,7 @@#include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h>
linux/errno.his already included a few lines above.
Quoted 2 lines
CJ
Good catch! Then we should just drop the errno-base.h include.
--
Carlos Llamas
Quoted 26 lines · Carlos Llamas
Quoted 24 lines · Christophe JAILLET
Quoted 15 lines · Tanzir Hasan
asm-generic/errno-base.hcan be replaced bylinux/errno.hand the file will still build correctly. It is an asm-generic file which should be avoided if possible.Suggested-by Al Viro <[email protected]>Signed-off-by Tanzir Hasan <[email protected]>--- drivers/android/binderfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binderfs.c +0
-0drivers/android/binderfs.c line 32
Quoted 5 lines
drivers/android/binderfs.c +1
-1@@ -29,7 +29,7 @@#include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h>
linux/errno.his already included a few lines above.
Quoted 7 lines
Quoted 2 lines
CJ
Good catch! Then we should just drop the
errno-base.hinclude.--
Carlos Llamas
Thanks for bringing that up. I will correct it and just remove the asm-generic header instead.
Best,
Tanzir
Greg Kroah-Hartman
maintainerQuoted 30 lines · Tanzir Hasan
Quoted 29 lines · Carlos Llamas
Quoted 26 lines · Christophe JAILLET
Quoted 15 lines · Tanzir Hasan
asm-generic/errno-base.hcan be replaced bylinux/errno.hand the file will still build correctly. It is an asm-generic file which should be avoided if possible.Suggested-by Al Viro <[email protected]>Signed-off-by Tanzir Hasan <[email protected]>--- drivers/android/binderfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/android/binderfs.c +0
-0drivers/android/binderfs.c line 32
Quoted 5 lines
drivers/android/binderfs.c +1
-1@@ -29,7 +29,7 @@#include <linux/uaccess.h> #include <linux/user_namespace.h> #include <linux/xarray.h> -#include <uapi/asm-generic/errno-base.h> +#include <linux/errno.h>
linux/errno.his already included a few lines above.CJ
Quoted 7 lines
Quoted 4 lines
Good catch! Then we should just drop the
errno-base.hinclude.--
Carlos LlamasThanks for bringing that up. I will correct it and just remove the asm-generic header instead.
Please just send a patch removing the duplicate as I have already applied this one.
thanks,
gre gk-h