diff options
Diffstat (limited to 'include')
41 files changed, 174 insertions, 184 deletions
diff --git a/include/asm-alpha/irq_regs.h b/include/asm-alpha/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-alpha/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-arm/arch-clps711x/time.h b/include/asm-arm/arch-clps711x/time.h index 0e4a3901d3b3..5edaae1c61d3 100644 --- a/include/asm-arm/arch-clps711x/time.h +++ b/include/asm-arm/arch-clps711x/time.h | |||
@@ -26,8 +26,9 @@ extern void clps711x_setup_timer(void); | |||
26 | * IRQ handler for the timer | 26 | * IRQ handler for the timer |
27 | */ | 27 | */ |
28 | static irqreturn_t | 28 | static irqreturn_t |
29 | p720t_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 29 | p720t_timer_interrupt(int irq, void *dev_id) |
30 | { | 30 | { |
31 | struct pt_regs *regs = get_irq_regs(); | ||
31 | do_leds(); | 32 | do_leds(); |
32 | do_timer(1); | 33 | do_timer(1); |
33 | #ifndef CONFIG_SMP | 34 | #ifndef CONFIG_SMP |
diff --git a/include/asm-arm/arch-imx/imx-dma.h b/include/asm-arm/arch-imx/imx-dma.h index 599f03e5a9ef..5b1066da4e1f 100644 --- a/include/asm-arm/arch-imx/imx-dma.h +++ b/include/asm-arm/arch-imx/imx-dma.h | |||
@@ -45,8 +45,8 @@ | |||
45 | 45 | ||
46 | struct imx_dma_channel { | 46 | struct imx_dma_channel { |
47 | const char *name; | 47 | const char *name; |
48 | void (*irq_handler) (int, void *, struct pt_regs *); | 48 | void (*irq_handler) (int, void *); |
49 | void (*err_handler) (int, void *, struct pt_regs *, int errcode); | 49 | void (*err_handler) (int, void *, int errcode); |
50 | void *data; | 50 | void *data; |
51 | dmamode_t dma_mode; | 51 | dmamode_t dma_mode; |
52 | struct scatterlist *sg; | 52 | struct scatterlist *sg; |
@@ -77,8 +77,8 @@ imx_dma_setup_sg(imx_dmach_t dma_ch, | |||
77 | 77 | ||
78 | int | 78 | int |
79 | imx_dma_setup_handlers(imx_dmach_t dma_ch, | 79 | imx_dma_setup_handlers(imx_dmach_t dma_ch, |
80 | void (*irq_handler) (int, void *, struct pt_regs *), | 80 | void (*irq_handler) (int, void *), |
81 | void (*err_handler) (int, void *, struct pt_regs *, int), void *data); | 81 | void (*err_handler) (int, void *, int), void *data); |
82 | 82 | ||
83 | void imx_dma_enable(imx_dmach_t dma_ch); | 83 | void imx_dma_enable(imx_dmach_t dma_ch); |
84 | 84 | ||
diff --git a/include/asm-arm/arch-l7200/time.h b/include/asm-arm/arch-l7200/time.h index c69cb508735f..ea22f7fff9cd 100644 --- a/include/asm-arm/arch-l7200/time.h +++ b/include/asm-arm/arch-l7200/time.h | |||
@@ -43,8 +43,9 @@ | |||
43 | * Handler for RTC timer interrupt | 43 | * Handler for RTC timer interrupt |
44 | */ | 44 | */ |
45 | static irqreturn_t | 45 | static irqreturn_t |
46 | timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 46 | timer_interrupt(int irq, void *dev_id) |
47 | { | 47 | { |
48 | struct pt_regs *regs = get_irq_regs(); | ||
48 | do_timer(1); | 49 | do_timer(1); |
49 | #ifndef CONFIG_SMP | 50 | #ifndef CONFIG_SMP |
50 | update_process_times(user_mode(regs)); | 51 | update_process_times(user_mode(regs)); |
diff --git a/include/asm-arm/arch-pnx4008/dma.h b/include/asm-arm/arch-pnx4008/dma.h index 3aee1204795b..418f15283ff1 100644 --- a/include/asm-arm/arch-pnx4008/dma.h +++ b/include/asm-arm/arch-pnx4008/dma.h | |||
@@ -137,7 +137,7 @@ extern void pnx4008_free_ll_entry(struct pnx4008_dma_ll *, dma_addr_t); | |||
137 | extern void pnx4008_free_ll(u32 ll_dma, struct pnx4008_dma_ll *); | 137 | extern void pnx4008_free_ll(u32 ll_dma, struct pnx4008_dma_ll *); |
138 | 138 | ||
139 | extern int pnx4008_request_channel(char *, int, | 139 | extern int pnx4008_request_channel(char *, int, |
140 | void (*)(int, int, void *, struct pt_regs *), | 140 | void (*)(int, int, void *), |
141 | void *); | 141 | void *); |
142 | extern void pnx4008_free_channel(int); | 142 | extern void pnx4008_free_channel(int); |
143 | extern int pnx4008_config_dma(int, int, int); | 143 | extern int pnx4008_config_dma(int, int, int); |
diff --git a/include/asm-arm/arch-pxa/dma.h b/include/asm-arm/arch-pxa/dma.h index a008150abc59..bed042d71d68 100644 --- a/include/asm-arm/arch-pxa/dma.h +++ b/include/asm-arm/arch-pxa/dma.h | |||
@@ -56,7 +56,7 @@ for ( \ | |||
56 | 56 | ||
57 | int pxa_request_dma (char *name, | 57 | int pxa_request_dma (char *name, |
58 | pxa_dma_prio prio, | 58 | pxa_dma_prio prio, |
59 | void (*irq_handler)(int, void *, struct pt_regs *), | 59 | void (*irq_handler)(int, void *), |
60 | void *data); | 60 | void *data); |
61 | 61 | ||
62 | void pxa_free_dma (int dma_ch); | 62 | void pxa_free_dma (int dma_ch); |
diff --git a/include/asm-arm/arch-pxa/mmc.h b/include/asm-arm/arch-pxa/mmc.h index 88c17dd02ed2..b704c4f05f4e 100644 --- a/include/asm-arm/arch-pxa/mmc.h +++ b/include/asm-arm/arch-pxa/mmc.h | |||
@@ -10,7 +10,7 @@ struct mmc_host; | |||
10 | struct pxamci_platform_data { | 10 | struct pxamci_platform_data { |
11 | unsigned int ocr_mask; /* available voltages */ | 11 | unsigned int ocr_mask; /* available voltages */ |
12 | unsigned long detect_delay; /* delay in jiffies before detecting cards after interrupt */ | 12 | unsigned long detect_delay; /* delay in jiffies before detecting cards after interrupt */ |
13 | int (*init)(struct device *, irqreturn_t (*)(int, void *, struct pt_regs *), void *); | 13 | int (*init)(struct device *, irqreturn_t (*)(int, void *), void *); |
14 | int (*get_ro)(struct device *); | 14 | int (*get_ro)(struct device *); |
15 | void (*setpower)(struct device *, unsigned int); | 15 | void (*setpower)(struct device *, unsigned int); |
16 | void (*exit)(struct device *, void *); | 16 | void (*exit)(struct device *, void *); |
diff --git a/include/asm-arm/hardware/sharpsl_pm.h b/include/asm-arm/hardware/sharpsl_pm.h index a836e76a14f7..2d00db22b981 100644 --- a/include/asm-arm/hardware/sharpsl_pm.h +++ b/include/asm-arm/hardware/sharpsl_pm.h | |||
@@ -100,7 +100,7 @@ extern struct sharpsl_pm_status sharpsl_pm; | |||
100 | 100 | ||
101 | void sharpsl_battery_kick(void); | 101 | void sharpsl_battery_kick(void); |
102 | void sharpsl_pm_led(int val); | 102 | void sharpsl_pm_led(int val); |
103 | irqreturn_t sharpsl_ac_isr(int irq, void *dev_id, struct pt_regs *fp); | 103 | irqreturn_t sharpsl_ac_isr(int irq, void *dev_id); |
104 | irqreturn_t sharpsl_chrg_full_isr(int irq, void *dev_id, struct pt_regs *fp); | 104 | irqreturn_t sharpsl_chrg_full_isr(int irq, void *dev_id); |
105 | irqreturn_t sharpsl_fatal_isr(int irq, void *dev_id, struct pt_regs *fp); | 105 | irqreturn_t sharpsl_fatal_isr(int irq, void *dev_id); |
106 | 106 | ||
diff --git a/include/asm-arm/irq_regs.h b/include/asm-arm/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-arm/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-arm/mach/irq.h b/include/asm-arm/mach/irq.h index 131f33733d25..0e017ecf2096 100644 --- a/include/asm-arm/mach/irq.h +++ b/include/asm-arm/mach/irq.h | |||
@@ -30,10 +30,9 @@ extern int show_fiq_list(struct seq_file *, void *); | |||
30 | /* | 30 | /* |
31 | * Obsolete inline function for calling irq descriptor handlers. | 31 | * Obsolete inline function for calling irq descriptor handlers. |
32 | */ | 32 | */ |
33 | static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc, | 33 | static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc) |
34 | struct pt_regs *regs) | ||
35 | { | 34 | { |
36 | desc->handle_irq(irq, desc, regs); | 35 | desc->handle_irq(irq, desc); |
37 | } | 36 | } |
38 | 37 | ||
39 | void set_irq_flags(unsigned int irq, unsigned int flags); | 38 | void set_irq_flags(unsigned int irq, unsigned int flags); |
@@ -51,10 +50,10 @@ void set_irq_flags(unsigned int irq, unsigned int flags); | |||
51 | #define irqdesc irq_desc | 50 | #define irqdesc irq_desc |
52 | #define irqchip irq_chip | 51 | #define irqchip irq_chip |
53 | 52 | ||
54 | #define do_bad_IRQ(irq,desc,regs) \ | 53 | #define do_bad_IRQ(irq,desc) \ |
55 | do { \ | 54 | do { \ |
56 | spin_lock(&desc->lock); \ | 55 | spin_lock(&desc->lock); \ |
57 | handle_bad_irq(irq, desc, regs); \ | 56 | handle_bad_irq(irq, desc); \ |
58 | spin_unlock(&desc->lock); \ | 57 | spin_unlock(&desc->lock); \ |
59 | } while(0) | 58 | } while(0) |
60 | 59 | ||
diff --git a/include/asm-arm/mach/time.h b/include/asm-arm/mach/time.h index 1eb93f5c0d6c..5dc357013b79 100644 --- a/include/asm-arm/mach/time.h +++ b/include/asm-arm/mach/time.h | |||
@@ -57,7 +57,7 @@ struct dyn_tick_timer { | |||
57 | int (*enable)(void); /* Enables dynamic tick */ | 57 | int (*enable)(void); /* Enables dynamic tick */ |
58 | int (*disable)(void); /* Disables dynamic tick */ | 58 | int (*disable)(void); /* Disables dynamic tick */ |
59 | void (*reprogram)(unsigned long); /* Reprograms the timer */ | 59 | void (*reprogram)(unsigned long); /* Reprograms the timer */ |
60 | int (*handler)(int, void *, struct pt_regs *); | 60 | int (*handler)(int, void *); |
61 | }; | 61 | }; |
62 | 62 | ||
63 | void timer_dyn_reprogram(void); | 63 | void timer_dyn_reprogram(void); |
@@ -66,7 +66,7 @@ void timer_dyn_reprogram(void); | |||
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | extern struct sys_timer *system_timer; | 68 | extern struct sys_timer *system_timer; |
69 | extern void timer_tick(struct pt_regs *); | 69 | extern void timer_tick(void); |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Kernel time keeping support. | 72 | * Kernel time keeping support. |
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index a5250895155e..1d9573cf4a0b 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h | |||
@@ -41,14 +41,14 @@ | |||
41 | #endif | 41 | #endif |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | #define WARN_ON_ONCE(condition) ({ \ | 44 | #define WARN_ON_ONCE(condition) ({ \ |
45 | static int __warn_once = 1; \ | 45 | static int __warned; \ |
46 | typeof(condition) __ret_warn_once = (condition);\ | 46 | typeof(condition) __ret_warn_once = (condition); \ |
47 | \ | 47 | \ |
48 | if (likely(__warn_once)) \ | 48 | if (unlikely(__ret_warn_once)) \ |
49 | if (WARN_ON(__ret_warn_once)) \ | 49 | if (WARN_ON(!__warned)) \ |
50 | __warn_once = 0; \ | 50 | __warned = 1; \ |
51 | unlikely(__ret_warn_once); \ | 51 | unlikely(__ret_warn_once); \ |
52 | }) | 52 | }) |
53 | 53 | ||
54 | #ifdef CONFIG_SMP | 54 | #ifdef CONFIG_SMP |
diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h index 6d45ee5472af..196376262240 100644 --- a/include/asm-generic/percpu.h +++ b/include/asm-generic/percpu.h | |||
@@ -15,7 +15,7 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; | |||
15 | 15 | ||
16 | /* var is in discarded region: offset to particular copy we want */ | 16 | /* var is in discarded region: offset to particular copy we want */ |
17 | #define per_cpu(var, cpu) (*({ \ | 17 | #define per_cpu(var, cpu) (*({ \ |
18 | extern int simple_indentifier_##var(void); \ | 18 | extern int simple_identifier_##var(void); \ |
19 | RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]); })) | 19 | RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]); })) |
20 | #define __get_cpu_var(var) per_cpu(var, smp_processor_id()) | 20 | #define __get_cpu_var(var) per_cpu(var, smp_processor_id()) |
21 | #define __raw_get_cpu_var(var) per_cpu(var, raw_smp_processor_id()) | 21 | #define __raw_get_cpu_var(var) per_cpu(var, raw_smp_processor_id()) |
diff --git a/include/asm-i386/smp.h b/include/asm-i386/smp.h index 6aa1206f6e2a..bd59c1508e71 100644 --- a/include/asm-i386/smp.h +++ b/include/asm-i386/smp.h | |||
@@ -46,8 +46,6 @@ extern u8 x86_cpu_to_apicid[]; | |||
46 | 46 | ||
47 | #define cpu_physical_id(cpu) x86_cpu_to_apicid[cpu] | 47 | #define cpu_physical_id(cpu) x86_cpu_to_apicid[cpu] |
48 | 48 | ||
49 | extern u8 apicid_2_node[]; | ||
50 | |||
51 | #ifdef CONFIG_HOTPLUG_CPU | 49 | #ifdef CONFIG_HOTPLUG_CPU |
52 | extern void cpu_exit_clear(void); | 50 | extern void cpu_exit_clear(void); |
53 | extern void cpu_uninit(void); | 51 | extern void cpu_uninit(void); |
@@ -101,6 +99,9 @@ extern unsigned int num_processors; | |||
101 | #endif | 99 | #endif |
102 | 100 | ||
103 | #ifndef __ASSEMBLY__ | 101 | #ifndef __ASSEMBLY__ |
102 | |||
103 | extern u8 apicid_2_node[]; | ||
104 | |||
104 | #ifdef CONFIG_X86_LOCAL_APIC | 105 | #ifdef CONFIG_X86_LOCAL_APIC |
105 | static __inline int logical_smp_processor_id(void) | 106 | static __inline int logical_smp_processor_id(void) |
106 | { | 107 | { |
diff --git a/include/asm-m32r/irq_regs.h b/include/asm-m32r/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-m32r/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-m68k/atari_stdma.h b/include/asm-m68k/atari_stdma.h index b4eadf852738..a6986af7915e 100644 --- a/include/asm-m68k/atari_stdma.h +++ b/include/asm-m68k/atari_stdma.h | |||
@@ -8,8 +8,7 @@ | |||
8 | 8 | ||
9 | /***************************** Prototypes *****************************/ | 9 | /***************************** Prototypes *****************************/ |
10 | 10 | ||
11 | void stdma_lock(irqreturn_t (*handler)(int, void *, struct pt_regs *), | 11 | void stdma_lock(irqreturn_t (*handler)(int, void *), void *data); |
12 | void *data); | ||
13 | void stdma_release( void ); | 12 | void stdma_release( void ); |
14 | int stdma_others_waiting( void ); | 13 | int stdma_others_waiting( void ); |
15 | int stdma_islocked( void ); | 14 | int stdma_islocked( void ); |
diff --git a/include/asm-m68k/dma-mapping.h b/include/asm-m68k/dma-mapping.h index cebbb03370ec..c1299c3beb50 100644 --- a/include/asm-m68k/dma-mapping.h +++ b/include/asm-m68k/dma-mapping.h | |||
@@ -26,7 +26,7 @@ static inline int dma_is_consistent(dma_addr_t dma_addr) | |||
26 | } | 26 | } |
27 | 27 | ||
28 | extern void *dma_alloc_coherent(struct device *, size_t, | 28 | extern void *dma_alloc_coherent(struct device *, size_t, |
29 | dma_addr_t *, int); | 29 | dma_addr_t *, gfp_t); |
30 | extern void dma_free_coherent(struct device *, size_t, | 30 | extern void dma_free_coherent(struct device *, size_t, |
31 | void *, dma_addr_t); | 31 | void *, dma_addr_t); |
32 | 32 | ||
diff --git a/include/asm-m68k/floppy.h b/include/asm-m68k/floppy.h index 57f4fdda65ab..45dc908932a3 100644 --- a/include/asm-m68k/floppy.h +++ b/include/asm-m68k/floppy.h | |||
@@ -17,8 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/vmalloc.h> | 18 | #include <linux/vmalloc.h> |
19 | 19 | ||
20 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | 20 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id); |
21 | struct pt_regs *regs); | ||
22 | 21 | ||
23 | /* constants... */ | 22 | /* constants... */ |
24 | 23 | ||
@@ -184,8 +183,7 @@ static void fd_disable_dma(void) | |||
184 | 183 | ||
185 | /* this is the only truly Q40 specific function */ | 184 | /* this is the only truly Q40 specific function */ |
186 | 185 | ||
187 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | 186 | asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id) |
188 | struct pt_regs *regs) | ||
189 | { | 187 | { |
190 | register unsigned char st; | 188 | register unsigned char st; |
191 | 189 | ||
@@ -198,7 +196,7 @@ asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | |||
198 | static int dma_wait=0; | 196 | static int dma_wait=0; |
199 | #endif | 197 | #endif |
200 | if(!doing_pdma) { | 198 | if(!doing_pdma) { |
201 | floppy_interrupt(irq, dev_id, regs); | 199 | floppy_interrupt(irq, dev_id); |
202 | return IRQ_HANDLED; | 200 | return IRQ_HANDLED; |
203 | } | 201 | } |
204 | 202 | ||
@@ -246,7 +244,7 @@ asmlinkage irqreturn_t floppy_hardint(int irq, void *dev_id, | |||
246 | dma_wait=0; | 244 | dma_wait=0; |
247 | #endif | 245 | #endif |
248 | doing_pdma = 0; | 246 | doing_pdma = 0; |
249 | floppy_interrupt(irq, dev_id, regs); | 247 | floppy_interrupt(irq, dev_id); |
250 | return IRQ_HANDLED; | 248 | return IRQ_HANDLED; |
251 | } | 249 | } |
252 | #ifdef TRACE_FLPY_INT | 250 | #ifdef TRACE_FLPY_INT |
diff --git a/include/asm-m68k/ide.h b/include/asm-m68k/ide.h index 365f76fb8013..896683a7a1f3 100644 --- a/include/asm-m68k/ide.h +++ b/include/asm-m68k/ide.h | |||
@@ -123,7 +123,7 @@ static __inline__ void ide_release_lock (void) | |||
123 | } | 123 | } |
124 | 124 | ||
125 | static __inline__ void | 125 | static __inline__ void |
126 | ide_get_lock(irqreturn_t (*handler)(int, void *, struct pt_regs *), void *data) | 126 | ide_get_lock(irqreturn_t (*handler)(int, void *), void *data) |
127 | { | 127 | { |
128 | if (MACH_IS_ATARI) { | 128 | if (MACH_IS_ATARI) { |
129 | if (falconide_intr_lock == 0) { | 129 | if (falconide_intr_lock == 0) { |
diff --git a/include/asm-m68k/irq.h b/include/asm-m68k/irq.h index 3257f9881002..4901cb105e2f 100644 --- a/include/asm-m68k/irq.h +++ b/include/asm-m68k/irq.h | |||
@@ -83,7 +83,7 @@ struct pt_regs; | |||
83 | * interrupt source (if it supports chaining). | 83 | * interrupt source (if it supports chaining). |
84 | */ | 84 | */ |
85 | typedef struct irq_node { | 85 | typedef struct irq_node { |
86 | int (*handler)(int, void *, struct pt_regs *); | 86 | int (*handler)(int, void *); |
87 | void *dev_id; | 87 | void *dev_id; |
88 | struct irq_node *next; | 88 | struct irq_node *next; |
89 | unsigned long flags; | 89 | unsigned long flags; |
@@ -93,12 +93,12 @@ typedef struct irq_node { | |||
93 | /* | 93 | /* |
94 | * This structure has only 4 elements for speed reasons | 94 | * This structure has only 4 elements for speed reasons |
95 | */ | 95 | */ |
96 | typedef struct irq_handler { | 96 | struct irq_handler { |
97 | int (*handler)(int, void *, struct pt_regs *); | 97 | int (*handler)(int, void *); |
98 | unsigned long flags; | 98 | unsigned long flags; |
99 | void *dev_id; | 99 | void *dev_id; |
100 | const char *devname; | 100 | const char *devname; |
101 | } irq_handler_t; | 101 | }; |
102 | 102 | ||
103 | struct irq_controller { | 103 | struct irq_controller { |
104 | const char *name; | 104 | const char *name; |
@@ -122,6 +122,7 @@ extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, | |||
122 | void (*handler)(unsigned int, struct pt_regs *)); | 122 | void (*handler)(unsigned int, struct pt_regs *)); |
123 | extern void m68k_setup_irq_controller(struct irq_controller *, unsigned int, unsigned int); | 123 | extern void m68k_setup_irq_controller(struct irq_controller *, unsigned int, unsigned int); |
124 | 124 | ||
125 | asmlinkage void m68k_handle_int(unsigned int, struct pt_regs *); | 125 | asmlinkage void m68k_handle_int(unsigned int); |
126 | asmlinkage void __m68k_handle_int(unsigned int, struct pt_regs *); | ||
126 | 127 | ||
127 | #endif /* _M68K_IRQ_H_ */ | 128 | #endif /* _M68K_IRQ_H_ */ |
diff --git a/include/asm-m68k/mac_iop.h b/include/asm-m68k/mac_iop.h index b0d2e3473537..a2c7e6fcca38 100644 --- a/include/asm-m68k/mac_iop.h +++ b/include/asm-m68k/mac_iop.h | |||
@@ -143,17 +143,17 @@ struct iop_msg { | |||
143 | int status; /* status of this message */ | 143 | int status; /* status of this message */ |
144 | __u8 message[IOP_MSG_LEN]; /* the message being sent/received */ | 144 | __u8 message[IOP_MSG_LEN]; /* the message being sent/received */ |
145 | __u8 reply[IOP_MSG_LEN]; /* the reply to the message */ | 145 | __u8 reply[IOP_MSG_LEN]; /* the reply to the message */ |
146 | void (*handler)(struct iop_msg *, struct pt_regs *); | 146 | void (*handler)(struct iop_msg *); |
147 | /* function to call when reply recvd */ | 147 | /* function to call when reply recvd */ |
148 | }; | 148 | }; |
149 | 149 | ||
150 | extern int iop_scc_present,iop_ism_present; | 150 | extern int iop_scc_present,iop_ism_present; |
151 | 151 | ||
152 | extern int iop_listen(uint, uint, | 152 | extern int iop_listen(uint, uint, |
153 | void (*handler)(struct iop_msg *, struct pt_regs *), | 153 | void (*handler)(struct iop_msg *), |
154 | const char *); | 154 | const char *); |
155 | extern int iop_send_message(uint, uint, void *, uint, __u8 *, | 155 | extern int iop_send_message(uint, uint, void *, uint, __u8 *, |
156 | void (*)(struct iop_msg *, struct pt_regs *)); | 156 | void (*)(struct iop_msg *)); |
157 | extern void iop_complete_message(struct iop_msg *); | 157 | extern void iop_complete_message(struct iop_msg *); |
158 | extern void iop_upload_code(uint, __u8 *, uint, __u16); | 158 | extern void iop_upload_code(uint, __u8 *, uint, __u16); |
159 | extern void iop_download_code(uint, __u8 *, uint, __u16); | 159 | extern void iop_download_code(uint, __u8 *, uint, __u16); |
diff --git a/include/asm-m68k/machdep.h b/include/asm-m68k/machdep.h index df898f27e434..862afa4c35d8 100644 --- a/include/asm-m68k/machdep.h +++ b/include/asm-m68k/machdep.h | |||
@@ -10,7 +10,7 @@ struct rtc_time; | |||
10 | struct rtc_pll_info; | 10 | struct rtc_pll_info; |
11 | struct buffer_head; | 11 | struct buffer_head; |
12 | 12 | ||
13 | extern void (*mach_sched_init) (irqreturn_t (*handler)(int, void *, struct pt_regs *)); | 13 | extern void (*mach_sched_init) (irqreturn_t (*handler)(int, void *)); |
14 | /* machine dependent irq functions */ | 14 | /* machine dependent irq functions */ |
15 | extern void (*mach_init_IRQ) (void); | 15 | extern void (*mach_init_IRQ) (void); |
16 | extern void (*mach_get_model) (char *model); | 16 | extern void (*mach_get_model) (char *model); |
diff --git a/include/asm-m68k/string.h b/include/asm-m68k/string.h index 6c59215b285e..2eb7df1e0f5d 100644 --- a/include/asm-m68k/string.h +++ b/include/asm-m68k/string.h | |||
@@ -1,138 +1,114 @@ | |||
1 | #ifndef _M68K_STRING_H_ | 1 | #ifndef _M68K_STRING_H_ |
2 | #define _M68K_STRING_H_ | 2 | #define _M68K_STRING_H_ |
3 | 3 | ||
4 | #include <asm/setup.h> | 4 | #include <linux/types.h> |
5 | #include <asm/page.h> | 5 | #include <linux/compiler.h> |
6 | 6 | ||
7 | #define __HAVE_ARCH_STRCPY | 7 | static inline size_t __kernel_strlen(const char *s) |
8 | static inline char * strcpy(char * dest,const char *src) | ||
9 | { | 8 | { |
10 | char *xdest = dest; | 9 | const char *sc; |
11 | |||
12 | __asm__ __volatile__ | ||
13 | ("1:\tmoveb %1@+,%0@+\n\t" | ||
14 | "jne 1b" | ||
15 | : "=a" (dest), "=a" (src) | ||
16 | : "0" (dest), "1" (src) : "memory"); | ||
17 | return xdest; | ||
18 | } | ||
19 | 10 | ||
20 | #define __HAVE_ARCH_STRNCPY | 11 | for (sc = s; *sc++; ) |
21 | static inline char * strncpy(char *dest, const char *src, size_t n) | 12 | ; |
22 | { | 13 | return sc - s - 1; |
23 | char *xdest = dest; | ||
24 | |||
25 | if (n == 0) | ||
26 | return xdest; | ||
27 | |||
28 | __asm__ __volatile__ | ||
29 | ("1:\tmoveb %1@+,%0@+\n\t" | ||
30 | "jeq 2f\n\t" | ||
31 | "subql #1,%2\n\t" | ||
32 | "jne 1b\n\t" | ||
33 | "2:" | ||
34 | : "=a" (dest), "=a" (src), "=d" (n) | ||
35 | : "0" (dest), "1" (src), "2" (n) | ||
36 | : "memory"); | ||
37 | return xdest; | ||
38 | } | 14 | } |
39 | 15 | ||
40 | #define __HAVE_ARCH_STRCAT | 16 | static inline char *__kernel_strcpy(char *dest, const char *src) |
41 | static inline char * strcat(char * dest, const char * src) | ||
42 | { | 17 | { |
43 | char *tmp = dest; | 18 | char *xdest = dest; |
44 | 19 | ||
45 | while (*dest) | 20 | asm volatile ("\n" |
46 | dest++; | 21 | "1: move.b (%1)+,(%0)+\n" |
47 | while ((*dest++ = *src++)) | 22 | " jne 1b" |
48 | ; | 23 | : "+a" (dest), "+a" (src) |
49 | 24 | : : "memory"); | |
50 | return tmp; | 25 | return xdest; |
51 | } | 26 | } |
52 | 27 | ||
53 | #define __HAVE_ARCH_STRNCAT | 28 | #ifndef __IN_STRING_C |
54 | static inline char * strncat(char *dest, const char *src, size_t count) | ||
55 | { | ||
56 | char *tmp = dest; | ||
57 | |||
58 | if (count) { | ||
59 | while (*dest) | ||
60 | dest++; | ||
61 | while ((*dest++ = *src++)) { | ||
62 | if (--count == 0) { | ||
63 | *dest++='\0'; | ||
64 | break; | ||
65 | } | ||
66 | } | ||
67 | } | ||
68 | 29 | ||
69 | return tmp; | 30 | #define __HAVE_ARCH_STRLEN |
70 | } | 31 | #define strlen(s) (__builtin_constant_p(s) ? \ |
32 | __builtin_strlen(s) : \ | ||
33 | __kernel_strlen(s)) | ||
71 | 34 | ||
72 | #define __HAVE_ARCH_STRCHR | 35 | #define __HAVE_ARCH_STRNLEN |
73 | static inline char * strchr(const char * s, int c) | 36 | static inline size_t strnlen(const char *s, size_t count) |
74 | { | 37 | { |
75 | const char ch = c; | 38 | const char *sc = s; |
76 | 39 | ||
77 | for(; *s != ch; ++s) | 40 | asm volatile ("\n" |
78 | if (*s == '\0') | 41 | "1: subq.l #1,%1\n" |
79 | return( NULL ); | 42 | " jcs 2f\n" |
80 | return( (char *) s); | 43 | " tst.b (%0)+\n" |
44 | " jne 1b\n" | ||
45 | " subq.l #1,%0\n" | ||
46 | "2:" | ||
47 | : "+a" (sc), "+d" (count)); | ||
48 | return sc - s; | ||
81 | } | 49 | } |
82 | 50 | ||
83 | /* strstr !! */ | 51 | #define __HAVE_ARCH_STRCPY |
52 | #if __GNUC__ >= 4 | ||
53 | #define strcpy(d, s) (__builtin_constant_p(s) && \ | ||
54 | __builtin_strlen(s) <= 32 ? \ | ||
55 | __builtin_strcpy(d, s) : \ | ||
56 | __kernel_strcpy(d, s)) | ||
57 | #else | ||
58 | #define strcpy(d, s) __kernel_strcpy(d, s) | ||
59 | #endif | ||
84 | 60 | ||
85 | #define __HAVE_ARCH_STRLEN | 61 | #define __HAVE_ARCH_STRNCPY |
86 | static inline size_t strlen(const char * s) | 62 | static inline char *strncpy(char *dest, const char *src, size_t n) |
87 | { | 63 | { |
88 | const char *sc; | 64 | char *xdest = dest; |
89 | for (sc = s; *sc != '\0'; ++sc) ; | 65 | |
90 | return(sc - s); | 66 | asm volatile ("\n" |
67 | " jra 2f\n" | ||
68 | "1: move.b (%1),(%0)+\n" | ||
69 | " jeq 2f\n" | ||
70 | " addq.l #1,%1\n" | ||
71 | "2: subq.l #1,%2\n" | ||
72 | " jcc 1b\n" | ||
73 | : "+a" (dest), "+a" (src), "+d" (n) | ||
74 | : : "memory"); | ||
75 | return xdest; | ||
91 | } | 76 | } |
92 | 77 | ||
93 | /* strnlen !! */ | 78 | #define __HAVE_ARCH_STRCAT |
79 | #define strcat(d, s) ({ \ | ||
80 | char *__d = (d); \ | ||
81 | strcpy(__d + strlen(__d), (s)); \ | ||
82 | }) | ||
94 | 83 | ||
95 | #define __HAVE_ARCH_STRCMP | 84 | #define __HAVE_ARCH_STRCHR |
96 | static inline int strcmp(const char * cs,const char * ct) | 85 | static inline char *strchr(const char *s, int c) |
97 | { | 86 | { |
98 | char __res; | 87 | char sc, ch = c; |
99 | 88 | ||
100 | __asm__ | 89 | for (; (sc = *s++) != ch; ) { |
101 | ("1:\tmoveb %0@+,%2\n\t" /* get *cs */ | 90 | if (!sc) |
102 | "cmpb %1@+,%2\n\t" /* compare a byte */ | 91 | return NULL; |
103 | "jne 2f\n\t" /* not equal, break out */ | 92 | } |
104 | "tstb %2\n\t" /* at end of cs? */ | 93 | return (char *)s - 1; |
105 | "jne 1b\n\t" /* no, keep going */ | ||
106 | "jra 3f\n\t" /* strings are equal */ | ||
107 | "2:\tsubb %1@-,%2\n\t" /* *cs - *ct */ | ||
108 | "3:" | ||
109 | : "=a" (cs), "=a" (ct), "=d" (__res) | ||
110 | : "0" (cs), "1" (ct)); | ||
111 | return __res; | ||
112 | } | 94 | } |
113 | 95 | ||
114 | #define __HAVE_ARCH_STRNCMP | 96 | #define __HAVE_ARCH_STRCMP |
115 | static inline int strncmp(const char * cs,const char * ct,size_t count) | 97 | static inline int strcmp(const char *cs, const char *ct) |
116 | { | 98 | { |
117 | char __res; | 99 | char res; |
118 | 100 | ||
119 | if (!count) | 101 | asm ("\n" |
120 | return 0; | 102 | "1: move.b (%0)+,%2\n" /* get *cs */ |
121 | __asm__ | 103 | " cmp.b (%1)+,%2\n" /* compare a byte */ |
122 | ("1:\tmovb %0@+,%3\n\t" /* get *cs */ | 104 | " jne 2f\n" /* not equal, break out */ |
123 | "cmpb %1@+,%3\n\t" /* compare a byte */ | 105 | " tst.b %2\n" /* at end of cs? */ |
124 | "jne 3f\n\t" /* not equal, break out */ | 106 | " jne 1b\n" /* no, keep going */ |
125 | "tstb %3\n\t" /* at end of cs? */ | 107 | " jra 3f\n" /* strings are equal */ |
126 | "jeq 4f\n\t" /* yes, all done */ | 108 | "2: sub.b -(%1),%2\n" /* *cs - *ct */ |
127 | "subql #1,%2\n\t" /* no, adjust count */ | 109 | "3:" |
128 | "jne 1b\n\t" /* more to do, keep going */ | 110 | : "+a" (cs), "+a" (ct), "=d" (res)); |
129 | "2:\tmoveq #0,%3\n\t" /* strings are equal */ | 111 | return res; |
130 | "jra 4f\n\t" | ||
131 | "3:\tsubb %1@-,%3\n\t" /* *cs - *ct */ | ||
132 | "4:" | ||
133 | : "=a" (cs), "=a" (ct), "=d" (count), "=d" (__res) | ||
134 | : "0" (cs), "1" (ct), "2" (count)); | ||
135 | return __res; | ||
136 | } | 112 | } |
137 | 113 | ||
138 | #define __HAVE_ARCH_MEMSET | 114 | #define __HAVE_ARCH_MEMSET |
@@ -150,4 +126,6 @@ extern void *memmove(void *, const void *, __kernel_size_t); | |||
150 | extern int memcmp(const void *, const void *, __kernel_size_t); | 126 | extern int memcmp(const void *, const void *, __kernel_size_t); |
151 | #define memcmp(d, s, n) __builtin_memcmp(d, s, n) | 127 | #define memcmp(d, s, n) __builtin_memcmp(d, s, n) |
152 | 128 | ||
129 | #endif | ||
130 | |||
153 | #endif /* _M68K_STRING_H_ */ | 131 | #endif /* _M68K_STRING_H_ */ |
diff --git a/include/asm-m68k/sun3xflop.h b/include/asm-m68k/sun3xflop.h index ca8cc4113843..32c45f84ac60 100644 --- a/include/asm-m68k/sun3xflop.h +++ b/include/asm-m68k/sun3xflop.h | |||
@@ -111,8 +111,7 @@ static void sun3x_82072_fd_outb(unsigned char value, int port) | |||
111 | } | 111 | } |
112 | 112 | ||
113 | 113 | ||
114 | asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id, | 114 | asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id) |
115 | struct pt_regs * regs) | ||
116 | { | 115 | { |
117 | register unsigned char st; | 116 | register unsigned char st; |
118 | 117 | ||
@@ -125,7 +124,7 @@ asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id, | |||
125 | static int dma_wait=0; | 124 | static int dma_wait=0; |
126 | #endif | 125 | #endif |
127 | if(!doing_pdma) { | 126 | if(!doing_pdma) { |
128 | floppy_interrupt(irq, dev_id, regs); | 127 | floppy_interrupt(irq, dev_id); |
129 | return IRQ_HANDLED; | 128 | return IRQ_HANDLED; |
130 | } | 129 | } |
131 | 130 | ||
@@ -189,7 +188,7 @@ asmlinkage irqreturn_t sun3xflop_hardint(int irq, void *dev_id, | |||
189 | dma_wait=0; | 188 | dma_wait=0; |
190 | #endif | 189 | #endif |
191 | 190 | ||
192 | floppy_interrupt(irq, dev_id, regs); | 191 | floppy_interrupt(irq, dev_id); |
193 | return IRQ_HANDLED; | 192 | return IRQ_HANDLED; |
194 | } | 193 | } |
195 | 194 | ||
diff --git a/include/asm-m68k/system.h b/include/asm-m68k/system.h index 131a0cb0f491..243dd13e6bfc 100644 --- a/include/asm-m68k/system.h +++ b/include/asm-m68k/system.h | |||
@@ -78,13 +78,13 @@ static inline int irqs_disabled(void) | |||
78 | #define mb() barrier() | 78 | #define mb() barrier() |
79 | #define rmb() barrier() | 79 | #define rmb() barrier() |
80 | #define wmb() barrier() | 80 | #define wmb() barrier() |
81 | #define read_barrier_depends() do { } while(0) | 81 | #define read_barrier_depends() ((void)0) |
82 | #define set_mb(var, value) do { xchg(&var, value); } while (0) | 82 | #define set_mb(var, value) ({ (var) = (value); wmb(); }) |
83 | 83 | ||
84 | #define smp_mb() barrier() | 84 | #define smp_mb() barrier() |
85 | #define smp_rmb() barrier() | 85 | #define smp_rmb() barrier() |
86 | #define smp_wmb() barrier() | 86 | #define smp_wmb() barrier() |
87 | #define smp_read_barrier_depends() do { } while(0) | 87 | #define smp_read_barrier_depends() ((void)0) |
88 | 88 | ||
89 | 89 | ||
90 | #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) | 90 | #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) |
diff --git a/include/asm-m68k/user.h b/include/asm-m68k/user.h index e8d5a64c7e79..d7c0b109bd45 100644 --- a/include/asm-m68k/user.h +++ b/include/asm-m68k/user.h | |||
@@ -81,7 +81,7 @@ struct user{ | |||
81 | unsigned long magic; /* To uniquely identify a core file */ | 81 | unsigned long magic; /* To uniquely identify a core file */ |
82 | char u_comm[32]; /* User command that was responsible */ | 82 | char u_comm[32]; /* User command that was responsible */ |
83 | }; | 83 | }; |
84 | #define NBPG PAGE_SIZE | 84 | #define NBPG 4096 |
85 | #define UPAGES 1 | 85 | #define UPAGES 1 |
86 | #define HOST_TEXT_START_ADDR (u.start_code) | 86 | #define HOST_TEXT_START_ADDR (u.start_code) |
87 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) | 87 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) |
diff --git a/include/asm-parisc/irq_regs.h b/include/asm-parisc/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-parisc/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-s390/hardirq.h b/include/asm-s390/hardirq.h index e84b7ef54aac..c2f6a8782d31 100644 --- a/include/asm-s390/hardirq.h +++ b/include/asm-s390/hardirq.h | |||
@@ -32,6 +32,6 @@ typedef struct { | |||
32 | 32 | ||
33 | #define HARDIRQ_BITS 8 | 33 | #define HARDIRQ_BITS 8 |
34 | 34 | ||
35 | extern void account_ticks(struct pt_regs *); | 35 | extern void account_ticks(void); |
36 | 36 | ||
37 | #endif /* __ASM_HARDIRQ_H */ | 37 | #endif /* __ASM_HARDIRQ_H */ |
diff --git a/include/asm-s390/irq_regs.h b/include/asm-s390/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-s390/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-s390/percpu.h b/include/asm-s390/percpu.h index 495ad99c7635..9ea7f1023e57 100644 --- a/include/asm-s390/percpu.h +++ b/include/asm-s390/percpu.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #if defined(__s390x__) && defined(MODULE) | 16 | #if defined(__s390x__) && defined(MODULE) |
17 | 17 | ||
18 | #define __reloc_hide(var,offset) (*({ \ | 18 | #define __reloc_hide(var,offset) (*({ \ |
19 | extern int simple_indentifier_##var(void); \ | 19 | extern int simple_identifier_##var(void); \ |
20 | unsigned long *__ptr; \ | 20 | unsigned long *__ptr; \ |
21 | asm ( "larl %0,per_cpu__"#var"@GOTENT" \ | 21 | asm ( "larl %0,per_cpu__"#var"@GOTENT" \ |
22 | : "=a" (__ptr) : "X" (per_cpu__##var) ); \ | 22 | : "=a" (__ptr) : "X" (per_cpu__##var) ); \ |
@@ -25,7 +25,7 @@ | |||
25 | #else | 25 | #else |
26 | 26 | ||
27 | #define __reloc_hide(var, offset) (*({ \ | 27 | #define __reloc_hide(var, offset) (*({ \ |
28 | extern int simple_indentifier_##var(void); \ | 28 | extern int simple_identifier_##var(void); \ |
29 | unsigned long __ptr; \ | 29 | unsigned long __ptr; \ |
30 | asm ( "" : "=a" (__ptr) : "0" (&per_cpu__##var) ); \ | 30 | asm ( "" : "=a" (__ptr) : "0" (&per_cpu__##var) ); \ |
31 | (typeof(&per_cpu__##var)) (__ptr + (offset)); })) | 31 | (typeof(&per_cpu__##var)) (__ptr + (offset)); })) |
diff --git a/include/asm-s390/s390_ext.h b/include/asm-s390/s390_ext.h index e9a2862b230d..df9b1017b703 100644 --- a/include/asm-s390/s390_ext.h +++ b/include/asm-s390/s390_ext.h | |||
@@ -10,7 +10,7 @@ | |||
10 | * Martin Schwidefsky (schwidefsky@de.ibm.com) | 10 | * Martin Schwidefsky (schwidefsky@de.ibm.com) |
11 | */ | 11 | */ |
12 | 12 | ||
13 | typedef void (*ext_int_handler_t)(struct pt_regs *regs, __u16 code); | 13 | typedef void (*ext_int_handler_t)(__u16 code); |
14 | 14 | ||
15 | /* | 15 | /* |
16 | * Warning: if you change ext_int_info_t you have to change the | 16 | * Warning: if you change ext_int_info_t you have to change the |
diff --git a/include/asm-um/irq_regs.h b/include/asm-um/irq_regs.h new file mode 100644 index 000000000000..3dd9c0b70270 --- /dev/null +++ b/include/asm-um/irq_regs.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/irq_regs.h> | |||
diff --git a/include/asm-x86_64/percpu.h b/include/asm-x86_64/percpu.h index 285756010c51..5ed0ef340842 100644 --- a/include/asm-x86_64/percpu.h +++ b/include/asm-x86_64/percpu.h | |||
@@ -32,13 +32,13 @@ | |||
32 | 32 | ||
33 | /* var is in discarded region: offset to particular copy we want */ | 33 | /* var is in discarded region: offset to particular copy we want */ |
34 | #define per_cpu(var, cpu) (*({ \ | 34 | #define per_cpu(var, cpu) (*({ \ |
35 | extern int simple_indentifier_##var(void); \ | 35 | extern int simple_identifier_##var(void); \ |
36 | RELOC_HIDE(&per_cpu__##var, __per_cpu_offset(cpu)); })) | 36 | RELOC_HIDE(&per_cpu__##var, __per_cpu_offset(cpu)); })) |
37 | #define __get_cpu_var(var) (*({ \ | 37 | #define __get_cpu_var(var) (*({ \ |
38 | extern int simple_indentifier_##var(void); \ | 38 | extern int simple_identifier_##var(void); \ |
39 | RELOC_HIDE(&per_cpu__##var, __my_cpu_offset()); })) | 39 | RELOC_HIDE(&per_cpu__##var, __my_cpu_offset()); })) |
40 | #define __raw_get_cpu_var(var) (*({ \ | 40 | #define __raw_get_cpu_var(var) (*({ \ |
41 | extern int simple_indentifier_##var(void); \ | 41 | extern int simple_identifier_##var(void); \ |
42 | RELOC_HIDE(&per_cpu__##var, __my_cpu_offset()); })) | 42 | RELOC_HIDE(&per_cpu__##var, __my_cpu_offset()); })) |
43 | 43 | ||
44 | /* A macro to avoid #include hell... */ | 44 | /* A macro to avoid #include hell... */ |
diff --git a/include/linux/mm.h b/include/linux/mm.h index b7966ab8cb6a..26146623be2f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -593,6 +593,7 @@ static inline int page_mapped(struct page *page) | |||
593 | */ | 593 | */ |
594 | #define NOPAGE_SIGBUS (NULL) | 594 | #define NOPAGE_SIGBUS (NULL) |
595 | #define NOPAGE_OOM ((struct page *) (-1)) | 595 | #define NOPAGE_OOM ((struct page *) (-1)) |
596 | #define NOPAGE_REFAULT ((struct page *) (-2)) /* Return to userspace, rerun */ | ||
596 | 597 | ||
597 | /* | 598 | /* |
598 | * Error return values for the *_nopfn functions | 599 | * Error return values for the *_nopfn functions |
diff --git a/include/linux/mmc/protocol.h b/include/linux/mmc/protocol.h index 81c3f77f652c..08dec8d9e703 100644 --- a/include/linux/mmc/protocol.h +++ b/include/linux/mmc/protocol.h | |||
@@ -83,6 +83,7 @@ | |||
83 | 83 | ||
84 | /* Application commands */ | 84 | /* Application commands */ |
85 | #define SD_APP_SET_BUS_WIDTH 6 /* ac [1:0] bus width R1 */ | 85 | #define SD_APP_SET_BUS_WIDTH 6 /* ac [1:0] bus width R1 */ |
86 | #define SD_APP_SEND_NUM_WR_BLKS 22 /* adtc R1 */ | ||
86 | #define SD_APP_OP_COND 41 /* bcr [31:0] OCR R3 */ | 87 | #define SD_APP_OP_COND 41 /* bcr [31:0] OCR R3 */ |
87 | #define SD_APP_SEND_SCR 51 /* adtc R1 */ | 88 | #define SD_APP_SEND_SCR 51 /* adtc R1 */ |
88 | 89 | ||
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 46ec72fa2c84..600e3d387ffc 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -19,7 +19,7 @@ | |||
19 | * we force a syntax error here if it isn't. | 19 | * we force a syntax error here if it isn't. |
20 | */ | 20 | */ |
21 | #define get_cpu_var(var) (*({ \ | 21 | #define get_cpu_var(var) (*({ \ |
22 | extern int simple_indentifier_##var(void); \ | 22 | extern int simple_identifier_##var(void); \ |
23 | preempt_disable(); \ | 23 | preempt_disable(); \ |
24 | &__get_cpu_var(var); })) | 24 | &__get_cpu_var(var); })) |
25 | #define put_cpu_var(var) preempt_enable() | 25 | #define put_cpu_var(var) preempt_enable() |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 331f4502e92b..6735c1cf334c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1065,9 +1065,10 @@ static inline int pid_alive(struct task_struct *p) | |||
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | /** | 1067 | /** |
1068 | * is_init - check if a task structure is the first user space | 1068 | * is_init - check if a task structure is init |
1069 | * task the kernel created. | 1069 | * @tsk: Task structure to be checked. |
1070 | * @p: Task structure to be checked. | 1070 | * |
1071 | * Check if a task structure is the first user space task the kernel created. | ||
1071 | */ | 1072 | */ |
1072 | static inline int is_init(struct task_struct *tsk) | 1073 | static inline int is_init(struct task_struct *tsk) |
1073 | { | 1074 | { |
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index d6288e89fd9d..9c9a8ad92477 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
@@ -57,7 +57,8 @@ struct svc_serv { | |||
57 | struct svc_stat * sv_stats; /* RPC statistics */ | 57 | struct svc_stat * sv_stats; /* RPC statistics */ |
58 | spinlock_t sv_lock; | 58 | spinlock_t sv_lock; |
59 | unsigned int sv_nrthreads; /* # of server threads */ | 59 | unsigned int sv_nrthreads; /* # of server threads */ |
60 | unsigned int sv_bufsz; /* datagram buffer size */ | 60 | unsigned int sv_max_payload; /* datagram payload size */ |
61 | unsigned int sv_max_mesg; /* max_payload + 1 page for overheads */ | ||
61 | unsigned int sv_xdrsize; /* XDR buffer size */ | 62 | unsigned int sv_xdrsize; /* XDR buffer size */ |
62 | 63 | ||
63 | struct list_head sv_permsocks; /* all permanent sockets */ | 64 | struct list_head sv_permsocks; /* all permanent sockets */ |
diff --git a/include/linux/timex.h b/include/linux/timex.h index 049dfe4a11f2..db501dc23c29 100644 --- a/include/linux/timex.h +++ b/include/linux/timex.h | |||
@@ -293,6 +293,9 @@ extern void second_overflow(void); | |||
293 | extern void update_ntp_one_tick(void); | 293 | extern void update_ntp_one_tick(void); |
294 | extern int do_adjtimex(struct timex *); | 294 | extern int do_adjtimex(struct timex *); |
295 | 295 | ||
296 | /* Don't use! Compatibility define for existing users. */ | ||
297 | #define tickadj (500/HZ ? : 1) | ||
298 | |||
296 | #endif /* KERNEL */ | 299 | #endif /* KERNEL */ |
297 | 300 | ||
298 | #endif /* LINUX_TIMEX_H */ | 301 | #endif /* LINUX_TIMEX_H */ |
diff --git a/include/sound/core.h b/include/sound/core.h index b056ea925ecf..fa1ca0127bab 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -89,10 +89,10 @@ struct snd_device { | |||
89 | struct snd_monitor_file { | 89 | struct snd_monitor_file { |
90 | struct file *file; | 90 | struct file *file; |
91 | struct snd_monitor_file *next; | 91 | struct snd_monitor_file *next; |
92 | const struct file_operations *disconnected_f_op; | ||
93 | struct list_head shutdown_list; | ||
92 | }; | 94 | }; |
93 | 95 | ||
94 | struct snd_shutdown_f_ops; /* define it later in init.c */ | ||
95 | |||
96 | /* main structure for soundcard */ | 96 | /* main structure for soundcard */ |
97 | 97 | ||
98 | struct snd_card { | 98 | struct snd_card { |
diff --git a/include/sound/version.h b/include/sound/version.h index 2ee849d0e198..4ad86eb6440b 100644 --- a/include/sound/version.h +++ b/include/sound/version.h | |||
@@ -1,3 +1,3 @@ | |||
1 | /* include/version.h. Generated by configure. */ | 1 | /* include/version.h. Generated by alsa/ksync script. */ |
2 | #define CONFIG_SND_VERSION "1.0.12rc1" | 2 | #define CONFIG_SND_VERSION "1.0.13" |
3 | #define CONFIG_SND_DATE " (Thu Jun 22 13:55:50 2006 UTC)" | 3 | #define CONFIG_SND_DATE " (Fri Oct 06 18:28:19 2006 UTC)" |