1 /*
2  *  arch/s390/lib/misaligned.c
3  *    S390 misalignment panic stubs
4  *
5  *  S390 version
6  *    Copyright (C) 2001 IBM Deutschland Entwicklung GmbH, IBM Corporation
7  *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com).
8  *
9  * xchg wants to panic if the pointer is not aligned. To avoid multiplying
10  * the panic message over and over again, the panic is done in the helper
11  * functions __misaligned_u32 and __misaligned_u16.
12  */
13 
14 #include <linux/module.h>
15 #include <linux/kernel.h>
16 
__misaligned_u16(void)17 void __misaligned_u16(void)
18 {
19 	panic("misaligned (__u16 *) in __xchg\n");
20 }
21 
__misaligned_u32(void)22 void __misaligned_u32(void)
23 {
24 	panic("misaligned (__u32 *) in __xchg\n");
25 }
26 
27 EXPORT_SYMBOL(__misaligned_u16);
28 EXPORT_SYMBOL(__misaligned_u32);
29 
30