forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/lin…
…ux/kernel/git/arnd/asm-generic Pull asm-generic cleanups from Arnd Bergmann: "The asm-generic changes for 4.4 are mostly a series from Christoph Hellwig to clean up various abuses of headers in there. The patch to rename the io-64-nonatomic-*.h headers caused some conflicts with new users, so I added a workaround that we can remove in the next merge window. The only other patch is a warning fix from Marek Vasut" * tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: asm-generic: temporarily add back asm-generic/io-64-nonatomic*.h asm-generic: cmpxchg: avoid warnings from macro-ized cmpxchg() implementations gpio-mxc: stop including <asm-generic/bug> n_tracesink: stop including <asm-generic/bug> n_tracerouter: stop including <asm-generic/bug> mlx5: stop including <asm-generic/kmap_types.h> hifn_795x: stop including <asm-generic/kmap_types.h> drbd: stop including <asm-generic/kmap_types.h> move count_zeroes.h out of asm-generic move io-64-nonatomic*.h out of asm-generic
- Loading branch information
Showing
32 changed files
with
103 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,2 @@ | ||
#ifndef _ASM_IO_64_NONATOMIC_HI_LO_H_ | ||
#define _ASM_IO_64_NONATOMIC_HI_LO_H_ | ||
|
||
#include <linux/io.h> | ||
#include <asm-generic/int-ll64.h> | ||
|
||
static inline __u64 hi_lo_readq(const volatile void __iomem *addr) | ||
{ | ||
const volatile u32 __iomem *p = addr; | ||
u32 low, high; | ||
|
||
high = readl(p + 1); | ||
low = readl(p); | ||
|
||
return low + ((u64)high << 32); | ||
} | ||
|
||
static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr) | ||
{ | ||
writel(val >> 32, addr + 4); | ||
writel(val, addr); | ||
} | ||
|
||
#ifndef readq | ||
#define readq hi_lo_readq | ||
#endif | ||
|
||
#ifndef writeq | ||
#define writeq hi_lo_writeq | ||
#endif | ||
|
||
#endif /* _ASM_IO_64_NONATOMIC_HI_LO_H_ */ | ||
/* XXX: delete asm-generic/io-64-nonatomic-hi-lo.h after converting new users */ | ||
#include <linux/io-64-nonatomic-hi-lo.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,2 @@ | ||
#ifndef _ASM_IO_64_NONATOMIC_LO_HI_H_ | ||
#define _ASM_IO_64_NONATOMIC_LO_HI_H_ | ||
|
||
#include <linux/io.h> | ||
#include <asm-generic/int-ll64.h> | ||
|
||
static inline __u64 lo_hi_readq(const volatile void __iomem *addr) | ||
{ | ||
const volatile u32 __iomem *p = addr; | ||
u32 low, high; | ||
|
||
low = readl(p); | ||
high = readl(p + 1); | ||
|
||
return low + ((u64)high << 32); | ||
} | ||
|
||
static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr) | ||
{ | ||
writel(val, addr); | ||
writel(val >> 32, addr + 4); | ||
} | ||
|
||
#ifndef readq | ||
#define readq lo_hi_readq | ||
#endif | ||
|
||
#ifndef writeq | ||
#define writeq lo_hi_writeq | ||
#endif | ||
|
||
#endif /* _ASM_IO_64_NONATOMIC_LO_HI_H_ */ | ||
/* XXX: delete asm-generic/io-64-nonatomic-lo-hi.h after converting new users */ | ||
#include <linux/io-64-nonatomic-lo-hi.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef _LINUX_IO_64_NONATOMIC_HI_LO_H_ | ||
#define _LINUX_IO_64_NONATOMIC_HI_LO_H_ | ||
|
||
#include <linux/io.h> | ||
#include <asm-generic/int-ll64.h> | ||
|
||
static inline __u64 hi_lo_readq(const volatile void __iomem *addr) | ||
{ | ||
const volatile u32 __iomem *p = addr; | ||
u32 low, high; | ||
|
||
high = readl(p + 1); | ||
low = readl(p); | ||
|
||
return low + ((u64)high << 32); | ||
} | ||
|
||
static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr) | ||
{ | ||
writel(val >> 32, addr + 4); | ||
writel(val, addr); | ||
} | ||
|
||
#ifndef readq | ||
#define readq hi_lo_readq | ||
#endif | ||
|
||
#ifndef writeq | ||
#define writeq hi_lo_writeq | ||
#endif | ||
|
||
#endif /* _LINUX_IO_64_NONATOMIC_HI_LO_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef _LINUX_IO_64_NONATOMIC_LO_HI_H_ | ||
#define _LINUX_IO_64_NONATOMIC_LO_HI_H_ | ||
|
||
#include <linux/io.h> | ||
#include <asm-generic/int-ll64.h> | ||
|
||
static inline __u64 lo_hi_readq(const volatile void __iomem *addr) | ||
{ | ||
const volatile u32 __iomem *p = addr; | ||
u32 low, high; | ||
|
||
low = readl(p); | ||
high = readl(p + 1); | ||
|
||
return low + ((u64)high << 32); | ||
} | ||
|
||
static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr) | ||
{ | ||
writel(val, addr); | ||
writel(val >> 32, addr + 4); | ||
} | ||
|
||
#ifndef readq | ||
#define readq lo_hi_readq | ||
#endif | ||
|
||
#ifndef writeq | ||
#define writeq lo_hi_writeq | ||
#endif | ||
|
||
#endif /* _LINUX_IO_64_NONATOMIC_LO_HI_H_ */ |
Oops, something went wrong.