mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
There are several architectures that just duplicate the contents of asm-generic/unaligned.h, so change those over to use the file directly, to make future modifications easier. The exceptions are: - arm32 sets HAVE_EFFICIENT_UNALIGNED_ACCESS, but wants the unaligned-struct version - ppc64le disables HAVE_EFFICIENT_UNALIGNED_ACCESS but includes the access-ok version - most m68k also uses the access-ok version without setting HAVE_EFFICIENT_UNALIGNED_ACCESS. - sh4a has a custom inline asm version - openrisc is the only one using the memmove version that generally leads to worse code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
14 lines
307 B
C
14 lines
307 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_PARISC_UNALIGNED_H
|
|
#define _ASM_PARISC_UNALIGNED_H
|
|
|
|
#include <asm-generic/unaligned.h>
|
|
|
|
#ifdef __KERNEL__
|
|
struct pt_regs;
|
|
void handle_unaligned(struct pt_regs *regs);
|
|
int check_unaligned(struct pt_regs *regs);
|
|
#endif
|
|
|
|
#endif /* _ASM_PARISC_UNALIGNED_H */
|