diff options
Diffstat (limited to 'arch/ia64/kernel')
| -rw-r--r-- | arch/ia64/kernel/crash.c | 11 | ||||
| -rw-r--r-- | arch/ia64/kernel/efi.c | 2 | ||||
| -rw-r--r-- | arch/ia64/kernel/fsys.S | 2 | ||||
| -rw-r--r-- | arch/ia64/kernel/module.c | 24 | ||||
| -rw-r--r-- | arch/ia64/kernel/process.c | 6 | ||||
| -rw-r--r-- | arch/ia64/kernel/salinfo.c | 2 | ||||
| -rw-r--r-- | arch/ia64/kernel/smp.c | 4 | 
7 files changed, 23 insertions, 28 deletions
| diff --git a/arch/ia64/kernel/crash.c b/arch/ia64/kernel/crash.c index 76730f34685c..88b3ce3e66cd 100644 --- a/arch/ia64/kernel/crash.c +++ b/arch/ia64/kernel/crash.c @@ -234,15 +234,6 @@ static struct ctl_table kdump_ctl_table[] = {  	},  	{ }  }; - -static struct ctl_table sys_table[] = { -	{ -	  .procname = "kernel", -	  .mode = 0555, -	  .child = kdump_ctl_table, -	}, -	{ } -};  #endif  static int @@ -257,7 +248,7 @@ machine_crash_setup(void)  	if((ret = register_die_notifier(&kdump_init_notifier_nb)) != 0)  		return ret;  #ifdef CONFIG_SYSCTL -	register_sysctl_table(sys_table); +	register_sysctl("kernel", kdump_ctl_table);  #endif  	return 0;  } diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index 21dfa4aa35bb..033f5aead88a 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -853,7 +853,7 @@ valid_phys_addr_range (phys_addr_t phys_addr, unsigned long size)  	 * /dev/mem reads and writes use copy_to_user(), which implicitly  	 * uses a granule-sized kernel identity mapping.  It's really  	 * only safe to do this for regions in kern_memmap.  For more -	 * details, see Documentation/ia64/aliasing.rst. +	 * details, see Documentation/arch/ia64/aliasing.rst.  	 */  	attr = kern_mem_attribute(phys_addr, size);  	if (attr & EFI_MEMORY_WB || attr & EFI_MEMORY_UC) diff --git a/arch/ia64/kernel/fsys.S b/arch/ia64/kernel/fsys.S index 2094f3249019..cc4733e9990a 100644 --- a/arch/ia64/kernel/fsys.S +++ b/arch/ia64/kernel/fsys.S @@ -28,7 +28,7 @@  #include <asm/native/inst.h>  /* - * See Documentation/ia64/fsys.rst for details on fsyscalls. + * See Documentation/arch/ia64/fsys.rst for details on fsyscalls.   *   * On entry to an fsyscall handler:   *   r10	= 0 (i.e., defaults to "successful syscall return") diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c index 8f62cf97f691..3661135da9d9 100644 --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c @@ -485,19 +485,19 @@ module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings,  	return 0;  } -static inline int +static inline bool  in_init (const struct module *mod, uint64_t addr)  { -	return addr - (uint64_t) mod->init_layout.base < mod->init_layout.size; +	return within_module_init(addr, mod);  } -static inline int +static inline bool  in_core (const struct module *mod, uint64_t addr)  { -	return addr - (uint64_t) mod->core_layout.base < mod->core_layout.size; +	return within_module_core(addr, mod);  } -static inline int +static inline bool  is_internal (const struct module *mod, uint64_t value)  {  	return in_init(mod, value) || in_core(mod, value); @@ -677,7 +677,8 @@ do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend,  		break;  	      case RV_BDREL: -		val -= (uint64_t) (in_init(mod, val) ? mod->init_layout.base : mod->core_layout.base); +		val -= (uint64_t) (in_init(mod, val) ? mod->mem[MOD_INIT_TEXT].base : +				   mod->mem[MOD_TEXT].base);  		break;  	      case RV_LTV: @@ -812,15 +813,18 @@ apply_relocate_add (Elf64_Shdr *sechdrs, const char *strtab, unsigned int symind  		 *     addresses have been selected...  		 */  		uint64_t gp; -		if (mod->core_layout.size > MAX_LTOFF) +		struct module_memory *mod_mem; + +		mod_mem = &mod->mem[MOD_DATA]; +		if (mod_mem->size > MAX_LTOFF)  			/*  			 * This takes advantage of fact that SHF_ARCH_SMALL gets allocated  			 * at the end of the module.  			 */ -			gp = mod->core_layout.size - MAX_LTOFF / 2; +			gp = mod_mem->size - MAX_LTOFF / 2;  		else -			gp = mod->core_layout.size / 2; -		gp = (uint64_t) mod->core_layout.base + ((gp + 7) & -8); +			gp = mod_mem->size / 2; +		gp = (uint64_t) mod_mem->base + ((gp + 7) & -8);  		mod->arch.gp = gp;  		DEBUGP("%s: placing gp at 0x%lx\n", __func__, gp);  	} diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index f6195a0a00ae..9a5cd9fad3a9 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c @@ -201,7 +201,7 @@ __setup("nohalt", nohalt_setup);  #ifdef CONFIG_HOTPLUG_CPU  /* We don't actually take CPU down, just spin without interrupts. */ -static inline void play_dead(void) +static inline void __noreturn play_dead(void)  {  	unsigned int this_cpu = smp_processor_id(); @@ -219,13 +219,13 @@ static inline void play_dead(void)  	BUG();  }  #else -static inline void play_dead(void) +static inline void __noreturn play_dead(void)  {  	BUG();  }  #endif /* CONFIG_HOTPLUG_CPU */ -void arch_cpu_idle_dead(void) +void __noreturn arch_cpu_idle_dead(void)  {  	play_dead();  } diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c index bd3ba276e69c..03b632c56899 100644 --- a/arch/ia64/kernel/salinfo.c +++ b/arch/ia64/kernel/salinfo.c @@ -581,7 +581,7 @@ static int salinfo_cpu_pre_down(unsigned int cpu)   * 'data' contains an integer that corresponds to the feature we're   * testing   */ -static int proc_salinfo_show(struct seq_file *m, void *v) +static int __maybe_unused proc_salinfo_show(struct seq_file *m, void *v)  {  	unsigned long data = (unsigned long)v;  	seq_puts(m, (sal_platform_features & data) ? "1\n" : "0\n"); diff --git a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c index e2cc59db86bc..ea4f009a232b 100644 --- a/arch/ia64/kernel/smp.c +++ b/arch/ia64/kernel/smp.c @@ -220,11 +220,11 @@ kdump_smp_send_init(void)   * Called with preemption disabled.   */  void -smp_send_reschedule (int cpu) +arch_smp_send_reschedule (int cpu)  {  	ia64_send_ipi(cpu, IA64_IPI_RESCHEDULE, IA64_IPI_DM_INT, 0);  } -EXPORT_SYMBOL_GPL(smp_send_reschedule); +EXPORT_SYMBOL_GPL(arch_smp_send_reschedule);  /*   * Called with preemption disabled. | 
