diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 13:21:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 13:21:22 -0500 |
commit | 45bfe98bd790b5ded00462cd582effcfb42263cc (patch) | |
tree | d4a1f2c5303dda106635b615f8f40ea9104bf25e /arch/powerpc/platforms | |
parent | 9f5974c8734d83d4ab7096ed98136a82f41210d6 (diff) | |
parent | 624cee31bcb14bfd85559fbec5dd7bb833542965 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
Fix up delete/modify conflict of arch/ppc/kernel/process.c by hand (it's
gone, gone, gone).
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/powerpc/platforms')
21 files changed, 82 insertions, 59 deletions
diff --git a/arch/powerpc/platforms/cell/pervasive.c b/arch/powerpc/platforms/cell/pervasive.c index 85152544c153..e0e051c675dd 100644 --- a/arch/powerpc/platforms/cell/pervasive.c +++ b/arch/powerpc/platforms/cell/pervasive.c | |||
@@ -142,7 +142,7 @@ static void cbe_idle(void) | |||
142 | } | 142 | } |
143 | } | 143 | } |
144 | 144 | ||
145 | int cbe_system_reset_exception(struct pt_regs *regs) | 145 | static int cbe_system_reset_exception(struct pt_regs *regs) |
146 | { | 146 | { |
147 | switch (regs->msr & SRR1_WAKEMASK) { | 147 | switch (regs->msr & SRR1_WAKEMASK) { |
148 | case SRR1_WAKEEE: | 148 | case SRR1_WAKEEE: |
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c index 18e25e65c04b..b33a4443f5a9 100644 --- a/arch/powerpc/platforms/cell/setup.c +++ b/arch/powerpc/platforms/cell/setup.c | |||
@@ -57,7 +57,7 @@ | |||
57 | #define DBG(fmt...) | 57 | #define DBG(fmt...) |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | void cell_show_cpuinfo(struct seq_file *m) | 60 | static void cell_show_cpuinfo(struct seq_file *m) |
61 | { | 61 | { |
62 | struct device_node *root; | 62 | struct device_node *root; |
63 | const char *model = ""; | 63 | const char *model = ""; |
diff --git a/arch/powerpc/platforms/cell/spufs/syscalls.c b/arch/powerpc/platforms/cell/spufs/syscalls.c index d549aa7ebea6..e6565a949ddc 100644 --- a/arch/powerpc/platforms/cell/spufs/syscalls.c +++ b/arch/powerpc/platforms/cell/spufs/syscalls.c | |||
@@ -29,7 +29,9 @@ | |||
29 | * value of the spu_status register after the SPU has stopped. | 29 | * value of the spu_status register after the SPU has stopped. |
30 | * | 30 | * |
31 | */ | 31 | */ |
32 | long do_spu_run(struct file *filp, __u32 __user *unpc, __u32 __user *ustatus) | 32 | static long do_spu_run(struct file *filp, |
33 | __u32 __user *unpc, | ||
34 | __u32 __user *ustatus) | ||
33 | { | 35 | { |
34 | long ret; | 36 | long ret; |
35 | struct spufs_inode_info *i; | 37 | struct spufs_inode_info *i; |
diff --git a/arch/powerpc/platforms/iseries/Makefile b/arch/powerpc/platforms/iseries/Makefile index 127b465308be..ce8c0b943fa0 100644 --- a/arch/powerpc/platforms/iseries/Makefile +++ b/arch/powerpc/platforms/iseries/Makefile | |||
@@ -1,8 +1,8 @@ | |||
1 | EXTRA_CFLAGS += -mno-minimal-toc | 1 | EXTRA_CFLAGS += -mno-minimal-toc |
2 | 2 | ||
3 | obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \ | 3 | obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o mf.o lpevents.o \ |
4 | hvcall.o proc.o htab.o iommu.o misc.o | 4 | hvcall.o proc.o htab.o iommu.o misc.o irq.o |
5 | obj-$(CONFIG_PCI) += pci.o irq.o vpdinfo.o | 5 | obj-$(CONFIG_PCI) += pci.o vpdinfo.o |
6 | obj-$(CONFIG_IBMVIO) += vio.o | 6 | obj-$(CONFIG_IBMVIO) += vio.o |
7 | obj-$(CONFIG_SMP) += smp.o | 7 | obj-$(CONFIG_SMP) += smp.o |
8 | obj-$(CONFIG_VIOPATH) += viopath.o | 8 | obj-$(CONFIG_VIOPATH) += viopath.o |
diff --git a/arch/powerpc/platforms/iseries/iommu.c b/arch/powerpc/platforms/iseries/iommu.c index 2b54eeb2c899..bea0b703f409 100644 --- a/arch/powerpc/platforms/iseries/iommu.c +++ b/arch/powerpc/platforms/iseries/iommu.c | |||
@@ -34,6 +34,8 @@ | |||
34 | #include <asm/pci-bridge.h> | 34 | #include <asm/pci-bridge.h> |
35 | #include <asm/iseries/hv_call_xm.h> | 35 | #include <asm/iseries/hv_call_xm.h> |
36 | 36 | ||
37 | #include "iommu.h" | ||
38 | |||
37 | extern struct list_head iSeries_Global_Device_List; | 39 | extern struct list_head iSeries_Global_Device_List; |
38 | 40 | ||
39 | 41 | ||
diff --git a/arch/powerpc/platforms/iseries/iommu.h b/arch/powerpc/platforms/iseries/iommu.h new file mode 100644 index 000000000000..cb5658fbe657 --- /dev/null +++ b/arch/powerpc/platforms/iseries/iommu.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef _PLATFORMS_ISERIES_IOMMU_H | ||
2 | #define _PLATFORMS_ISERIES_IOMMU_H | ||
3 | |||
4 | /* | ||
5 | * Copyright (C) 2005 Stephen Rothwell, IBM Corporation | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License as published by | ||
9 | * the Free Software Foundation; either version 2 of the License, or | ||
10 | * (at your option) any later version. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program; if not, write to the: | ||
19 | * Free Software Foundation, Inc., | ||
20 | * 59 Temple Place, Suite 330, | ||
21 | * Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | |||
24 | struct device_node; | ||
25 | struct iommu_table; | ||
26 | |||
27 | /* Creates table for an individual device node */ | ||
28 | extern void iommu_devnode_init_iSeries(struct device_node *dn); | ||
29 | |||
30 | /* Get table parameters from HV */ | ||
31 | extern void iommu_table_getparms_iSeries(unsigned long busno, | ||
32 | unsigned char slotno, unsigned char virtbus, | ||
33 | struct iommu_table *tbl); | ||
34 | |||
35 | #endif /* _PLATFORMS_ISERIES_IOMMU_H */ | ||
diff --git a/arch/powerpc/platforms/iseries/irq.c b/arch/powerpc/platforms/iseries/irq.c index 42e978e4897a..83442ea77476 100644 --- a/arch/powerpc/platforms/iseries/irq.c +++ b/arch/powerpc/platforms/iseries/irq.c | |||
@@ -48,6 +48,8 @@ | |||
48 | extern void iSeries_smp_message_recv(struct pt_regs *); | 48 | extern void iSeries_smp_message_recv(struct pt_regs *); |
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | #ifdef CONFIG_PCI | ||
52 | |||
51 | enum pci_event_type { | 53 | enum pci_event_type { |
52 | pe_bus_created = 0, /* PHB has been created */ | 54 | pe_bus_created = 0, /* PHB has been created */ |
53 | pe_bus_error = 1, /* PHB has failed */ | 55 | pe_bus_error = 1, /* PHB has failed */ |
@@ -147,20 +149,11 @@ static void int_received(struct pci_event *event, struct pt_regs *regs) | |||
147 | static void pci_event_handler(struct HvLpEvent *event, struct pt_regs *regs) | 149 | static void pci_event_handler(struct HvLpEvent *event, struct pt_regs *regs) |
148 | { | 150 | { |
149 | if (event && (event->xType == HvLpEvent_Type_PciIo)) { | 151 | if (event && (event->xType == HvLpEvent_Type_PciIo)) { |
150 | switch (event->xFlags.xFunction) { | 152 | if (hvlpevent_is_int(event)) |
151 | case HvLpEvent_Function_Int: | ||
152 | int_received((struct pci_event *)event, regs); | 153 | int_received((struct pci_event *)event, regs); |
153 | break; | 154 | else |
154 | case HvLpEvent_Function_Ack: | ||
155 | printk(KERN_ERR | 155 | printk(KERN_ERR |
156 | "pci_event_handler: unexpected ack received\n"); | 156 | "pci_event_handler: unexpected ack received\n"); |
157 | break; | ||
158 | default: | ||
159 | printk(KERN_ERR | ||
160 | "pci_event_handler: unexpected event function %d\n", | ||
161 | (int)event->xFlags.xFunction); | ||
162 | break; | ||
163 | } | ||
164 | } else if (event) | 157 | } else if (event) |
165 | printk(KERN_ERR | 158 | printk(KERN_ERR |
166 | "pci_event_handler: Unrecognized PCI event type 0x%x\n", | 159 | "pci_event_handler: Unrecognized PCI event type 0x%x\n", |
@@ -334,6 +327,8 @@ int __init iSeries_allocate_IRQ(HvBusNumber bus, | |||
334 | return virtirq; | 327 | return virtirq; |
335 | } | 328 | } |
336 | 329 | ||
330 | #endif /* CONFIG_PCI */ | ||
331 | |||
337 | /* | 332 | /* |
338 | * Get the next pending IRQ. | 333 | * Get the next pending IRQ. |
339 | */ | 334 | */ |
@@ -353,6 +348,7 @@ int iSeries_get_irq(struct pt_regs *regs) | |||
353 | if (hvlpevent_is_pending()) | 348 | if (hvlpevent_is_pending()) |
354 | process_hvlpevents(regs); | 349 | process_hvlpevents(regs); |
355 | 350 | ||
351 | #ifdef CONFIG_PCI | ||
356 | if (num_pending_irqs) { | 352 | if (num_pending_irqs) { |
357 | spin_lock(&pending_irqs_lock); | 353 | spin_lock(&pending_irqs_lock); |
358 | for (irq = 0; irq < NR_IRQS; irq++) { | 354 | for (irq = 0; irq < NR_IRQS; irq++) { |
@@ -366,6 +362,7 @@ int iSeries_get_irq(struct pt_regs *regs) | |||
366 | if (irq >= NR_IRQS) | 362 | if (irq >= NR_IRQS) |
367 | irq = -2; | 363 | irq = -2; |
368 | } | 364 | } |
365 | #endif | ||
369 | 366 | ||
370 | return irq; | 367 | return irq; |
371 | } | 368 | } |
diff --git a/arch/powerpc/platforms/iseries/lpardata.c b/arch/powerpc/platforms/iseries/lpardata.c index ea72385aaf0a..438e2dba63b5 100644 --- a/arch/powerpc/platforms/iseries/lpardata.c +++ b/arch/powerpc/platforms/iseries/lpardata.c | |||
@@ -93,10 +93,7 @@ struct ItLpNaca itLpNaca = { | |||
93 | .xPirEnvironMode = 0, /* Piranha stuff */ | 93 | .xPirEnvironMode = 0, /* Piranha stuff */ |
94 | .xPirConsoleMode = 0, | 94 | .xPirConsoleMode = 0, |
95 | .xPirDasdMode = 0, | 95 | .xPirDasdMode = 0, |
96 | .xLparInstalled = 0, | 96 | .flags = 0, |
97 | .xSysPartitioned = 0, | ||
98 | .xHwSyncedTBs = 0, | ||
99 | .xIntProcUtilHmt = 0, | ||
100 | .xSpVpdFormat = 0, | 97 | .xSpVpdFormat = 0, |
101 | .xIntProcRatio = 0, | 98 | .xIntProcRatio = 0, |
102 | .xPlicVrmIndex = 0, /* VRM index of PLIC */ | 99 | .xPlicVrmIndex = 0, /* VRM index of PLIC */ |
diff --git a/arch/powerpc/platforms/iseries/lpevents.c b/arch/powerpc/platforms/iseries/lpevents.c index e9fb98bf895f..0b885300d1d1 100644 --- a/arch/powerpc/platforms/iseries/lpevents.c +++ b/arch/powerpc/platforms/iseries/lpevents.c | |||
@@ -53,7 +53,7 @@ static struct HvLpEvent * get_next_hvlpevent(void) | |||
53 | struct HvLpEvent * event; | 53 | struct HvLpEvent * event; |
54 | event = (struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr; | 54 | event = (struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr; |
55 | 55 | ||
56 | if (event->xFlags.xValid) { | 56 | if (hvlpevent_is_valid(event)) { |
57 | /* rmb() needed only for weakly consistent machines (regatta) */ | 57 | /* rmb() needed only for weakly consistent machines (regatta) */ |
58 | rmb(); | 58 | rmb(); |
59 | /* Set pointer to next potential event */ | 59 | /* Set pointer to next potential event */ |
@@ -84,7 +84,7 @@ int hvlpevent_is_pending(void) | |||
84 | 84 | ||
85 | next_event = (struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr; | 85 | next_event = (struct HvLpEvent *)hvlpevent_queue.xSlicCurEventPtr; |
86 | 86 | ||
87 | return next_event->xFlags.xValid | | 87 | return hvlpevent_is_valid(next_event) || |
88 | hvlpevent_queue.xPlicOverflowIntPending; | 88 | hvlpevent_queue.xPlicOverflowIntPending; |
89 | } | 89 | } |
90 | 90 | ||
@@ -101,18 +101,18 @@ static void hvlpevent_clear_valid(struct HvLpEvent * event) | |||
101 | switch (extra) { | 101 | switch (extra) { |
102 | case 3: | 102 | case 3: |
103 | tmp = (struct HvLpEvent*)((char*)event + 3 * LpEventAlign); | 103 | tmp = (struct HvLpEvent*)((char*)event + 3 * LpEventAlign); |
104 | tmp->xFlags.xValid = 0; | 104 | hvlpevent_invalidate(tmp); |
105 | case 2: | 105 | case 2: |
106 | tmp = (struct HvLpEvent*)((char*)event + 2 * LpEventAlign); | 106 | tmp = (struct HvLpEvent*)((char*)event + 2 * LpEventAlign); |
107 | tmp->xFlags.xValid = 0; | 107 | hvlpevent_invalidate(tmp); |
108 | case 1: | 108 | case 1: |
109 | tmp = (struct HvLpEvent*)((char*)event + 1 * LpEventAlign); | 109 | tmp = (struct HvLpEvent*)((char*)event + 1 * LpEventAlign); |
110 | tmp->xFlags.xValid = 0; | 110 | hvlpevent_invalidate(tmp); |
111 | } | 111 | } |
112 | 112 | ||
113 | mb(); | 113 | mb(); |
114 | 114 | ||
115 | event->xFlags.xValid = 0; | 115 | hvlpevent_invalidate(event); |
116 | } | 116 | } |
117 | 117 | ||
118 | void process_hvlpevents(struct pt_regs *regs) | 118 | void process_hvlpevents(struct pt_regs *regs) |
diff --git a/arch/powerpc/platforms/iseries/mf.c b/arch/powerpc/platforms/iseries/mf.c index 49e7e4b85847..a41d8b78c0cd 100644 --- a/arch/powerpc/platforms/iseries/mf.c +++ b/arch/powerpc/platforms/iseries/mf.c | |||
@@ -251,10 +251,7 @@ static struct pending_event *new_pending_event(void) | |||
251 | } | 251 | } |
252 | memset(ev, 0, sizeof(struct pending_event)); | 252 | memset(ev, 0, sizeof(struct pending_event)); |
253 | hev = &ev->event.hp_lp_event; | 253 | hev = &ev->event.hp_lp_event; |
254 | hev->xFlags.xValid = 1; | 254 | hev->flags = HV_LP_EVENT_VALID | HV_LP_EVENT_DO_ACK | HV_LP_EVENT_INT; |
255 | hev->xFlags.xAckType = HvLpEvent_AckType_ImmediateAck; | ||
256 | hev->xFlags.xAckInd = HvLpEvent_AckInd_DoAck; | ||
257 | hev->xFlags.xFunction = HvLpEvent_Function_Int; | ||
258 | hev->xType = HvLpEvent_Type_MachineFac; | 255 | hev->xType = HvLpEvent_Type_MachineFac; |
259 | hev->xSourceLp = HvLpConfig_getLpIndex(); | 256 | hev->xSourceLp = HvLpConfig_getLpIndex(); |
260 | hev->xTargetLp = primary_lp; | 257 | hev->xTargetLp = primary_lp; |
@@ -518,17 +515,10 @@ static void handle_ack(struct io_mf_lp_event *event) | |||
518 | static void hv_handler(struct HvLpEvent *event, struct pt_regs *regs) | 515 | static void hv_handler(struct HvLpEvent *event, struct pt_regs *regs) |
519 | { | 516 | { |
520 | if ((event != NULL) && (event->xType == HvLpEvent_Type_MachineFac)) { | 517 | if ((event != NULL) && (event->xType == HvLpEvent_Type_MachineFac)) { |
521 | switch(event->xFlags.xFunction) { | 518 | if (hvlpevent_is_ack(event)) |
522 | case HvLpEvent_Function_Ack: | ||
523 | handle_ack((struct io_mf_lp_event *)event); | 519 | handle_ack((struct io_mf_lp_event *)event); |
524 | break; | 520 | else |
525 | case HvLpEvent_Function_Int: | ||
526 | handle_int((struct io_mf_lp_event *)event); | 521 | handle_int((struct io_mf_lp_event *)event); |
527 | break; | ||
528 | default: | ||
529 | printk(KERN_ERR "mf.c: non ack/int event received\n"); | ||
530 | break; | ||
531 | } | ||
532 | } else | 522 | } else |
533 | printk(KERN_ERR "mf.c: alien event received\n"); | 523 | printk(KERN_ERR "mf.c: alien event received\n"); |
534 | } | 524 | } |
diff --git a/arch/powerpc/platforms/iseries/pci.c b/arch/powerpc/platforms/iseries/pci.c index dafc518fbb83..a19833b880e4 100644 --- a/arch/powerpc/platforms/iseries/pci.c +++ b/arch/powerpc/platforms/iseries/pci.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include "irq.h" | 43 | #include "irq.h" |
44 | #include "pci.h" | 44 | #include "pci.h" |
45 | #include "call_pci.h" | 45 | #include "call_pci.h" |
46 | #include "iommu.h" | ||
46 | 47 | ||
47 | extern unsigned long io_page_mask; | 48 | extern unsigned long io_page_mask; |
48 | 49 | ||
diff --git a/arch/powerpc/platforms/iseries/vio.c b/arch/powerpc/platforms/iseries/vio.c index 384360ee06ec..ad36ab0639f0 100644 --- a/arch/powerpc/platforms/iseries/vio.c +++ b/arch/powerpc/platforms/iseries/vio.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include <asm/iseries/hv_lp_config.h> | 22 | #include <asm/iseries/hv_lp_config.h> |
23 | #include <asm/iseries/hv_call_xm.h> | 23 | #include <asm/iseries/hv_call_xm.h> |
24 | 24 | ||
25 | #include "iommu.h" | ||
26 | |||
25 | struct device *iSeries_vio_dev = &vio_bus_device.dev; | 27 | struct device *iSeries_vio_dev = &vio_bus_device.dev; |
26 | EXPORT_SYMBOL(iSeries_vio_dev); | 28 | EXPORT_SYMBOL(iSeries_vio_dev); |
27 | 29 | ||
diff --git a/arch/powerpc/platforms/iseries/viopath.c b/arch/powerpc/platforms/iseries/viopath.c index 842672695598..622a30149b48 100644 --- a/arch/powerpc/platforms/iseries/viopath.c +++ b/arch/powerpc/platforms/iseries/viopath.c | |||
@@ -270,7 +270,7 @@ static void handleMonitorEvent(struct HvLpEvent *event) | |||
270 | * First see if this is just a normal monitor message from the | 270 | * First see if this is just a normal monitor message from the |
271 | * other partition | 271 | * other partition |
272 | */ | 272 | */ |
273 | if (event->xFlags.xFunction == HvLpEvent_Function_Int) { | 273 | if (hvlpevent_is_int(event)) { |
274 | remoteLp = event->xSourceLp; | 274 | remoteLp = event->xSourceLp; |
275 | if (!viopathStatus[remoteLp].isActive) | 275 | if (!viopathStatus[remoteLp].isActive) |
276 | sendMonMsg(remoteLp); | 276 | sendMonMsg(remoteLp); |
@@ -331,13 +331,12 @@ static void handleConfig(struct HvLpEvent *event) | |||
331 | { | 331 | { |
332 | if (!event) | 332 | if (!event) |
333 | return; | 333 | return; |
334 | if (event->xFlags.xFunction == HvLpEvent_Function_Int) { | 334 | if (hvlpevent_is_int(event)) { |
335 | printk(VIOPATH_KERN_WARN | 335 | printk(VIOPATH_KERN_WARN |
336 | "unexpected config request from partition %d", | 336 | "unexpected config request from partition %d", |
337 | event->xSourceLp); | 337 | event->xSourceLp); |
338 | 338 | ||
339 | if ((event->xFlags.xFunction == HvLpEvent_Function_Int) && | 339 | if (hvlpevent_need_ack(event)) { |
340 | (event->xFlags.xAckInd == HvLpEvent_AckInd_DoAck)) { | ||
341 | event->xRc = HvLpEvent_Rc_InvalidSubtype; | 340 | event->xRc = HvLpEvent_Rc_InvalidSubtype; |
342 | HvCallEvent_ackLpEvent(event); | 341 | HvCallEvent_ackLpEvent(event); |
343 | } | 342 | } |
@@ -377,7 +376,7 @@ static void vio_handleEvent(struct HvLpEvent *event, struct pt_regs *regs) | |||
377 | int subtype = (event->xSubtype & VIOMAJOR_SUBTYPE_MASK) | 376 | int subtype = (event->xSubtype & VIOMAJOR_SUBTYPE_MASK) |
378 | >> VIOMAJOR_SUBTYPE_SHIFT; | 377 | >> VIOMAJOR_SUBTYPE_SHIFT; |
379 | 378 | ||
380 | if (event->xFlags.xFunction == HvLpEvent_Function_Int) { | 379 | if (hvlpevent_is_int(event)) { |
381 | remoteLp = event->xSourceLp; | 380 | remoteLp = event->xSourceLp; |
382 | /* | 381 | /* |
383 | * The isActive is checked because if the hosting partition | 382 | * The isActive is checked because if the hosting partition |
@@ -436,8 +435,7 @@ static void vio_handleEvent(struct HvLpEvent *event, struct pt_regs *regs) | |||
436 | "unexpected virtual io event subtype %d from partition %d\n", | 435 | "unexpected virtual io event subtype %d from partition %d\n", |
437 | event->xSubtype, remoteLp); | 436 | event->xSubtype, remoteLp); |
438 | /* No handler. Ack if necessary */ | 437 | /* No handler. Ack if necessary */ |
439 | if ((event->xFlags.xFunction == HvLpEvent_Function_Int) && | 438 | if (hvlpevent_is_int(event) && hvlpevent_need_ack(event)) { |
440 | (event->xFlags.xAckInd == HvLpEvent_AckInd_DoAck)) { | ||
441 | event->xRc = HvLpEvent_Rc_InvalidSubtype; | 439 | event->xRc = HvLpEvent_Rc_InvalidSubtype; |
442 | HvCallEvent_ackLpEvent(event); | 440 | HvCallEvent_ackLpEvent(event); |
443 | } | 441 | } |
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 3b1a9d4fcbc6..89c4c3636161 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -278,7 +278,7 @@ static void __init l2cr_init(void) | |||
278 | } | 278 | } |
279 | #endif | 279 | #endif |
280 | 280 | ||
281 | void __init pmac_setup_arch(void) | 281 | static void __init pmac_setup_arch(void) |
282 | { | 282 | { |
283 | struct device_node *cpu, *ic; | 283 | struct device_node *cpu, *ic; |
284 | int *fp; | 284 | int *fp; |
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 17cea7f2afd3..83578313ee7e 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -208,10 +208,11 @@ static void __eeh_mark_slot (struct device_node *dn, int mode_flag) | |||
208 | { | 208 | { |
209 | while (dn) { | 209 | while (dn) { |
210 | if (PCI_DN(dn)) { | 210 | if (PCI_DN(dn)) { |
211 | PCI_DN(dn)->eeh_mode |= mode_flag; | ||
212 | |||
213 | /* Mark the pci device driver too */ | 211 | /* Mark the pci device driver too */ |
214 | struct pci_dev *dev = PCI_DN(dn)->pcidev; | 212 | struct pci_dev *dev = PCI_DN(dn)->pcidev; |
213 | |||
214 | PCI_DN(dn)->eeh_mode |= mode_flag; | ||
215 | |||
215 | if (dev && dev->driver) | 216 | if (dev && dev->driver) |
216 | dev->error_state = pci_channel_io_frozen; | 217 | dev->error_state = pci_channel_io_frozen; |
217 | 218 | ||
diff --git a/arch/powerpc/platforms/pseries/hvcserver.c b/arch/powerpc/platforms/pseries/hvcserver.c index 4d584172055a..22bfb5c89db9 100644 --- a/arch/powerpc/platforms/pseries/hvcserver.c +++ b/arch/powerpc/platforms/pseries/hvcserver.c | |||
@@ -40,7 +40,7 @@ MODULE_VERSION(HVCS_ARCH_VERSION); | |||
40 | * functions aren't performance sensitive, so this conversion isn't an | 40 | * functions aren't performance sensitive, so this conversion isn't an |
41 | * issue. | 41 | * issue. |
42 | */ | 42 | */ |
43 | int hvcs_convert(long to_convert) | 43 | static int hvcs_convert(long to_convert) |
44 | { | 44 | { |
45 | switch (to_convert) { | 45 | switch (to_convert) { |
46 | case H_Success: | 46 | case H_Success: |
@@ -91,7 +91,7 @@ int hvcs_free_partner_info(struct list_head *head) | |||
91 | EXPORT_SYMBOL(hvcs_free_partner_info); | 91 | EXPORT_SYMBOL(hvcs_free_partner_info); |
92 | 92 | ||
93 | /* Helper function for hvcs_get_partner_info */ | 93 | /* Helper function for hvcs_get_partner_info */ |
94 | int hvcs_next_partner(uint32_t unit_address, | 94 | static int hvcs_next_partner(uint32_t unit_address, |
95 | unsigned long last_p_partition_ID, | 95 | unsigned long last_p_partition_ID, |
96 | unsigned long last_p_unit_address, unsigned long *pi_buff) | 96 | unsigned long last_p_unit_address, unsigned long *pi_buff) |
97 | 97 | ||
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index 169f9148789c..48cfbfc43f99 100644 --- a/arch/powerpc/platforms/pseries/iommu.c +++ b/arch/powerpc/platforms/pseries/iommu.c | |||
@@ -51,8 +51,6 @@ | |||
51 | 51 | ||
52 | #define DBG(fmt...) | 52 | #define DBG(fmt...) |
53 | 53 | ||
54 | extern int is_python(struct device_node *); | ||
55 | |||
56 | static void tce_build_pSeries(struct iommu_table *tbl, long index, | 54 | static void tce_build_pSeries(struct iommu_table *tbl, long index, |
57 | long npages, unsigned long uaddr, | 55 | long npages, unsigned long uaddr, |
58 | enum dma_data_direction direction) | 56 | enum dma_data_direction direction) |
diff --git a/arch/powerpc/platforms/pseries/scanlog.c b/arch/powerpc/platforms/pseries/scanlog.c index 2edc947f7c44..50643496eb63 100644 --- a/arch/powerpc/platforms/pseries/scanlog.c +++ b/arch/powerpc/platforms/pseries/scanlog.c | |||
@@ -192,7 +192,7 @@ struct file_operations scanlog_fops = { | |||
192 | .release = scanlog_release, | 192 | .release = scanlog_release, |
193 | }; | 193 | }; |
194 | 194 | ||
195 | int __init scanlog_init(void) | 195 | static int __init scanlog_init(void) |
196 | { | 196 | { |
197 | struct proc_dir_entry *ent; | 197 | struct proc_dir_entry *ent; |
198 | 198 | ||
@@ -222,7 +222,7 @@ int __init scanlog_init(void) | |||
222 | return 0; | 222 | return 0; |
223 | } | 223 | } |
224 | 224 | ||
225 | void __exit scanlog_cleanup(void) | 225 | static void __exit scanlog_cleanup(void) |
226 | { | 226 | { |
227 | if (proc_ppc64_scan_log_dump) { | 227 | if (proc_ppc64_scan_log_dump) { |
228 | kfree(proc_ppc64_scan_log_dump->data); | 228 | kfree(proc_ppc64_scan_log_dump->data); |
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c index 8903cf63236a..68b7f086d63d 100644 --- a/arch/powerpc/platforms/pseries/setup.c +++ b/arch/powerpc/platforms/pseries/setup.c | |||
@@ -86,7 +86,7 @@ static void pseries_dedicated_idle(void); | |||
86 | 86 | ||
87 | struct mpic *pSeries_mpic; | 87 | struct mpic *pSeries_mpic; |
88 | 88 | ||
89 | void pSeries_show_cpuinfo(struct seq_file *m) | 89 | static void pSeries_show_cpuinfo(struct seq_file *m) |
90 | { | 90 | { |
91 | struct device_node *root; | 91 | struct device_node *root; |
92 | const char *model = ""; | 92 | const char *model = ""; |
diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c index 2f543cea9787..8e6b1ed1396e 100644 --- a/arch/powerpc/platforms/pseries/smp.c +++ b/arch/powerpc/platforms/pseries/smp.c | |||
@@ -93,7 +93,7 @@ static int query_cpu_stopped(unsigned int pcpu) | |||
93 | return cpu_status; | 93 | return cpu_status; |
94 | } | 94 | } |
95 | 95 | ||
96 | int pSeries_cpu_disable(void) | 96 | static int pSeries_cpu_disable(void) |
97 | { | 97 | { |
98 | int cpu = smp_processor_id(); | 98 | int cpu = smp_processor_id(); |
99 | 99 | ||
@@ -109,7 +109,7 @@ int pSeries_cpu_disable(void) | |||
109 | return 0; | 109 | return 0; |
110 | } | 110 | } |
111 | 111 | ||
112 | void pSeries_cpu_die(unsigned int cpu) | 112 | static void pSeries_cpu_die(unsigned int cpu) |
113 | { | 113 | { |
114 | int tries; | 114 | int tries; |
115 | int cpu_status; | 115 | int cpu_status; |
diff --git a/arch/powerpc/platforms/pseries/xics.c b/arch/powerpc/platforms/pseries/xics.c index 0c0cfa32eb58..fd823c7c9ac8 100644 --- a/arch/powerpc/platforms/pseries/xics.c +++ b/arch/powerpc/platforms/pseries/xics.c | |||
@@ -381,7 +381,7 @@ int xics_get_irq(struct pt_regs *regs) | |||
381 | 381 | ||
382 | #ifdef CONFIG_SMP | 382 | #ifdef CONFIG_SMP |
383 | 383 | ||
384 | irqreturn_t xics_ipi_action(int irq, void *dev_id, struct pt_regs *regs) | 384 | static irqreturn_t xics_ipi_action(int irq, void *dev_id, struct pt_regs *regs) |
385 | { | 385 | { |
386 | int cpu = smp_processor_id(); | 386 | int cpu = smp_processor_id(); |
387 | 387 | ||