Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools headers: Remove unneeded ignoring of warnings in unaligned.h

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

authored by

Ian Rogers and committed by
Thomas Gleixner
10a62a06 1d7cf255

-4
-4
tools/include/linux/unaligned.h
··· 6 6 * This is the most generic implementation of unaligned accesses 7 7 * and should work almost anywhere. 8 8 */ 9 - #pragma GCC diagnostic push 10 - #pragma GCC diagnostic ignored "-Wpacked" 11 - #pragma GCC diagnostic ignored "-Wattributes" 12 9 #include <vdso/unaligned.h> 13 10 14 11 #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) ··· 140 143 { 141 144 return __get_unaligned_be48(p); 142 145 } 143 - #pragma GCC diagnostic pop 144 146 145 147 #endif /* __LINUX_UNALIGNED_H */