--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/io.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/mips/include/asm/io.h 2021-11-10 11:53:53.000000000 +0000 @@ -172,7 +172,8 @@ #ifndef CONFIG_PCI struct pci_dev; -static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr) {} +static inline void pci_iounmap(struct pci_dev *dev __maybe_unused, + void __iomem *addr __maybe_unused) {} #endif static inline void __iomem * __ioremap_mode(phys_t offset, unsigned long size, @@ -331,7 +332,7 @@ if (irq) \ local_irq_save(__flags); \ __asm__ __volatile__( \ - ".set mips3" "\t\t# __writeq""\n\t" \ + ".set mips32r2" "\t\t# __writeq""\n\t" \ "dsll32 %L0, %L0, 0" "\n\t" \ "dsrl32 %L0, %L0, 0" "\n\t" \ "dsll32 %M0, %M0, 0" "\n\t" \ @@ -361,7 +362,7 @@ if (irq) \ local_irq_save(__flags); \ __asm__ __volatile__( \ - ".set mips3" "\t\t# __readq" "\n\t" \ + ".set mips32r2" "\t\t# __readq" "\n\t" \ "ld %L0, %1" "\n\t" \ "dsra32 %M0, %L0, 0" "\n\t" \ "sll %L0, %L0, 0" "\n\t" \