mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 20:24:12 +08:00
ad1a48301f
The init/main.c file contains some extern declarations for functions defined in architecture code, and it defines some other functions that are called from architecture code with a custom prototype. Both of those result in warnings with 'make W=1': init/calibrate.c:261:37: error: no previous prototype for 'calibrate_delay_is_known' [-Werror=missing-prototypes] init/main.c:790:20: error: no previous prototype for 'mem_encrypt_init' [-Werror=missing-prototypes] init/main.c:792:20: error: no previous prototype for 'poking_init' [-Werror=missing-prototypes] arch/arm64/kernel/irq.c:122:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes] arch/arm64/kernel/time.c:55:13: error: no previous prototype for 'time_init' [-Werror=missing-prototypes] arch/x86/kernel/process.c:935:13: error: no previous prototype for 'arch_post_acpi_subsys_init' [-Werror=missing-prototypes] init/calibrate.c:261:37: error: no previous prototype for 'calibrate_delay_is_known' [-Werror=missing-prototypes] kernel/fork.c:991:20: error: no previous prototype for 'arch_task_cache_init' [-Werror=missing-prototypes] Add prototypes for all of these in include/linux/init.h or another appropriate header, and remove the duplicate declarations from architecture specific code. [sfr@canb.auug.org.au: declare time_init_early()] Link: https://lkml.kernel.org/r/20230519124311.5167221c@canb.auug.org.au Link: https://lkml.kernel.org/r/20230517131102.934196-12-arnd@kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Christoph Lameter <cl@linux.com> Cc: Dennis Zhou <dennis@kernel.org> Cc: Eric Paris <eparis@redhat.com> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Helge Deller <deller@gmx.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Michal Simek <monstr@monstr.eu> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Moore <paul@paul-moore.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J. Wysocki <rafael@kernel.org> Cc: Russell King <linux@armlinux.org.uk> Cc: Tejun Heo <tj@kernel.org> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Waiman Long <longman@redhat.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
76 lines
2.5 KiB
C
76 lines
2.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ENTRY_H
|
|
#define _ENTRY_H
|
|
|
|
#include <linux/percpu.h>
|
|
#include <linux/types.h>
|
|
#include <linux/signal.h>
|
|
#include <asm/extable.h>
|
|
#include <asm/ptrace.h>
|
|
#include <asm/idle.h>
|
|
|
|
extern void *restart_stack;
|
|
|
|
void system_call(void);
|
|
void pgm_check_handler(void);
|
|
void ext_int_handler(void);
|
|
void io_int_handler(void);
|
|
void mcck_int_handler(void);
|
|
void restart_int_handler(void);
|
|
void early_pgm_check_handler(void);
|
|
|
|
void __ret_from_fork(struct task_struct *prev, struct pt_regs *regs);
|
|
void __do_pgm_check(struct pt_regs *regs);
|
|
void __do_syscall(struct pt_regs *regs, int per_trap);
|
|
void __do_early_pgm_check(struct pt_regs *regs);
|
|
|
|
void do_protection_exception(struct pt_regs *regs);
|
|
void do_dat_exception(struct pt_regs *regs);
|
|
void do_secure_storage_access(struct pt_regs *regs);
|
|
void do_non_secure_storage_access(struct pt_regs *regs);
|
|
void do_secure_storage_violation(struct pt_regs *regs);
|
|
void do_report_trap(struct pt_regs *regs, int si_signo, int si_code, char *str);
|
|
void kernel_stack_overflow(struct pt_regs * regs);
|
|
void handle_signal32(struct ksignal *ksig, sigset_t *oldset,
|
|
struct pt_regs *regs);
|
|
|
|
void do_io_irq(struct pt_regs *regs);
|
|
void do_ext_irq(struct pt_regs *regs);
|
|
void do_restart(void *arg);
|
|
void __init startup_init(void);
|
|
void die(struct pt_regs *regs, const char *str);
|
|
int setup_profiling_timer(unsigned int multiplier);
|
|
unsigned long prepare_ftrace_return(unsigned long parent, unsigned long sp, unsigned long ip);
|
|
|
|
struct s390_mmap_arg_struct;
|
|
struct fadvise64_64_args;
|
|
struct old_sigaction;
|
|
|
|
long sys_rt_sigreturn(void);
|
|
long sys_sigreturn(void);
|
|
|
|
long sys_s390_personality(unsigned int personality);
|
|
long sys_s390_runtime_instr(int command, int signum);
|
|
long sys_s390_guarded_storage(int command, struct gs_cb __user *);
|
|
long sys_s390_pci_mmio_write(unsigned long, const void __user *, size_t);
|
|
long sys_s390_pci_mmio_read(unsigned long, void __user *, size_t);
|
|
long sys_s390_sthyi(unsigned long function_code, void __user *buffer, u64 __user *return_code, unsigned long flags);
|
|
|
|
DECLARE_PER_CPU(u64, mt_cycles[8]);
|
|
|
|
unsigned long stack_alloc(void);
|
|
void stack_free(unsigned long stack);
|
|
|
|
extern char kprobes_insn_page[];
|
|
|
|
extern char _samode31[], _eamode31[];
|
|
extern char _stext_amode31[], _etext_amode31[];
|
|
extern struct exception_table_entry _start_amode31_ex_table[];
|
|
extern struct exception_table_entry _stop_amode31_ex_table[];
|
|
|
|
#define __amode31_data __section(".amode31.data")
|
|
#define __amode31_ref __section(".amode31.refs")
|
|
extern long _start_amode31_refs[], _end_amode31_refs[];
|
|
|
|
#endif /* _ENTRY_H */
|