From: Thierry Reding Date: Thu, 2 Apr 2015 15:27:34 +0000 (+0200) Subject: memory: tegra: Explicitly mark defines unsigned X-Git-Tag: KARO-TXA5-2015-06-26~139^2~1^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=50ce434c2399586a71a868795401b59e04486824;p=karo-tx-linux.git memory: tegra: Explicitly mark defines unsigned Some of these constants are large and will be truncated on 64-bit build, causing warnings. Mark them explicitly unsigned to avoid the warning. Signed-off-by: Thierry Reding --- diff --git a/drivers/memory/tegra/tegra124-emc.c b/drivers/memory/tegra/tegra124-emc.c index 26010adce667..a53ef1b8147d 100644 --- a/drivers/memory/tegra/tegra124-emc.c +++ b/drivers/memory/tegra/tegra124-emc.c @@ -273,8 +273,8 @@ #define EMC_PUTERM_ADJ 0x574 #define DRAM_DEV_SEL_ALL 0 -#define DRAM_DEV_SEL_0 (2 << 30) -#define DRAM_DEV_SEL_1 (1 << 30) +#define DRAM_DEV_SEL_0 (2U << 30) +#define DRAM_DEV_SEL_1 (1U << 30) #define EMC_CFG_POWER_FEATURES_MASK \ (EMC_CFG_DYN_SREF | EMC_CFG_DRAM_ACPD | EMC_CFG_DRAM_CLKSTOP_SR | \