From 25b9d3d3e6aed9219e0b597a476008d6aa78d7bf Mon Sep 17 00:00:00 2001 From: meator Date: Tue, 12 Aug 2025 09:06:02 +0200 Subject: [PATCH] Fix missing whitespace in patches Such patches may be technically invalid. These errors also mess with 'git patch-id', which is undesirable. --- ...age-of-usbdevfs_urb-to-match-new-kernel-UAP.patch | 2 +- ...t-use-the-internal-glibc-header-sys-cdefs.h.patch | 12 ++++++------ patches/core/0011-core-include-missing-headers.patch | 4 ++-- .../0002-remove-glibc-internal-headers-cdefs.h.patch | 12 ++++++------ 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/patches/adb/0023-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch b/patches/adb/0023-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch index 991d3d83..d1395efe 100644 --- a/patches/adb/0023-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch +++ b/patches/adb/0023-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch @@ -49,7 +49,7 @@ index 7f926266..235a21be 100644 + usbdevfs_urb *urb_in; + usbdevfs_urb *urb_out; #pragma clang diagnostic pop - + bool urb_in_busy = false; @@ -303,7 +303,7 @@ static int usb_bulk_write(usb_handle* h, const void* data, int len) { std::unique_lock lock(h->mutex); diff --git a/patches/core/0009-Don-t-use-the-internal-glibc-header-sys-cdefs.h.patch b/patches/core/0009-Don-t-use-the-internal-glibc-header-sys-cdefs.h.patch index 169e435e..f8e3485b 100644 --- a/patches/core/0009-Don-t-use-the-internal-glibc-header-sys-cdefs.h.patch +++ b/patches/core/0009-Don-t-use-the-internal-glibc-header-sys-cdefs.h.patch @@ -505,23 +505,23 @@ index dbaeb93..0cc119c 100644 @@ -24,7 +23,9 @@ #include #include - + -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif - + static constexpr const char* CGROUPV2_HIERARCHY_NAME = "cgroup2"; [[deprecated]] static constexpr const char* CGROUPV2_CONTROLLER_NAME = "cgroup2"; @@ -40,7 +41,9 @@ bool SetTaskProfiles(pid_t tid, const std::vector& profiles, bool SetProcessProfiles(uid_t uid, pid_t pid, const std::vector& profiles); bool SetUserProfiles(uid_t uid, const std::vector& profiles); - + -__END_DECLS +#ifdef __cplusplus +} +#endif - + bool SetTaskProfiles(pid_t tid, std::initializer_list profiles, bool use_fd_cache = false); @@ -49,7 +52,9 @@ bool SetTaskProfiles(int tid, std::span profiles, @@ -880,12 +880,12 @@ index 16207e6..9a12458 100644 @@ -20,7 +20,9 @@ #include #include - + -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif - + const uint32_t TRUSTY_KEYMASTER_RECV_BUF_SIZE = 2 * 4096; const uint32_t TRUSTY_KEYMASTER_SEND_BUF_SIZE = @@ -35,6 +37,8 @@ keymaster_error_t translate_error(int err); diff --git a/patches/core/0011-core-include-missing-headers.patch b/patches/core/0011-core-include-missing-headers.patch index 80086278..82342dd5 100644 --- a/patches/core/0011-core-include-missing-headers.patch +++ b/patches/core/0011-core-include-missing-headers.patch @@ -27,11 +27,11 @@ index 7cb8a6b..070c8b0 100644 @@ -15,6 +15,8 @@ // #pragma once - + +#include + #include - + #include "android-base/unique_fd.h" -- 2.40.1 diff --git a/patches/libbase/0002-remove-glibc-internal-headers-cdefs.h.patch b/patches/libbase/0002-remove-glibc-internal-headers-cdefs.h.patch index 6b31d9fb..efd2b63a 100644 --- a/patches/libbase/0002-remove-glibc-internal-headers-cdefs.h.patch +++ b/patches/libbase/0002-remove-glibc-internal-headers-cdefs.h.patch @@ -14,22 +14,22 @@ index b47494b..c29845e 100644 +++ b/include/android-base/endian.h @@ -19,7 +19,7 @@ /* A cross-platform equivalent of bionic's . */ - + /* For __BIONIC__ and __GLIBC__ */ -#include +#include - + #if defined(__BIONIC__) - + diff --git a/include/android-base/properties.h b/include/android-base/properties.h index 021f466..53b8ea1 100644 --- a/include/android-base/properties.h +++ b/include/android-base/properties.h @@ -16,7 +16,6 @@ - + #pragma once - + -#include - + #include #include