mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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
This commit is contained in:
parent
1d7cf255ee
commit
10a62a0611
1 changed files with 0 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue