parisc architecture fixes and updates for kernel v6.5-rc1 (pt 2):
* Fix all compiler warnings in arch/parisc and drivers/parisc when compiled with W=1 -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQS86RI+GtKfB8BJu973ErUQojoPXwUCZKUXpAAKCRD3ErUQojoP X5R0AQCVtMMW1CVVW5WcSu4KCfIYsEZyE41CCiwHYqbJRVrGVQD/a3MRG3Ss3DwV OOD2eg0u4diiDgpis7m3Ow4R50bnGAk= =swYk -----END PGP SIGNATURE----- Merge tag 'parisc-for-6.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux Pull more parisc architecture updates from Helge Deller: - Fix all compiler warnings in arch/parisc and drivers/parisc when compiled with W=1 * tag 'parisc-for-6.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: syscalls: Avoid compiler warnings with W=1 parisc: math-emu: Avoid compiler warnings with W=1 parisc: Raise minimal GCC version to 12.0.0 parisc: unwind: Avoid missing prototype warning for handle_interruption() parisc: smp: Add declaration for start_cpu_itimer() parisc: pdt: Get prototype for arch_report_meminfo()
This commit is contained in:
Коммит
2a95b03d4c
|
@ -295,6 +295,8 @@ extern unsigned int toc_handler_csum;
|
|||
extern void do_cpu_irq_mask(struct pt_regs *);
|
||||
extern irqreturn_t timer_interrupt(int, void *);
|
||||
extern irqreturn_t ipi_interrupt(int, void *);
|
||||
extern void start_cpu_itimer(void);
|
||||
extern void handle_interruption(int, struct pt_regs *);
|
||||
|
||||
/* called from assembly code: */
|
||||
extern void start_parisc(void);
|
||||
|
|
|
@ -21,6 +21,9 @@ CFLAGS_REMOVE_unwind.o = $(CC_FLAGS_FTRACE)
|
|||
CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE)
|
||||
endif
|
||||
|
||||
CFLAGS_REMOVE_sys_parisc.o = -Wmissing-prototypes -Wmissing-declarations
|
||||
CFLAGS_REMOVE_sys_parisc32.o = -Wmissing-prototypes -Wmissing-declarations
|
||||
|
||||
obj-$(CONFIG_SMP) += smp.o
|
||||
obj-$(CONFIG_PA11) += pci-dma.o
|
||||
obj-$(CONFIG_PCI) += pci.o
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <linux/memblock.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/kthread.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/initrd.h>
|
||||
#include <linux/pgtable.h>
|
||||
#include <linux/mm.h>
|
||||
|
|
|
@ -271,8 +271,6 @@ void arch_send_call_function_single_ipi(int cpu)
|
|||
static void
|
||||
smp_cpu_init(int cpunum)
|
||||
{
|
||||
extern void start_cpu_itimer(void); /* arch/parisc/kernel/time.c */
|
||||
|
||||
/* Set modes and Enable floating point coprocessor */
|
||||
init_per_cpu(cpunum);
|
||||
|
||||
|
|
|
@ -221,7 +221,6 @@ static int unwind_special(struct unwind_frame_info *info, unsigned long pc, int
|
|||
* Note: We could use dereference_kernel_function_descriptor()
|
||||
* instead but we want to keep it simple here.
|
||||
*/
|
||||
extern void * const handle_interruption;
|
||||
extern void * const ret_from_kernel_thread;
|
||||
extern void * const syscall_exit;
|
||||
extern void * const intr_return;
|
||||
|
@ -229,8 +228,10 @@ static int unwind_special(struct unwind_frame_info *info, unsigned long pc, int
|
|||
#ifdef CONFIG_IRQSTACKS
|
||||
extern void * const _call_on_stack;
|
||||
#endif /* CONFIG_IRQSTACKS */
|
||||
void *ptr;
|
||||
|
||||
if (pc_is_kernel_fn(pc, handle_interruption)) {
|
||||
ptr = dereference_kernel_function_descriptor(&handle_interruption);
|
||||
if (pc_is_kernel_fn(pc, ptr)) {
|
||||
struct pt_regs *regs = (struct pt_regs *)(info->sp - frame_size - PT_SZ_ALGN);
|
||||
dbg("Unwinding through handle_interruption()\n");
|
||||
info->prev_sp = regs->gr[30];
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
# See arch/parisc/math-emu/README
|
||||
ccflags-y := -Wno-parentheses -Wno-implicit-function-declaration \
|
||||
-Wno-uninitialized -Wno-strict-prototypes -Wno-return-type \
|
||||
-Wno-implicit-int
|
||||
-Wno-implicit-int -Wno-missing-prototypes -Wno-missing-declarations \
|
||||
-Wno-old-style-definition -Wno-unused-but-set-variable
|
||||
|
||||
obj-y := frnd.o driver.o decode_exc.o fpudispatch.o denormal.o \
|
||||
dfmpy.o sfmpy.o sfsqrt.o dfsqrt.o dfadd.o fmpyfadd.o \
|
||||
|
|
|
@ -17,8 +17,8 @@ binutils)
|
|||
echo 2.25.0
|
||||
;;
|
||||
gcc)
|
||||
if [ "$SRCARCH" = parisc ]; then
|
||||
echo 11.0.0
|
||||
if [ "$ARCH" = parisc64 ]; then
|
||||
echo 12.0.0
|
||||
else
|
||||
echo 5.1.0
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче