Skip to content

Commit

Permalink
move asm/unaligned.h to linux/unaligned.h
Browse files Browse the repository at this point in the history
asm/unaligned.h is always an include of asm-generic/unaligned.h;
might as well move that thing to linux/unaligned.h and include
that - there's nothing arch-specific in that header.

auto-generated by the following:

for i in unicode.c; do
sed -i -e s/asm/unaligned.h/linux/unaligned.h/
done
for i in ; do
sed -i -e s/asm-generic/unaligned.h/linux/unaligned.h/
done
git mv include/asm-generic/unaligned.h include/linux/unaligned.h
git mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.h
sed -i -e /unaligned.h/d include/asm-generic/Kbuild
sed -i -e s/__ASM_GENERIC/__LINUX/ include/linux/unaligned.h tools/include/linux/unaligned.h

Signed-off-by: Jon Lawrence <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
hireworksltd authored and namjaejeon committed Nov 25, 2024
1 parent 0ee56e8 commit 888b780
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
*/
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0)
#include <linux/unaligned.h>
#else
#include <asm/unaligned.h>
#endif
#include "glob.h"
#include "unicode.h"
#include "uniupr.h"
Expand Down

0 comments on commit 888b780

Please sign in to comment.