summary refs log tree commit diff
path: root/arch
diff options
context:
space:
mode:
authorxurui <xurui@kylinos.cn>2023-01-18 16:59:12 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-17 08:50:30 +0100
commit5759afd5e5844cfe1483273db0e1b590a73eeec0 (patch)
tree0f52173f5680e096052d7713afd9fcce1aefbed7 /arch
parente1f5c4c877af6ed6549ecf777d1d029a412b969f (diff)
downloadlinux-5759afd5e5844cfe1483273db0e1b590a73eeec0.tar.gz
MIPS: Fix a compilation issue
[ Upstream commit 109d587a4b4d7ccca2200ab1f808f43ae23e2585 ]

arch/mips/include/asm/mach-rc32434/pci.h:377:
cc1: error: result of β€˜-117440512 << 16’ requires 44 bits to represent, but β€˜int’ only has 32 bits [-Werror=shift-overflow=]

All bits in KORINA_STAT are already at the correct position, so there is
no addtional shift needed.

Signed-off-by: xurui <xurui@kylinos.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/include/asm/mach-rc32434/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-rc32434/pci.h b/arch/mips/include/asm/mach-rc32434/pci.h
index 9a6eefd12757..3eb767c8a4ee 100644
--- a/arch/mips/include/asm/mach-rc32434/pci.h
+++ b/arch/mips/include/asm/mach-rc32434/pci.h
@@ -374,7 +374,7 @@ struct pci_msu {
 				 PCI_CFG04_STAT_SSE | \
 				 PCI_CFG04_STAT_PE)
 
-#define KORINA_CNFG1		((KORINA_STAT<<16)|KORINA_CMD)
+#define KORINA_CNFG1		(KORINA_STAT | KORINA_CMD)
 
 #define KORINA_REVID		0
 #define KORINA_CLASS_CODE	0