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 cache.c
fatent.c
nls.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: Al Viro <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
Al Viro authored and namjaejeon committed Nov 27, 2024
1 parent d5618b6 commit df6b0ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
*/

#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 <linux/buffer_head.h>

#include "exfat_raw.h"
Expand Down
5 changes: 5 additions & 0 deletions fatent.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
*/

#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 <linux/buffer_head.h>
#include <linux/blkdev.h>

Expand Down
4 changes: 4 additions & 0 deletions nls.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0)
#include <linux/unaligned.h>
#else
#include <asm/unaligned.h>
#endif

#include "exfat_raw.h"
#include "exfat_fs.h"
Expand Down

0 comments on commit df6b0ab

Please sign in to comment.