Skip to content

Commit 10a62a0

Browse files
captain5050Thomas Gleixner
authored andcommitted
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
1 parent 1d7cf25 commit 10a62a0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tools/include/linux/unaligned.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* This is the most generic implementation of unaligned accesses
77
* and should work almost anywhere.
88
*/
9-
#pragma GCC diagnostic push
10-
#pragma GCC diagnostic ignored "-Wpacked"
11-
#pragma GCC diagnostic ignored "-Wattributes"
129
#include <vdso/unaligned.h>
1310

1411
#define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr))
@@ -143,6 +140,5 @@ static inline u64 get_unaligned_be48(const void *p)
143140
{
144141
return __get_unaligned_be48(p);
145142
}
146-
#pragma GCC diagnostic pop
147143

148144
#endif /* __LINUX_UNALIGNED_H */

0 commit comments

Comments
 (0)