Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/arnd/asm-generic

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
  add generic lib/checksum.c
  asm-generic: add a generic uaccess.h
  asm-generic: add generic NOMMU versions of some headers
  asm-generic: add generic atomic.h and io.h
  asm-generic: add legacy I/O header files
  asm-generic: add generic versions of common headers
  asm-generic: make bitops.h usable
  asm-generic: make pci.h usable directly
  asm-generic: make get_rtc_time overridable
  asm-generic: rename page.h and uaccess.h
  asm-generic: rename atomic.h to atomic-long.h
  asm-generic: add a generic unistd.h
  asm-generic: add generic ABI headers
  asm-generic: add generic sysv ipc headers
  asm-generic: introduce asm/bitsperlong.h
  asm-generic: rename termios.h, signal.h and mman.h
  • Loading branch information
torvalds committed Jun 13, 2009
2 parents 6b70246 + 5b02ee3 commit cd166bd
Show file tree
Hide file tree
Showing 187 changed files with 4,717 additions and 459 deletions.
2 changes: 1 addition & 1 deletion arch/alpha/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,5 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
#define smp_mb__before_atomic_inc() smp_mb()
#define smp_mb__after_atomic_inc() smp_mb()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* _ALPHA_ATOMIC_H */
8 changes: 8 additions & 0 deletions arch/alpha/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef __ASM_ALPHA_BITSPERLONG_H
#define __ASM_ALPHA_BITSPERLONG_H

#define __BITS_PER_LONG 64

#include <asm-generic/bitsperlong.h>

#endif /* __ASM_ALPHA_BITSPERLONG_H */
2 changes: 1 addition & 1 deletion arch/alpha/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ typedef struct page *pgtable_t;
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif /* _ALPHA_PAGE_H */
2 changes: 1 addition & 1 deletion arch/alpha/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ typedef unsigned long sigset_t;
#define SIG_UNBLOCK 2 /* for unblocking signals */
#define SIG_SETMASK 3 /* for setting the signal mask */

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct osf_sigaction {
Expand Down
3 changes: 0 additions & 3 deletions arch/alpha/include/asm/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ typedef unsigned int umode_t;
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__

#define BITS_PER_LONG 64

#ifndef __ASSEMBLY__

typedef u64 dma_addr_t;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
#define smp_mb__before_atomic_inc() smp_mb()
#define smp_mb__after_atomic_inc() smp_mb()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif
#endif
1 change: 1 addition & 0 deletions arch/arm/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/arm/include/asm/mman.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __ARM_MMAN_H__
#define __ARM_MMAN_H__

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ typedef struct page *pgtable_t;
(((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif
2 changes: 1 addition & 1 deletion arch/arm/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ typedef unsigned long sigset_t;
#define MINSIGSTKSZ 2048
#define SIGSTKSZ 8192

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct old_sigaction {
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,6 @@ static inline int atomic_sub_if_positive(int i, atomic_t *v)
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>

#endif /* __ASM_AVR32_ATOMIC_H */
1 change: 1 addition & 0 deletions arch/avr32/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/mman.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __ASM_AVR32_MMAN_H__
#define __ASM_AVR32_MMAN_H__

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ typedef unsigned long sigset_t;
#define MINSIGSTKSZ 2048
#define SIGSTKSZ 8192

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct old_sigaction {
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/include/asm/termios.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct termio {
*/
#define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"

#include <asm-generic/termios.h>
#include <asm-generic/termios-base.h>

#endif /* __KERNEL__ */

Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,6 @@ static inline void atomic_set_mask(unsigned int mask, atomic_t *v)
#define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
#define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>

#endif /* __ARCH_BLACKFIN_ATOMIC __ */
1 change: 1 addition & 0 deletions arch/blackfin/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extern unsigned long memory_end;
#define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
((void *)(kaddr) < (void *)memory_end))

#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif /* __ASSEMBLY__ */

Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ typedef unsigned long sigset_t;
#define MINSIGSTKSZ 2048
#define SIGSTKSZ 8192

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct old_sigaction {
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif
1 change: 1 addition & 0 deletions arch/cris/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/cris/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

/* verbatim copy of asm-i386/ version */

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ typedef struct page *pgtable_t;
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif /* _CRIS_PAGE_H */

2 changes: 1 addition & 1 deletion arch/cris/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ typedef unsigned long sigset_t;
#define MINSIGSTKSZ 2048
#define SIGSTKSZ 8192

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct old_sigaction {
Expand Down
2 changes: 1 addition & 1 deletion arch/frv/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,5 +194,5 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)

#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* _ASM_ATOMIC_H */
1 change: 1 addition & 0 deletions arch/frv/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/frv/include/asm/mman.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __ASM_MMAN_H__
#define __ASM_MMAN_H__

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
Expand Down
2 changes: 1 addition & 1 deletion arch/frv/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ extern unsigned long max_pfn;
#endif /* __ASSEMBLY__ */

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif /* _ASM_PAGE_H */
13 changes: 3 additions & 10 deletions arch/frv/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* 2 of the License, or (at your option) any later version.
*/

#ifndef ASM_PCI_H
#define ASM_PCI_H
#ifndef _ASM_FRV_PCI_H
#define _ASM_FRV_PCI_H

#include <linux/mm.h>
#include <asm/scatterlist.h>
Expand Down Expand Up @@ -43,12 +43,6 @@ extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
/* Return the index of the PCI controller for device PDEV. */
#define pci_controller_num(PDEV) (0)

/* The PCI address space does equal the physical memory
* address space. The networking and block device layers use
* this boolean for bounce buffer decisions.
*/
#define PCI_DMA_BUS_IS_PHYS (1)

/* pci_unmap_{page,single} is a nop so... */
#define DECLARE_PCI_UNMAP_ADDR(ADDR_NAME)
#define DECLARE_PCI_UNMAP_LEN(LEN_NAME)
Expand Down Expand Up @@ -111,5 +105,4 @@ static inline void pci_dma_sync_sg(struct pci_dev *hwdev,
sg_dma_address(&sg[i])+sg_dma_len(&sg[i]));
}


#endif
#endif /* _ASM_FRV_PCI_H */
2 changes: 1 addition & 1 deletion arch/frv/include/asm/termios.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct termio {
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */

#ifdef __KERNEL__
#include <asm-generic/termios.h>
#include <asm-generic/termios-base.h>
#endif

#endif /* _ASM_TERMIOS_H */
2 changes: 1 addition & 1 deletion arch/h8300/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ static __inline__ void atomic_set_mask(unsigned long mask, unsigned long *v)
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* __ARCH_H8300_ATOMIC __ */
1 change: 1 addition & 0 deletions arch/h8300/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/h8300/include/asm/mman.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __H8300_MMAN_H__
#define __H8300_MMAN_H__

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
Expand Down
2 changes: 1 addition & 1 deletion arch/h8300/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ extern unsigned long memory_end;
#endif /* __ASSEMBLY__ */

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif /* _H8300_PAGE_H */
2 changes: 1 addition & 1 deletion arch/h8300/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ typedef unsigned long sigset_t;
#define MINSIGSTKSZ 2048
#define SIGSTKSZ 8192

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct old_sigaction {
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,5 @@ atomic64_add_negative (__s64 i, atomic64_t *v)
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* _ASM_IA64_ATOMIC_H */
8 changes: 8 additions & 0 deletions arch/ia64/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef __ASM_IA64_BITSPERLONG_H
#define __ASM_IA64_BITSPERLONG_H

#define __BITS_PER_LONG 64

#include <asm-generic/bitsperlong.h>

#endif /* __ASM_IA64_BITSPERLONG_H */
2 changes: 1 addition & 1 deletion arch/ia64/include/asm/mman.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
*/

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x00100 /* stack-like segment */
#define MAP_GROWSUP 0x00200 /* register stack-like segment */
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

#endif /* __KERNEL__ */

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

# ifndef __ASSEMBLY__

Expand Down
7 changes: 0 additions & 7 deletions arch/ia64/include/asm/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
# define __IA64_UL(x) (x)
# define __IA64_UL_CONST(x) x

# ifdef __KERNEL__
# define BITS_PER_LONG 64
# endif

#else
# define __IA64_UL(x) ((unsigned long)(x))
# define __IA64_UL_CONST(x) x##UL
Expand All @@ -34,10 +30,7 @@ typedef unsigned int umode_t;
*/
# ifdef __KERNEL__

#define BITS_PER_LONG 64

/* DMA addresses are 64-bits wide, in general. */

typedef u64 dma_addr_t;

# endif /* __KERNEL__ */
Expand Down
2 changes: 1 addition & 1 deletion arch/m32r/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,5 @@ static __inline__ void atomic_set_mask(unsigned long mask, atomic_t *addr)
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* _ASM_M32R_ATOMIC_H */
1 change: 1 addition & 0 deletions arch/m32r/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
2 changes: 1 addition & 1 deletion arch/m32r/include/asm/mman.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __M32R_MMAN_H__
#define __M32R_MMAN_H__

#include <asm-generic/mman.h>
#include <asm-generic/mman-common.h>

#define MAP_GROWSDOWN 0x0100 /* stack-like segment */
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */
Expand Down
2 changes: 1 addition & 1 deletion arch/m32r/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ typedef struct page *pgtable_t;
#define devmem_is_allowed(x) 1

#include <asm-generic/memory_model.h>
#include <asm-generic/page.h>
#include <asm-generic/getorder.h>

#endif /* _ASM_M32R_PAGE_H */
2 changes: 0 additions & 2 deletions arch/m32r/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@

#include <asm-generic/pci.h>

#define PCI_DMA_BUS_IS_PHYS (1)

#endif /* _ASM_M32R_PCI_H */
2 changes: 1 addition & 1 deletion arch/m32r/include/asm/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ typedef unsigned long sigset_t;
#define MINSIGSTKSZ 2048
#define SIGSTKSZ 8192

#include <asm-generic/signal.h>
#include <asm-generic/signal-defs.h>

#ifdef __KERNEL__
struct old_sigaction {
Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/include/asm/atomic_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,5 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* __ARCH_M68K_ATOMIC __ */
2 changes: 1 addition & 1 deletion arch/m68k/include/asm/atomic_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
#define atomic_dec_return(v) atomic_sub_return(1,(v))
#define atomic_inc_return(v) atomic_add_return(1,(v))

#include <asm-generic/atomic.h>
#include <asm-generic/atomic-long.h>
#endif /* __ARCH_M68KNOMMU_ATOMIC __ */
1 change: 1 addition & 0 deletions arch/m68k/include/asm/bitsperlong.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <asm-generic/bitsperlong.h>
Loading

0 comments on commit cd166bd

Please sign in to comment.