From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AAD84431 for ; Wed, 15 Mar 2023 12:14:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F34D8C433D2; Wed, 15 Mar 2023 12:14:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678882472; bh=OzBV5aBqKSqmojYY0HRKAqEqSDU504pp8GTe0Af+pj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VWqzaRsYI37TLmeh4P6JfvOpAhwdnCYQeP8a8R5U7huWpijqh3/OMVrI8cx0w6O8h 3nv4FS2/8cAu6GrPDSsJrMl91XT9X/pEAiaGbegxnZSON53mPI+FyoLwi+fP9WI+yZ e4q9EuQWESAm2JNvPePgoSLYzuMNmbhvcKloBRoU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, xurui , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 4.14 13/21] MIPS: Fix a compilation issue Date: Wed, 15 Mar 2023 13:12:36 +0100 Message-Id: <20230315115719.301804176@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230315115718.796692048@linuxfoundation.org> References: <20230315115718.796692048@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: xurui [ 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 Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- 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