aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 14:14:04 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 14:14:04 -0400
commite39dfe52f8f67061317e7108f62a2b33a3d06580 (patch)
tree831ac8b5c012c868f1af50e7843c6598390d9fff /arch/ia64
parentab5348573908dedb62dd906aa60c5989fecfe38f (diff)
parentccce9bb83ed20bca52f82ff9d7cf889d23a2ec01 (diff)
Merge tag 'please-pull-misc-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
Pull misc ia64 updates from Tony Luck: "Miscellaneous ia64 changes for 3.11 merge window" * tag 'please-pull-misc-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux: [IA64] Delete __cpuinit usage from all ia64 users [IA64] hpsim: Fix check for overlong simscsi prefix. [IA64] pci: Remove unused fallback_dev [IA64] perfmon: Use %*phD specifier to dump small buffers [IA64] Fix trap #45 handling
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/hp/sim/simscsi.c4
-rw-r--r--arch/ia64/kernel/acpi.c4
-rw-r--r--arch/ia64/kernel/err_inject.c8
-rw-r--r--arch/ia64/kernel/mca.c12
-rw-r--r--arch/ia64/kernel/numa.c4
-rw-r--r--arch/ia64/kernel/palinfo.c4
-rw-r--r--arch/ia64/kernel/pci-dma.c9
-rw-r--r--arch/ia64/kernel/perfmon.c20
-rw-r--r--arch/ia64/kernel/salinfo.c4
-rw-r--r--arch/ia64/kernel/setup.c10
-rw-r--r--arch/ia64/kernel/smpboot.c8
-rw-r--r--arch/ia64/kernel/topology.c18
-rw-r--r--arch/ia64/kernel/traps.c2
-rw-r--r--arch/ia64/mm/contig.c3
-rw-r--r--arch/ia64/mm/discontig.c2
-rw-r--r--arch/ia64/mm/numa.c2
-rw-r--r--arch/ia64/sn/kernel/setup.c8
-rw-r--r--arch/ia64/xen/hypervisor.c2
18 files changed, 49 insertions, 75 deletions
diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c
index 331de723c676..3a428f19a001 100644
--- a/arch/ia64/hp/sim/simscsi.c
+++ b/arch/ia64/hp/sim/simscsi.c
@@ -88,8 +88,8 @@ simscsi_setup (char *s)
88 if (strlen(s) > MAX_ROOT_LEN) { 88 if (strlen(s) > MAX_ROOT_LEN) {
89 printk(KERN_ERR "simscsi_setup: prefix too long---using default %s\n", 89 printk(KERN_ERR "simscsi_setup: prefix too long---using default %s\n",
90 simscsi_root); 90 simscsi_root);
91 } 91 } else
92 simscsi_root = s; 92 simscsi_root = s;
93 return 1; 93 return 1;
94} 94}
95 95
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
index 335eb07480fe..5eb71d22c3d5 100644
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -807,7 +807,7 @@ int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi)
807 * ACPI based hotplug CPU support 807 * ACPI based hotplug CPU support
808 */ 808 */
809#ifdef CONFIG_ACPI_HOTPLUG_CPU 809#ifdef CONFIG_ACPI_HOTPLUG_CPU
810static __cpuinit 810static
811int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) 811int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid)
812{ 812{
813#ifdef CONFIG_ACPI_NUMA 813#ifdef CONFIG_ACPI_NUMA
@@ -882,7 +882,7 @@ __init void prefill_possible_map(void)
882 set_cpu_possible(i, true); 882 set_cpu_possible(i, true);
883} 883}
884 884
885static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu) 885static int _acpi_map_lsapic(acpi_handle handle, int *pcpu)
886{ 886{
887 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; 887 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
888 union acpi_object *obj; 888 union acpi_object *obj;
diff --git a/arch/ia64/kernel/err_inject.c b/arch/ia64/kernel/err_inject.c
index 2d67317a1ec2..f59c0b844e88 100644
--- a/arch/ia64/kernel/err_inject.c
+++ b/arch/ia64/kernel/err_inject.c
@@ -225,17 +225,17 @@ static struct attribute_group err_inject_attr_group = {
225 .name = "err_inject" 225 .name = "err_inject"
226}; 226};
227/* Add/Remove err_inject interface for CPU device */ 227/* Add/Remove err_inject interface for CPU device */
228static int __cpuinit err_inject_add_dev(struct device * sys_dev) 228static int err_inject_add_dev(struct device *sys_dev)
229{ 229{
230 return sysfs_create_group(&sys_dev->kobj, &err_inject_attr_group); 230 return sysfs_create_group(&sys_dev->kobj, &err_inject_attr_group);
231} 231}
232 232
233static int __cpuinit err_inject_remove_dev(struct device * sys_dev) 233static int err_inject_remove_dev(struct device *sys_dev)
234{ 234{
235 sysfs_remove_group(&sys_dev->kobj, &err_inject_attr_group); 235 sysfs_remove_group(&sys_dev->kobj, &err_inject_attr_group);
236 return 0; 236 return 0;
237} 237}
238static int __cpuinit err_inject_cpu_callback(struct notifier_block *nfb, 238static int err_inject_cpu_callback(struct notifier_block *nfb,
239 unsigned long action, void *hcpu) 239 unsigned long action, void *hcpu)
240{ 240{
241 unsigned int cpu = (unsigned long)hcpu; 241 unsigned int cpu = (unsigned long)hcpu;
@@ -256,7 +256,7 @@ static int __cpuinit err_inject_cpu_callback(struct notifier_block *nfb,
256 return NOTIFY_OK; 256 return NOTIFY_OK;
257} 257}
258 258
259static struct notifier_block __cpuinitdata err_inject_cpu_notifier = 259static struct notifier_block err_inject_cpu_notifier =
260{ 260{
261 .notifier_call = err_inject_cpu_callback, 261 .notifier_call = err_inject_cpu_callback,
262}; 262};
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
index d7396dbb07bb..b8edfa75a83f 100644
--- a/arch/ia64/kernel/mca.c
+++ b/arch/ia64/kernel/mca.c
@@ -631,7 +631,7 @@ ia64_mca_register_cpev (int cpev)
631 * Outputs 631 * Outputs
632 * None 632 * None
633 */ 633 */
634void __cpuinit 634void
635ia64_mca_cmc_vector_setup (void) 635ia64_mca_cmc_vector_setup (void)
636{ 636{
637 cmcv_reg_t cmcv; 637 cmcv_reg_t cmcv;
@@ -1814,7 +1814,7 @@ static struct irqaction mca_cpep_irqaction = {
1814 * format most of the fields. 1814 * format most of the fields.
1815 */ 1815 */
1816 1816
1817static void __cpuinit 1817static void
1818format_mca_init_stack(void *mca_data, unsigned long offset, 1818format_mca_init_stack(void *mca_data, unsigned long offset,
1819 const char *type, int cpu) 1819 const char *type, int cpu)
1820{ 1820{
@@ -1844,7 +1844,7 @@ static void * __init_refok mca_bootmem(void)
1844} 1844}
1845 1845
1846/* Do per-CPU MCA-related initialization. */ 1846/* Do per-CPU MCA-related initialization. */
1847void __cpuinit 1847void
1848ia64_mca_cpu_init(void *cpu_data) 1848ia64_mca_cpu_init(void *cpu_data)
1849{ 1849{
1850 void *pal_vaddr; 1850 void *pal_vaddr;
@@ -1896,7 +1896,7 @@ ia64_mca_cpu_init(void *cpu_data)
1896 PAGE_KERNEL)); 1896 PAGE_KERNEL));
1897} 1897}
1898 1898
1899static void __cpuinit ia64_mca_cmc_vector_adjust(void *dummy) 1899static void ia64_mca_cmc_vector_adjust(void *dummy)
1900{ 1900{
1901 unsigned long flags; 1901 unsigned long flags;
1902 1902
@@ -1906,7 +1906,7 @@ static void __cpuinit ia64_mca_cmc_vector_adjust(void *dummy)
1906 local_irq_restore(flags); 1906 local_irq_restore(flags);
1907} 1907}
1908 1908
1909static int __cpuinit mca_cpu_callback(struct notifier_block *nfb, 1909static int mca_cpu_callback(struct notifier_block *nfb,
1910 unsigned long action, 1910 unsigned long action,
1911 void *hcpu) 1911 void *hcpu)
1912{ 1912{
@@ -1922,7 +1922,7 @@ static int __cpuinit mca_cpu_callback(struct notifier_block *nfb,
1922 return NOTIFY_OK; 1922 return NOTIFY_OK;
1923} 1923}
1924 1924
1925static struct notifier_block mca_cpu_notifier __cpuinitdata = { 1925static struct notifier_block mca_cpu_notifier = {
1926 .notifier_call = mca_cpu_callback 1926 .notifier_call = mca_cpu_callback
1927}; 1927};
1928 1928
diff --git a/arch/ia64/kernel/numa.c b/arch/ia64/kernel/numa.c
index c93420c97409..d288cde93606 100644
--- a/arch/ia64/kernel/numa.c
+++ b/arch/ia64/kernel/numa.c
@@ -30,7 +30,7 @@ EXPORT_SYMBOL(cpu_to_node_map);
30cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned; 30cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
31EXPORT_SYMBOL(node_to_cpu_mask); 31EXPORT_SYMBOL(node_to_cpu_mask);
32 32
33void __cpuinit map_cpu_to_node(int cpu, int nid) 33void map_cpu_to_node(int cpu, int nid)
34{ 34{
35 int oldnid; 35 int oldnid;
36 if (nid < 0) { /* just initialize by zero */ 36 if (nid < 0) { /* just initialize by zero */
@@ -51,7 +51,7 @@ void __cpuinit map_cpu_to_node(int cpu, int nid)
51 return; 51 return;
52} 52}
53 53
54void __cpuinit unmap_cpu_from_node(int cpu, int nid) 54void unmap_cpu_from_node(int cpu, int nid)
55{ 55{
56 WARN_ON(!cpu_isset(cpu, node_to_cpu_mask[nid])); 56 WARN_ON(!cpu_isset(cpu, node_to_cpu_mask[nid]));
57 WARN_ON(cpu_to_node_map[cpu] != nid); 57 WARN_ON(cpu_to_node_map[cpu] != nid);
diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c
index 2b3c2d79256f..ab333284f4b2 100644
--- a/arch/ia64/kernel/palinfo.c
+++ b/arch/ia64/kernel/palinfo.c
@@ -932,7 +932,7 @@ static const struct file_operations proc_palinfo_fops = {
932 .release = single_release, 932 .release = single_release,
933}; 933};
934 934
935static void __cpuinit 935static void
936create_palinfo_proc_entries(unsigned int cpu) 936create_palinfo_proc_entries(unsigned int cpu)
937{ 937{
938 pal_func_cpu_u_t f; 938 pal_func_cpu_u_t f;
@@ -962,7 +962,7 @@ remove_palinfo_proc_entries(unsigned int hcpu)
962 remove_proc_subtree(cpustr, palinfo_dir); 962 remove_proc_subtree(cpustr, palinfo_dir);
963} 963}
964 964
965static int __cpuinit palinfo_cpu_callback(struct notifier_block *nfb, 965static int palinfo_cpu_callback(struct notifier_block *nfb,
966 unsigned long action, void *hcpu) 966 unsigned long action, void *hcpu)
967{ 967{
968 unsigned int hotcpu = (unsigned long)hcpu; 968 unsigned int hotcpu = (unsigned long)hcpu;
diff --git a/arch/ia64/kernel/pci-dma.c b/arch/ia64/kernel/pci-dma.c
index 1ddcfe5ef353..992c1098c522 100644
--- a/arch/ia64/kernel/pci-dma.c
+++ b/arch/ia64/kernel/pci-dma.c
@@ -33,15 +33,6 @@ int force_iommu __read_mostly;
33 33
34int iommu_pass_through; 34int iommu_pass_through;
35 35
36/* Dummy device used for NULL arguments (normally ISA). Better would
37 be probably a smaller DMA mask, but this is bug-to-bug compatible
38 to i386. */
39struct device fallback_dev = {
40 .init_name = "fallback device",
41 .coherent_dma_mask = DMA_BIT_MASK(32),
42 .dma_mask = &fallback_dev.coherent_dma_mask,
43};
44
45extern struct dma_map_ops intel_dma_ops; 36extern struct dma_map_ops intel_dma_ops;
46 37
47static int __init pci_iommu_init(void) 38static int __init pci_iommu_init(void)
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index 9ea25fce06d5..5a9ff1c3c3e9 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -5647,24 +5647,8 @@ pfm_proc_show_header(struct seq_file *m)
5647 5647
5648 list_for_each(pos, &pfm_buffer_fmt_list) { 5648 list_for_each(pos, &pfm_buffer_fmt_list) {
5649 entry = list_entry(pos, pfm_buffer_fmt_t, fmt_list); 5649 entry = list_entry(pos, pfm_buffer_fmt_t, fmt_list);
5650 seq_printf(m, "format : %02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x-%02x %s\n", 5650 seq_printf(m, "format : %16phD %s\n",
5651 entry->fmt_uuid[0], 5651 entry->fmt_uuid, entry->fmt_name);
5652 entry->fmt_uuid[1],
5653 entry->fmt_uuid[2],
5654 entry->fmt_uuid[3],
5655 entry->fmt_uuid[4],
5656 entry->fmt_uuid[5],
5657 entry->fmt_uuid[6],
5658 entry->fmt_uuid[7],
5659 entry->fmt_uuid[8],
5660 entry->fmt_uuid[9],
5661 entry->fmt_uuid[10],
5662 entry->fmt_uuid[11],
5663 entry->fmt_uuid[12],
5664 entry->fmt_uuid[13],
5665 entry->fmt_uuid[14],
5666 entry->fmt_uuid[15],
5667 entry->fmt_name);
5668 } 5652 }
5669 spin_unlock(&pfm_buffer_fmt_lock); 5653 spin_unlock(&pfm_buffer_fmt_lock);
5670 5654
diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c
index 4bc580af67b3..960a396f5929 100644
--- a/arch/ia64/kernel/salinfo.c
+++ b/arch/ia64/kernel/salinfo.c
@@ -568,7 +568,7 @@ static const struct file_operations salinfo_data_fops = {
568 .llseek = default_llseek, 568 .llseek = default_llseek,
569}; 569};
570 570
571static int __cpuinit 571static int
572salinfo_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu) 572salinfo_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
573{ 573{
574 unsigned int i, cpu = (unsigned long)hcpu; 574 unsigned int i, cpu = (unsigned long)hcpu;
@@ -609,7 +609,7 @@ salinfo_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu
609 return NOTIFY_OK; 609 return NOTIFY_OK;
610} 610}
611 611
612static struct notifier_block salinfo_cpu_notifier __cpuinitdata = 612static struct notifier_block salinfo_cpu_notifier =
613{ 613{
614 .notifier_call = salinfo_cpu_callback, 614 .notifier_call = salinfo_cpu_callback,
615 .priority = 0, 615 .priority = 0,
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index 13bfdd22afc8..4fc2e9569bb2 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -748,7 +748,7 @@ const struct seq_operations cpuinfo_op = {
748#define MAX_BRANDS 8 748#define MAX_BRANDS 8
749static char brandname[MAX_BRANDS][128]; 749static char brandname[MAX_BRANDS][128];
750 750
751static char * __cpuinit 751static char *
752get_model_name(__u8 family, __u8 model) 752get_model_name(__u8 family, __u8 model)
753{ 753{
754 static int overflow; 754 static int overflow;
@@ -778,7 +778,7 @@ get_model_name(__u8 family, __u8 model)
778 return "Unknown"; 778 return "Unknown";
779} 779}
780 780
781static void __cpuinit 781static void
782identify_cpu (struct cpuinfo_ia64 *c) 782identify_cpu (struct cpuinfo_ia64 *c)
783{ 783{
784 union { 784 union {
@@ -850,7 +850,7 @@ identify_cpu (struct cpuinfo_ia64 *c)
850 * 2. the minimum of the i-cache stride sizes for "flush_icache_range()". 850 * 2. the minimum of the i-cache stride sizes for "flush_icache_range()".
851 * 3. the minimum of the cache stride sizes for "clflush_cache_range()". 851 * 3. the minimum of the cache stride sizes for "clflush_cache_range()".
852 */ 852 */
853static void __cpuinit 853static void
854get_cache_info(void) 854get_cache_info(void)
855{ 855{
856 unsigned long line_size, max = 1; 856 unsigned long line_size, max = 1;
@@ -915,10 +915,10 @@ get_cache_info(void)
915 * cpu_init() initializes state that is per-CPU. This function acts 915 * cpu_init() initializes state that is per-CPU. This function acts
916 * as a 'CPU state barrier', nothing should get across. 916 * as a 'CPU state barrier', nothing should get across.
917 */ 917 */
918void __cpuinit 918void
919cpu_init (void) 919cpu_init (void)
920{ 920{
921 extern void __cpuinit ia64_mmu_init (void *); 921 extern void ia64_mmu_init(void *);
922 static unsigned long max_num_phys_stacked = IA64_NUM_PHYS_STACK_REG; 922 static unsigned long max_num_phys_stacked = IA64_NUM_PHYS_STACK_REG;
923 unsigned long num_phys_stacked; 923 unsigned long num_phys_stacked;
924 pal_vm_info_2_u_t vmi; 924 pal_vm_info_2_u_t vmi;
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c
index 8d87168d218d..547a48d78bd7 100644
--- a/arch/ia64/kernel/smpboot.c
+++ b/arch/ia64/kernel/smpboot.c
@@ -351,7 +351,7 @@ static inline void smp_setup_percpu_timer(void)
351{ 351{
352} 352}
353 353
354static void __cpuinit 354static void
355smp_callin (void) 355smp_callin (void)
356{ 356{
357 int cpuid, phys_id, itc_master; 357 int cpuid, phys_id, itc_master;
@@ -442,7 +442,7 @@ smp_callin (void)
442/* 442/*
443 * Activate a secondary processor. head.S calls this. 443 * Activate a secondary processor. head.S calls this.
444 */ 444 */
445int __cpuinit 445int
446start_secondary (void *unused) 446start_secondary (void *unused)
447{ 447{
448 /* Early console may use I/O ports */ 448 /* Early console may use I/O ports */
@@ -459,7 +459,7 @@ start_secondary (void *unused)
459 return 0; 459 return 0;
460} 460}
461 461
462static int __cpuinit 462static int
463do_boot_cpu (int sapicid, int cpu, struct task_struct *idle) 463do_boot_cpu (int sapicid, int cpu, struct task_struct *idle)
464{ 464{
465 int timeout; 465 int timeout;
@@ -728,7 +728,7 @@ static inline void set_cpu_sibling_map(int cpu)
728 } 728 }
729} 729}
730 730
731int __cpuinit 731int
732__cpu_up(unsigned int cpu, struct task_struct *tidle) 732__cpu_up(unsigned int cpu, struct task_struct *tidle)
733{ 733{
734 int ret; 734 int ret;
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c
index dc00b2c1b42a..ca69a5a96dcc 100644
--- a/arch/ia64/kernel/topology.c
+++ b/arch/ia64/kernel/topology.c
@@ -135,11 +135,11 @@ struct cpu_cache_info {
135 struct kobject kobj; 135 struct kobject kobj;
136}; 136};
137 137
138static struct cpu_cache_info all_cpu_cache_info[NR_CPUS] __cpuinitdata; 138static struct cpu_cache_info all_cpu_cache_info[NR_CPUS];
139#define LEAF_KOBJECT_PTR(x,y) (&all_cpu_cache_info[x].cache_leaves[y]) 139#define LEAF_KOBJECT_PTR(x,y) (&all_cpu_cache_info[x].cache_leaves[y])
140 140
141#ifdef CONFIG_SMP 141#ifdef CONFIG_SMP
142static void __cpuinit cache_shared_cpu_map_setup( unsigned int cpu, 142static void cache_shared_cpu_map_setup(unsigned int cpu,
143 struct cache_info * this_leaf) 143 struct cache_info * this_leaf)
144{ 144{
145 pal_cache_shared_info_t csi; 145 pal_cache_shared_info_t csi;
@@ -174,7 +174,7 @@ static void __cpuinit cache_shared_cpu_map_setup( unsigned int cpu,
174 &csi) == PAL_STATUS_SUCCESS); 174 &csi) == PAL_STATUS_SUCCESS);
175} 175}
176#else 176#else
177static void __cpuinit cache_shared_cpu_map_setup(unsigned int cpu, 177static void cache_shared_cpu_map_setup(unsigned int cpu,
178 struct cache_info * this_leaf) 178 struct cache_info * this_leaf)
179{ 179{
180 cpu_set(cpu, this_leaf->shared_cpu_map); 180 cpu_set(cpu, this_leaf->shared_cpu_map);
@@ -298,7 +298,7 @@ static struct kobj_type cache_ktype_percpu_entry = {
298 .sysfs_ops = &cache_sysfs_ops, 298 .sysfs_ops = &cache_sysfs_ops,
299}; 299};
300 300
301static void __cpuinit cpu_cache_sysfs_exit(unsigned int cpu) 301static void cpu_cache_sysfs_exit(unsigned int cpu)
302{ 302{
303 kfree(all_cpu_cache_info[cpu].cache_leaves); 303 kfree(all_cpu_cache_info[cpu].cache_leaves);
304 all_cpu_cache_info[cpu].cache_leaves = NULL; 304 all_cpu_cache_info[cpu].cache_leaves = NULL;
@@ -307,7 +307,7 @@ static void __cpuinit cpu_cache_sysfs_exit(unsigned int cpu)
307 return; 307 return;
308} 308}
309 309
310static int __cpuinit cpu_cache_sysfs_init(unsigned int cpu) 310static int cpu_cache_sysfs_init(unsigned int cpu)
311{ 311{
312 unsigned long i, levels, unique_caches; 312 unsigned long i, levels, unique_caches;
313 pal_cache_config_info_t cci; 313 pal_cache_config_info_t cci;
@@ -351,7 +351,7 @@ static int __cpuinit cpu_cache_sysfs_init(unsigned int cpu)
351} 351}
352 352
353/* Add cache interface for CPU device */ 353/* Add cache interface for CPU device */
354static int __cpuinit cache_add_dev(struct device * sys_dev) 354static int cache_add_dev(struct device *sys_dev)
355{ 355{
356 unsigned int cpu = sys_dev->id; 356 unsigned int cpu = sys_dev->id;
357 unsigned long i, j; 357 unsigned long i, j;
@@ -401,7 +401,7 @@ static int __cpuinit cache_add_dev(struct device * sys_dev)
401} 401}
402 402
403/* Remove cache interface for CPU device */ 403/* Remove cache interface for CPU device */
404static int __cpuinit cache_remove_dev(struct device * sys_dev) 404static int cache_remove_dev(struct device *sys_dev)
405{ 405{
406 unsigned int cpu = sys_dev->id; 406 unsigned int cpu = sys_dev->id;
407 unsigned long i; 407 unsigned long i;
@@ -425,7 +425,7 @@ static int __cpuinit cache_remove_dev(struct device * sys_dev)
425 * When a cpu is hot-plugged, do a check and initiate 425 * When a cpu is hot-plugged, do a check and initiate
426 * cache kobject if necessary 426 * cache kobject if necessary
427 */ 427 */
428static int __cpuinit cache_cpu_callback(struct notifier_block *nfb, 428static int cache_cpu_callback(struct notifier_block *nfb,
429 unsigned long action, void *hcpu) 429 unsigned long action, void *hcpu)
430{ 430{
431 unsigned int cpu = (unsigned long)hcpu; 431 unsigned int cpu = (unsigned long)hcpu;
@@ -445,7 +445,7 @@ static int __cpuinit cache_cpu_callback(struct notifier_block *nfb,
445 return NOTIFY_OK; 445 return NOTIFY_OK;
446} 446}
447 447
448static struct notifier_block __cpuinitdata cache_cpu_notifier = 448static struct notifier_block cache_cpu_notifier =
449{ 449{
450 .notifier_call = cache_cpu_callback 450 .notifier_call = cache_cpu_callback
451}; 451};
diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c
index f7f9f9c6caf0..d3636e67a98e 100644
--- a/arch/ia64/kernel/traps.c
+++ b/arch/ia64/kernel/traps.c
@@ -630,7 +630,7 @@ ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa,
630 printk(KERN_ERR " iip - 0x%lx, ifa - 0x%lx, isr - 0x%lx\n", 630 printk(KERN_ERR " iip - 0x%lx, ifa - 0x%lx, isr - 0x%lx\n",
631 iip, ifa, isr); 631 iip, ifa, isr);
632 force_sig(SIGSEGV, current); 632 force_sig(SIGSEGV, current);
633 break; 633 return;
634 634
635 case 46: 635 case 46:
636 printk(KERN_ERR "Unexpected IA-32 intercept trap (Trap 46)\n"); 636 printk(KERN_ERR "Unexpected IA-32 intercept trap (Trap 46)\n");
diff --git a/arch/ia64/mm/contig.c b/arch/ia64/mm/contig.c
index 67c59ebec899..142c3b785944 100644
--- a/arch/ia64/mm/contig.c
+++ b/arch/ia64/mm/contig.c
@@ -156,8 +156,7 @@ static void *cpu_data;
156 * 156 *
157 * Allocate and setup per-cpu data areas. 157 * Allocate and setup per-cpu data areas.
158 */ 158 */
159void * __cpuinit 159void *per_cpu_init(void)
160per_cpu_init (void)
161{ 160{
162 static bool first_time = true; 161 static bool first_time = true;
163 void *cpu0_data = __cpu0_per_cpu; 162 void *cpu0_data = __cpu0_per_cpu;
diff --git a/arch/ia64/mm/discontig.c b/arch/ia64/mm/discontig.c
index ae4db4bd6d97..7253d83650bf 100644
--- a/arch/ia64/mm/discontig.c
+++ b/arch/ia64/mm/discontig.c
@@ -593,7 +593,7 @@ void __init find_memory(void)
593 * find_pernode_space() does most of this already, we just need to set 593 * find_pernode_space() does most of this already, we just need to set
594 * local_per_cpu_offset 594 * local_per_cpu_offset
595 */ 595 */
596void __cpuinit *per_cpu_init(void) 596void *per_cpu_init(void)
597{ 597{
598 int cpu; 598 int cpu;
599 static int first_time = 1; 599 static int first_time = 1;
diff --git a/arch/ia64/mm/numa.c b/arch/ia64/mm/numa.c
index 4248492b9321..ea21d4cad540 100644
--- a/arch/ia64/mm/numa.c
+++ b/arch/ia64/mm/numa.c
@@ -86,7 +86,7 @@ int __meminit __early_pfn_to_nid(unsigned long pfn)
86 return -1; 86 return -1;
87} 87}
88 88
89void __cpuinit numa_clear_node(int cpu) 89void numa_clear_node(int cpu)
90{ 90{
91 unmap_cpu_from_node(cpu, NUMA_NO_NODE); 91 unmap_cpu_from_node(cpu, NUMA_NO_NODE);
92} 92}
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c
index f82e7b462b7b..53b01b8e2f19 100644
--- a/arch/ia64/sn/kernel/setup.c
+++ b/arch/ia64/sn/kernel/setup.c
@@ -192,7 +192,7 @@ void __init early_sn_setup(void)
192} 192}
193 193
194extern int platform_intr_list[]; 194extern int platform_intr_list[];
195static int __cpuinitdata shub_1_1_found; 195static int shub_1_1_found;
196 196
197/* 197/*
198 * sn_check_for_wars 198 * sn_check_for_wars
@@ -200,7 +200,7 @@ static int __cpuinitdata shub_1_1_found;
200 * Set flag for enabling shub specific wars 200 * Set flag for enabling shub specific wars
201 */ 201 */
202 202
203static inline int __cpuinit is_shub_1_1(int nasid) 203static inline int is_shub_1_1(int nasid)
204{ 204{
205 unsigned long id; 205 unsigned long id;
206 int rev; 206 int rev;
@@ -212,7 +212,7 @@ static inline int __cpuinit is_shub_1_1(int nasid)
212 return rev <= 2; 212 return rev <= 2;
213} 213}
214 214
215static void __cpuinit sn_check_for_wars(void) 215static void sn_check_for_wars(void)
216{ 216{
217 int cnode; 217 int cnode;
218 218
@@ -558,7 +558,7 @@ static void __init sn_init_pdas(char **cmdline_p)
558 * Also sets up a few fields in the nodepda. Also known as 558 * Also sets up a few fields in the nodepda. Also known as
559 * platform_cpu_init() by the ia64 machvec code. 559 * platform_cpu_init() by the ia64 machvec code.
560 */ 560 */
561void __cpuinit sn_cpu_init(void) 561void sn_cpu_init(void)
562{ 562{
563 int cpuid; 563 int cpuid;
564 int cpuphyid; 564 int cpuphyid;
diff --git a/arch/ia64/xen/hypervisor.c b/arch/ia64/xen/hypervisor.c
index 52172eee8591..fab62528a80b 100644
--- a/arch/ia64/xen/hypervisor.c
+++ b/arch/ia64/xen/hypervisor.c
@@ -74,7 +74,7 @@ void __init xen_setup_vcpu_info_placement(void)
74 xen_vcpu_setup(cpu); 74 xen_vcpu_setup(cpu);
75} 75}
76 76
77void __cpuinit 77void
78xen_cpu_init(void) 78xen_cpu_init(void)
79{ 79{
80 xen_smp_intr_init(); 80 xen_smp_intr_init();