Skip to contentSkip to conversation

media: media.h: remove unneeded <stdint.h> inclusion

PATCH In review Masahiro Yamada 2 participants 2 messages Mar 28, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: media.h: remove unneeded <stdint.h> inclusion

Commit b3b7a9f138b7 ("[media] media-device: Use u64 ints for pointers") added this #include <stdint.h>, presumably in order to use uintptr_t.

Now that it is gone, we can compile this for userspace without <stdint.h>.

---

 include/uapi/linux/media.h | 3 ---
 1 file changed, 3 deletions(-)
include/uapi/linux/media.h +0 -3
index 200fa8462b90..5754dce922a7 100644
@@ -20,9 +20,6 @@
 #ifndef __LINUX_MEDIA_H
 #define __LINUX_MEDIA_H
 
-#ifndef __KERNEL__
-#include <stdint.h>
-#endif
 #include <linux/ioctl.h>
 #include <linux/types.h>
 
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Yamada-san,

Thank you for the patch.

Quoted 6 lines · Masahiro Yamada

Commit b3b7a9f138b7 ("[media] media-device: Use u64 ints for pointers") added this #include <stdint.h>, presumably in order to use uintptr_t.

Now that it is gone, we can compile this for userspace without <stdint.h>.

Quoted 19 lines

---

 include/uapi/linux/media.h | 3 ---
 1 file changed, 3 deletions(-)
include/uapi/linux/media.h +0 -3
index 200fa8462b90..5754dce922a7 100644
@@ -20,9 +20,6 @@
 #ifndef __LINUX_MEDIA_H
 #define __LINUX_MEDIA_H
 
-#ifndef __KERNEL__
-#include <stdint.h>
-#endif
 #include <linux/ioctl.h>
 #include <linux/types.h>
 
Signature · 3 lines
Regards,

Laurent Pinchart