diff options
-rw-r--r-- | arch/parisc/Makefile | 3 | ||||
-rw-r--r-- | arch/parisc/kernel/drivers.c | 7 | ||||
-rw-r--r-- | arch/parisc/kernel/pci.c | 2 | ||||
-rw-r--r-- | arch/parisc/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/parisc/kernel/traps.c | 11 | ||||
-rw-r--r-- | arch/parisc/mm/init.c | 2 | ||||
-rw-r--r-- | drivers/parisc/ccio-dma.c | 2 |
7 files changed, 22 insertions, 7 deletions
diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile index e2364ff59180..34ac503e28ad 100644 --- a/arch/parisc/Makefile +++ b/arch/parisc/Makefile | |||
@@ -123,6 +123,9 @@ INSTALL_TARGETS = zinstall install | |||
123 | 123 | ||
124 | PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) | 124 | PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) |
125 | 125 | ||
126 | # Default kernel to build | ||
127 | all: bzImage | ||
128 | |||
126 | zImage: vmlinuz | 129 | zImage: vmlinuz |
127 | Image: vmlinux | 130 | Image: vmlinux |
128 | 131 | ||
diff --git a/arch/parisc/kernel/drivers.c b/arch/parisc/kernel/drivers.c index 3b8507f71050..ee5a78a151a6 100644 --- a/arch/parisc/kernel/drivers.c +++ b/arch/parisc/kernel/drivers.c | |||
@@ -448,7 +448,8 @@ static int match_by_id(struct device * dev, void * data) | |||
448 | * Checks all the children of @parent for a matching @id. If none | 448 | * Checks all the children of @parent for a matching @id. If none |
449 | * found, it allocates a new device and returns it. | 449 | * found, it allocates a new device and returns it. |
450 | */ | 450 | */ |
451 | static struct parisc_device * alloc_tree_node(struct device *parent, char id) | 451 | static struct parisc_device * __init alloc_tree_node( |
452 | struct device *parent, char id) | ||
452 | { | 453 | { |
453 | struct match_id_data d = { | 454 | struct match_id_data d = { |
454 | .id = id, | 455 | .id = id, |
@@ -825,8 +826,8 @@ static void walk_lower_bus(struct parisc_device *dev) | |||
825 | * devices which are not physically connected (such as extra serial & | 826 | * devices which are not physically connected (such as extra serial & |
826 | * keyboard ports). This problem is not yet solved. | 827 | * keyboard ports). This problem is not yet solved. |
827 | */ | 828 | */ |
828 | static void walk_native_bus(unsigned long io_io_low, unsigned long io_io_high, | 829 | static void __init walk_native_bus(unsigned long io_io_low, |
829 | struct device *parent) | 830 | unsigned long io_io_high, struct device *parent) |
830 | { | 831 | { |
831 | int i, devices_found = 0; | 832 | int i, devices_found = 0; |
832 | unsigned long hpa = io_io_low; | 833 | unsigned long hpa = io_io_low; |
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c index 13ee3569959a..ae684ac6efb6 100644 --- a/arch/parisc/kernel/pci.c +++ b/arch/parisc/kernel/pci.c | |||
@@ -174,7 +174,7 @@ void pcibios_set_master(struct pci_dev *dev) | |||
174 | * pcibios_init_bridge() initializes cache line and default latency | 174 | * pcibios_init_bridge() initializes cache line and default latency |
175 | * for pci controllers and pci-pci bridges | 175 | * for pci controllers and pci-pci bridges |
176 | */ | 176 | */ |
177 | void __init pcibios_init_bridge(struct pci_dev *dev) | 177 | void __ref pcibios_init_bridge(struct pci_dev *dev) |
178 | { | 178 | { |
179 | unsigned short bridge_ctl, bridge_ctl_new; | 179 | unsigned short bridge_ctl, bridge_ctl_new; |
180 | 180 | ||
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index c3830400ca28..a1e772f909cb 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c | |||
@@ -205,7 +205,7 @@ static int __init rtc_init(void) | |||
205 | device_initcall(rtc_init); | 205 | device_initcall(rtc_init); |
206 | #endif | 206 | #endif |
207 | 207 | ||
208 | void read_persistent_clock(struct timespec *ts) | 208 | void read_persistent_clock64(struct timespec64 *ts) |
209 | { | 209 | { |
210 | static struct pdc_tod tod_data; | 210 | static struct pdc_tod tod_data; |
211 | if (pdc_tod_read(&tod_data) == 0) { | 211 | if (pdc_tod_read(&tod_data) == 0) { |
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c index 68e671a11987..71d31274d782 100644 --- a/arch/parisc/kernel/traps.c +++ b/arch/parisc/kernel/traps.c | |||
@@ -837,6 +837,17 @@ void __init initialize_ivt(const void *iva) | |||
837 | if (pdc_instr(&instr) == PDC_OK) | 837 | if (pdc_instr(&instr) == PDC_OK) |
838 | ivap[0] = instr; | 838 | ivap[0] = instr; |
839 | 839 | ||
840 | /* | ||
841 | * Rules for the checksum of the HPMC handler: | ||
842 | * 1. The IVA does not point to PDC/PDH space (ie: the OS has installed | ||
843 | * its own IVA). | ||
844 | * 2. The word at IVA + 32 is nonzero. | ||
845 | * 3. If Length (IVA + 60) is not zero, then Length (IVA + 60) and | ||
846 | * Address (IVA + 56) are word-aligned. | ||
847 | * 4. The checksum of the 8 words starting at IVA + 32 plus the sum of | ||
848 | * the Length/4 words starting at Address is zero. | ||
849 | */ | ||
850 | |||
840 | /* Compute Checksum for HPMC handler */ | 851 | /* Compute Checksum for HPMC handler */ |
841 | length = os_hpmc_size; | 852 | length = os_hpmc_size; |
842 | ivap[7] = length; | 853 | ivap[7] = length; |
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index cab32ee824d2..2607d2d33405 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c | |||
@@ -516,7 +516,7 @@ static void __init map_pages(unsigned long start_vaddr, | |||
516 | } | 516 | } |
517 | } | 517 | } |
518 | 518 | ||
519 | void free_initmem(void) | 519 | void __ref free_initmem(void) |
520 | { | 520 | { |
521 | unsigned long init_begin = (unsigned long)__init_begin; | 521 | unsigned long init_begin = (unsigned long)__init_begin; |
522 | unsigned long init_end = (unsigned long)__init_end; | 522 | unsigned long init_end = (unsigned long)__init_end; |
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index acba1f56af3e..126cf19e869b 100644 --- a/drivers/parisc/ccio-dma.c +++ b/drivers/parisc/ccio-dma.c | |||
@@ -1263,7 +1263,7 @@ static struct parisc_driver ccio_driver __refdata = { | |||
1263 | * I/O Page Directory, the resource map, and initalizing the | 1263 | * I/O Page Directory, the resource map, and initalizing the |
1264 | * U2/Uturn chip into virtual mode. | 1264 | * U2/Uturn chip into virtual mode. |
1265 | */ | 1265 | */ |
1266 | static void | 1266 | static void __init |
1267 | ccio_ioc_init(struct ioc *ioc) | 1267 | ccio_ioc_init(struct ioc *ioc) |
1268 | { | 1268 | { |
1269 | int i; | 1269 | int i; |