Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Fix a compilation issue

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>

authored by

xurui and committed by
Thomas Bogendoerfer
109d587a f048158c

+1 -1
+1 -1
arch/mips/include/asm/mach-rc32434/pci.h
··· 374 374 PCI_CFG04_STAT_SSE | \ 375 375 PCI_CFG04_STAT_PE) 376 376 377 - #define KORINA_CNFG1 ((KORINA_STAT<<16)|KORINA_CMD) 377 + #define KORINA_CNFG1 (KORINA_STAT | KORINA_CMD) 378 378 379 379 #define KORINA_REVID 0 380 380 #define KORINA_CLASS_CODE 0