From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44A51C61DA4 for ; Sun, 5 Mar 2023 13:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbjCEN6Z (ORCPT ); Sun, 5 Mar 2023 08:58:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbjCEN5x (ORCPT ); Sun, 5 Mar 2023 08:57:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD701C32B; Sun, 5 Mar 2023 05:56:59 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2ED72B80AD3; Sun, 5 Mar 2023 13:55:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52567C433EF; Sun, 5 Mar 2023 13:55:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678024530; bh=OzBV5aBqKSqmojYY0HRKAqEqSDU504pp8GTe0Af+pj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R1iQNNTMMC0F+RR0LhEo8yrbkl28u+QNqPE66lJh05ZpeCeV3co+ZMlHYINyVyPof s6EE56zkoQ7531e8450Aw+mZTaw17VvIf4bCC9kRNf5B4HNv6d4eqjuwspDc08ZiQg p4gZ62xAHqx9zAfXKuEqiGdcqYC77NtvV4gj3Fk2lu8xj9U0zEEXqVznqkGqdNL09J 5aqV17sWXOA7v3myneAAnm0UePhFUEqBP69v3QEEJZ9IMRyflKkuG+Z6JT8U74Sl7s NTAwvV/DrY5HK4EFezGDGHfdzjt7MNcCd5KosZaZLivTUgijnn9FrkTXc61fcdXQN2 F9xlhQkQ/ww8A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: xurui , Thomas Bogendoerfer , Sasha Levin , linux-mips@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 2/6] MIPS: Fix a compilation issue Date: Sun, 5 Mar 2023 08:55:21 -0500 Message-Id: <20230305135525.1794277-2-sashal@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230305135525.1794277-1-sashal@kernel.org> References: <20230305135525.1794277-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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