提交 d1448dfb 编写于 作者: D Dmitry Osipenko 提交者: Zheng Zengkai

memory: tegra: Fix compilation warnings on 64bit platforms

stable inclusion
from stable-5.10.53
commit 41e2bcca23f1833402d1ec570519aa3486ea30fe
bugzilla: 175574 https://gitee.com/openeuler/kernel/issues/I4DTUX

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=41e2bcca23f1833402d1ec570519aa3486ea30fe

--------------------------------

[ Upstream commit e0740fb8 ]

Fix compilation warning on 64bit platforms caused by implicit promotion
of 32bit signed integer to a 64bit unsigned value which happens after
enabling compile-testing of the EMC drivers.
Reported-by: Nkernel test robot <lkp@intel.com>
Reviewed-by: NNathan Chancellor <nathan@kernel.org>
Reviewed-by: NKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: NDmitry Osipenko <digetx@gmail.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 90095034
...@@ -265,8 +265,8 @@ ...@@ -265,8 +265,8 @@
#define EMC_PUTERM_ADJ 0x574 #define EMC_PUTERM_ADJ 0x574
#define DRAM_DEV_SEL_ALL 0 #define DRAM_DEV_SEL_ALL 0
#define DRAM_DEV_SEL_0 (2 << 30) #define DRAM_DEV_SEL_0 BIT(31)
#define DRAM_DEV_SEL_1 (1 << 30) #define DRAM_DEV_SEL_1 BIT(30)
#define EMC_CFG_POWER_FEATURES_MASK \ #define EMC_CFG_POWER_FEATURES_MASK \
(EMC_CFG_DYN_SREF | EMC_CFG_DRAM_ACPD | EMC_CFG_DRAM_CLKSTOP_SR | \ (EMC_CFG_DYN_SREF | EMC_CFG_DRAM_ACPD | EMC_CFG_DRAM_CLKSTOP_SR | \
......
...@@ -145,8 +145,8 @@ ...@@ -145,8 +145,8 @@
#define EMC_SELF_REF_CMD_ENABLED BIT(0) #define EMC_SELF_REF_CMD_ENABLED BIT(0)
#define DRAM_DEV_SEL_ALL (0 << 30) #define DRAM_DEV_SEL_ALL (0 << 30)
#define DRAM_DEV_SEL_0 (2 << 30) #define DRAM_DEV_SEL_0 BIT(31)
#define DRAM_DEV_SEL_1 (1 << 30) #define DRAM_DEV_SEL_1 BIT(30)
#define DRAM_BROADCAST(num) \ #define DRAM_BROADCAST(num) \
((num) > 1 ? DRAM_DEV_SEL_ALL : DRAM_DEV_SEL_0) ((num) > 1 ? DRAM_DEV_SEL_ALL : DRAM_DEV_SEL_0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册