summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/unaligned.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-10-03 01:42:28 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2024-10-03 01:42:28 +0200
commit7ec462100ef9142344ddbf86f2c3008b97acddbe (patch)
tree13336f4eb789467c9811987e964e4aaf5be0b4c8 /arch/arc/kernel/unaligned.h
parentMerge tag 'hid-for-linus-2024090201' of git://git.kernel.org/pub/scm/linux/ke... (diff)
parentmove asm/unaligned.h to linux/unaligned.h (diff)
downloadlinux-7ec462100ef9142344ddbf86f2c3008b97acddbe.tar.xz
linux-7ec462100ef9142344ddbf86f2c3008b97acddbe.zip
Merge tag 'pull-work.unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull generic unaligned.h cleanups from Al Viro: "Get rid of architecture-specific <asm/unaligned.h> includes, replacing them with a single generic <linux/unaligned.h> header file. It's the second largest (after asm/io.h) class of asm/* includes, and all but two architectures actually end up using exact same file. Massage the remaining two (arc and parisc) to do the same and just move the thing to from asm-generic/unaligned.h to linux/unaligned.h" [ This is one of those things that we're better off doing outside the merge window, and would only cause extra conflict noise if it was in linux-next for the next release due to all the trivial #include line updates. Rip off the band-aid. - Linus ] * tag 'pull-work.unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: move asm/unaligned.h to linux/unaligned.h arc: get rid of private asm/unaligned.h parisc: get rid of private asm/unaligned.h
Diffstat (limited to 'arch/arc/kernel/unaligned.h')
-rw-r--r--arch/arc/kernel/unaligned.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arc/kernel/unaligned.h b/arch/arc/kernel/unaligned.h
new file mode 100644
index 000000000000..5244453bb85f
--- /dev/null
+++ b/arch/arc/kernel/unaligned.h
@@ -0,0 +1,16 @@
+struct pt_regs;
+struct callee_regs;
+
+#ifdef CONFIG_ARC_EMUL_UNALIGNED
+int misaligned_fixup(unsigned long address, struct pt_regs *regs,
+ struct callee_regs *cregs);
+#else
+static inline int
+misaligned_fixup(unsigned long address, struct pt_regs *regs,
+ struct callee_regs *cregs)
+{
+ /* Not fixed */
+ return 1;
+}
+#endif
+