Skip to contentSkip to conversation

android: removed asm-generic/errno-base.h

PATCH In review Tanzir Hasan 5 participants 7 messages Dec 26, 2023 – Jan 4, 2024 Android drivers

lore
Share & tools
lore
#0 lore raw

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
index 1224ab7aa070..d04ff6029480 100644
@@ -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]>
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 28 lines · Tanzir Hasan

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 -2
index 1224ab7aa070..d04ff6029480 100644
@@ -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

#2 lore raw
In reply to Tanzir Hasan

Le 26/12/2023 à 18:09, Tanzir Hasan a écrit :

Quoted 15 lines

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 +0 -0
index 1224ab7aa070..d04ff6029480 100644

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

Best regards,

Reviewed-by
#3 lore raw
Quoted 11 lines · Christophe JAILLET

Le 26/12/2023 à 18:09, Tanzir Hasan a écrit :

Quoted 10 lines

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(-)
Quoted 13 lines

drivers/android/binderfs.c line 32

Quoted 10 lines
drivers/android/binderfs.c +1 -1
index 1224ab7aa070..d04ff6029480 100644
@@ -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.

Good point! With that nit addressed:

Thanks.

maintainer
#4 lore raw
In reply to Christophe JAILLET
Quoted 24 lines · Christophe JAILLET

Le 26/12/2023 à 18:09, Tanzir Hasan a écrit :

Quoted 15 lines

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 +0 -0
index 1224ab7aa070..d04ff6029480 100644

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.

Quoted 2 lines

CJ

Good catch! Then we should just drop the errno-base.h include.

--
Carlos Llamas

#5 lore raw
Quoted 26 lines · Carlos Llamas
Quoted 24 lines · Christophe JAILLET
Quoted 15 lines · Tanzir Hasan

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 +0 -0
index 1224ab7aa070..d04ff6029480 100644

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.

Quoted 7 lines
Quoted 2 lines

CJ

Good catch! Then we should just drop the errno-base.h include.

--
Carlos Llamas

Thanks for bringing that up. I will correct it and just remove the asm-generic header instead.

Best,
Tanzir

#6 lore raw
Quoted 30 lines · Tanzir Hasan
Quoted 29 lines · Carlos Llamas
Quoted 26 lines · Christophe JAILLET
Quoted 15 lines · Tanzir Hasan

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 +0 -0
index 1224ab7aa070..d04ff6029480 100644

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 7 lines
Quoted 4 lines

Good catch! Then we should just drop the errno-base.h include.

--
Carlos Llamas

Thanks 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