]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools headers: Remove unneeded ignoring of warnings in unaligned.h
authorIan Rogers <irogers@google.com>
Thu, 16 Oct 2025 20:51:26 +0000 (13:51 -0700)
committerThomas Gleixner <tglx@kernel.org>
Wed, 14 Jan 2026 07:56:41 +0000 (08:56 +0100)
Now that get/put_unaligned() use memcpy() the -Wpacked and -Wattributes
warnings don't need disabling anymore.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20251016205126.2882625-5-irogers@google.com
tools/include/linux/unaligned.h

index 395a4464fe732e7a3d8f75130874c1baf58df2fe..d51ddafed1383888091fdfe249c86f59052a77b0 100644 (file)
@@ -6,9 +6,6 @@
  * This is the most generic implementation of unaligned accesses
  * and should work almost anywhere.
  */
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wpacked"
-#pragma GCC diagnostic ignored "-Wattributes"
 #include <vdso/unaligned.h>
 
 #define get_unaligned(ptr)     __get_unaligned_t(typeof(*(ptr)), (ptr))
@@ -143,6 +140,5 @@ static inline u64 get_unaligned_be48(const void *p)
 {
        return __get_unaligned_be48(p);
 }
-#pragma GCC diagnostic pop
 
 #endif /* __LINUX_UNALIGNED_H */