| From bb3d2e14fd177de0fa78c1c72f1d1fe4753b7f87 Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Wed, 18 Jan 2023 16:59:12 +0800 |
| Subject: MIPS: Fix a compilation issue |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: xurui <xurui@kylinos.cn> |
| |
| [ 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> |
| --- |
| arch/mips/include/asm/mach-rc32434/pci.h | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/arch/mips/include/asm/mach-rc32434/pci.h b/arch/mips/include/asm/mach-rc32434/pci.h |
| index 6f40d1515580b..1ff8a987025c8 100644 |
| --- a/arch/mips/include/asm/mach-rc32434/pci.h |
| +++ b/arch/mips/include/asm/mach-rc32434/pci.h |
| @@ -377,7 +377,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 |
| -- |
| 2.39.2 |
| |