android/binder.h: add linux/android/binder(fs).h to UAPI compile-test coverage
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 10 Feb 2022 02:11:26 +0000 (11:11 +0900)
committerArnd Bergmann <arnd@arndb.de>
Thu, 17 Feb 2022 08:09:37 +0000 (09:09 +0100)
linux/android/binder.h and linux/android/binderfs.h are currently
excluded from the UAPI compile-test because of the errors like follows:

    HDRTEST usr/include/linux/android/binder.h
  In file included from <command-line>:
  ./usr/include/linux/android/binder.h:291:9: error: unknown type name ‘pid_t’
    291 |         pid_t           sender_pid;
        |         ^~~~~
  ./usr/include/linux/android/binder.h:292:9: error: unknown type name ‘uid_t’
    292 |         uid_t           sender_euid;
        |         ^~~~~

The errors can be fixed by replacing {pid,uid}_t with __kernel_{pid,uid}_t.

Then, remove the no-header-test entries from user/include/Makefile.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/uapi/linux/android/binder.h
usr/include/Makefile

index 3246f2c746969c1c35bfc3780c94a4ab516f7a26..11157fae8a8e7693319598ac37fc187a40ce5ff2 100644 (file)
@@ -288,8 +288,8 @@ struct binder_transaction_data {
 
        /* General information about the transaction. */
        __u32           flags;
-       pid_t           sender_pid;
-       uid_t           sender_euid;
+       __kernel_pid_t  sender_pid;
+       __kernel_uid_t  sender_euid;
        binder_size_t   data_size;      /* number of bytes of data */
        binder_size_t   offsets_size;   /* number of bytes of offsets */
 
index 1aa725a3cbbc12a814340e2ec78cb8b85dc8122c..0872877c94573450010462eb33957cd449384504 100644 (file)
@@ -23,8 +23,6 @@ override c_flags = $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I$(objtree)/usr/include
 no-header-test += asm/ucontext.h
 no-header-test += drm/vmwgfx_drm.h
 no-header-test += linux/am437x-vpfe.h
-no-header-test += linux/android/binder.h
-no-header-test += linux/android/binderfs.h
 no-header-test += linux/coda.h
 no-header-test += linux/cyclades.h
 no-header-test += linux/errqueue.h