Skip to content

Commit 74d96f0

Browse files
hharrisontorvalds
authored andcommitted
byteorder: make swab.h include asm/swab.h like a regular header
Add swab.h to kbuild.asm and remove the individual entries from each arch, mark as unifdef as some arches have some kernel-only bits inside. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent aa0effb commit 74d96f0

42 files changed

Lines changed: 2 additions & 49 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/alpha/include/asm/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ unifdef-y += console.h
99
unifdef-y += fpu.h
1010
unifdef-y += sysinfo.h
1111
unifdef-y += compiler.h
12-
unifdef-y += swab.h

‎arch/alpha/include/asm/byteorder.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef _ALPHA_BYTEORDER_H
22
#define _ALPHA_BYTEORDER_H
33

4-
#include <asm/swab.h>
54
#include <linux/byteorder/little_endian.h>
65

76
#endif /* _ALPHA_BYTEORDER_H */

‎arch/arm/include/asm/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
include include/asm-generic/Kbuild.asm
22

33
unifdef-y += hwcap.h
4-
unifdef-y += swab.h

‎arch/arm/include/asm/byteorder.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#ifndef __ASM_ARM_BYTEORDER_H
1616
#define __ASM_ARM_BYTEORDER_H
1717

18-
#include <asm/swab.h>
19-
2018
#ifdef __ARMEB__
2119
#include <linux/byteorder/big_endian.h>
2220
#else

‎arch/avr32/include/asm/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
include include/asm-generic/Kbuild.asm
22

3-
header-y += swab.h
43
header-y += cachectl.h

‎arch/avr32/include/asm/byteorder.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#ifndef __ASM_AVR32_BYTEORDER_H
55
#define __ASM_AVR32_BYTEORDER_H
66

7-
#include <asm/swab.h>
87
#include <linux/byteorder/big_endian.h>
98

109
#endif /* __ASM_AVR32_BYTEORDER_H */

‎arch/blackfin/include/asm/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
include include/asm-generic/Kbuild.asm
22

33
unifdef-y += fixed_code.h
4-
unifdef-y += swab.h
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef _BLACKFIN_BYTEORDER_H
22
#define _BLACKFIN_BYTEORDER_H
33

4-
#include <asm/swab.h>
54
#include <linux/byteorder/little_endian.h>
65

76
#endif /* _BLACKFIN_BYTEORDER_H */

‎arch/cris/include/asm/Kbuild‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ header-y += sync_serial.h
99

1010
unifdef-y += etraxgpio.h
1111
unifdef-y += rs485.h
12-
unifdef-y += swab.h

‎arch/cris/include/asm/byteorder.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef _CRIS_BYTEORDER_H
22
#define _CRIS_BYTEORDER_H
33

4-
#include <asm/swab.h>
54
#include <linux/byteorder/little_endian.h>
65

76
#endif

0 commit comments

Comments
 (0)