mirror of
https://github.com/torvalds/linux
synced 2024-10-04 18:33:42 +00:00
perf tools headers: update the asm-generic/unaligned.h copy with the kernel sources
To pick up the changes in:
1ab33c0314
("asm-generic: make sparse happy with odd-sized put_unaligned_*()")
Addressing this perf tools build warning:
Warning: Kernel ABI header differences:
diff -u tools/include/asm-generic/unaligned.h include/asm-generic/unaligned.h
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/Zbp9I7rmFj1Owhug@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
1f8c43b09e
commit
fdd0ae72b3
|
@ -105,9 +105,9 @@ static inline u32 get_unaligned_le24(const void *p)
|
|||
|
||||
static inline void __put_unaligned_be24(const u32 val, u8 *p)
|
||||
{
|
||||
*p++ = val >> 16;
|
||||
*p++ = val >> 8;
|
||||
*p++ = val;
|
||||
*p++ = (val >> 16) & 0xff;
|
||||
*p++ = (val >> 8) & 0xff;
|
||||
*p++ = val & 0xff;
|
||||
}
|
||||
|
||||
static inline void put_unaligned_be24(const u32 val, void *p)
|
||||
|
@ -117,9 +117,9 @@ static inline void put_unaligned_be24(const u32 val, void *p)
|
|||
|
||||
static inline void __put_unaligned_le24(const u32 val, u8 *p)
|
||||
{
|
||||
*p++ = val;
|
||||
*p++ = val >> 8;
|
||||
*p++ = val >> 16;
|
||||
*p++ = val & 0xff;
|
||||
*p++ = (val >> 8) & 0xff;
|
||||
*p++ = (val >> 16) & 0xff;
|
||||
}
|
||||
|
||||
static inline void put_unaligned_le24(const u32 val, void *p)
|
||||
|
@ -129,12 +129,12 @@ static inline void put_unaligned_le24(const u32 val, void *p)
|
|||
|
||||
static inline void __put_unaligned_be48(const u64 val, u8 *p)
|
||||
{
|
||||
*p++ = val >> 40;
|
||||
*p++ = val >> 32;
|
||||
*p++ = val >> 24;
|
||||
*p++ = val >> 16;
|
||||
*p++ = val >> 8;
|
||||
*p++ = val;
|
||||
*p++ = (val >> 40) & 0xff;
|
||||
*p++ = (val >> 32) & 0xff;
|
||||
*p++ = (val >> 24) & 0xff;
|
||||
*p++ = (val >> 16) & 0xff;
|
||||
*p++ = (val >> 8) & 0xff;
|
||||
*p++ = val & 0xff;
|
||||
}
|
||||
|
||||
static inline void put_unaligned_be48(const u64 val, void *p)
|
||||
|
|
Loading…
Reference in a new issue