Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2581879pxj; Mon, 17 May 2021 05:11:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqLuqT50Xekh0RQIb6+eqIQzo43XrummdmBK2AhBfXJ5lY7FLM/mwrHZRjv+QQS3g1dmoU X-Received: by 2002:a1c:f717:: with SMTP id v23mr22638227wmh.32.1621253487894; Mon, 17 May 2021 05:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621253487; cv=none; d=google.com; s=arc-20160816; b=FR9yF3HQCzwELFw5ZFZaFboX3Qfsc/zlggi1fLq2efkszgMFZRsj1cGQAjEAnYoDto Iaq/7d0+r6rYTrod/evKHYVb/bYZRmcHU3Qy24f40F6kaSqVweoonjjIrFcawy4kKOad VLFurembCFQjt93jMlQDwm0ymuIFmFGe5i76WqDgllmOtLIYbdBlBED1V6M5EpdK9wyQ 7I6v2YwzyUUK10owNWaT9mA8omKnlTMfa2LiLjv4qdXrJHCODsqfBHyiAX5BvhCaxmf4 quTS4IGc/fqpetqREJlWuG0v2NY/Ti0HMpaTZqUb2f/TfWnPqCLI0I7nYaX9VGOoKxyH 5v5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Vki2S/hzwhDz564K+oyXl0KaPI9HusYBLcreHQeE5k8=; b=MThwpRmKR6lO8yUX2GiXDrE/ZHi/P6y6hmIQHEDxShklBub2kLRfb4Or7/dM4Lm/SH SBJLDkETqhpKppn73tEe1DnnZsJbasMZwDD2N5CAEKdwBOLC8CFOJWu74jLChHfjwAq3 Zl8+TC4QMgvTLP0JL8W7GavqbqUP+gSX0VR0BGV5nYVe+ngRCkw4PZ97vDdeKdvO7RO2 +Xi/qofmYF8RM+rQQ61w/caHMOw8EHiluMQB88u2q6kh59Fq+V/Vg0NWHdYc4zjlXRBw D/VoHPhqfyqREHKonnWs7u2wtiocdXhpXC5liU0S9Ru8ptv+9awx2fRiKKu/52ZRESvN hunw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RURx+nQZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si13609375eja.351.2021.05.17.05.11.05; Mon, 17 May 2021 05:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RURx+nQZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234284AbhEQG2L (ORCPT + 99 others); Mon, 17 May 2021 02:28:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:39690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbhEQG2K (ORCPT ); Mon, 17 May 2021 02:28:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6458D60E09; Mon, 17 May 2021 06:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621232814; bh=jn2SaI7axFVBIYRBlUnEKjgE+jA5zwUtTS1nY4T5GBc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RURx+nQZJGT2S5mQ3MTr+VEbsnXhDppToXBTwfzFQx20iPzHDMBZT2NJs6yo+M9vF jaiu5nOftR4PvTHQSYfqpQ6g/O7Mm4BrJE78EvxdzOMc1x8L3LoGO+SxsFHxG0Sk1T RiqTIQt80Nro/CWaWaxovn43+I3KzwDkq1iN2boehg+6WW2QJjgDSoeaPOvvWaAOl/ NZYOgy4DmHr0s+82wv70lDwi7NL54Ol4t0D8snxKA94jgHGr8Ui1+48RgZdWdIwm42 bIernAz/EOvxCOc7AMARuOtWJ4HoEcebrz+EPODXxixArVJ5Byp0is16fEkFBLsSlB eAc/ndNzVpW2g== Subject: Re: [PATCH v2 3/4] memory: tegra124-emc: Fix compilation warnings on 64bit platforms To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Krzysztof Kozlowski , Stephen Boyd , Mikko Perttunen Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org References: <20210516161214.4693-1-digetx@gmail.com> <20210516161214.4693-4-digetx@gmail.com> From: Nathan Chancellor Message-ID: <831d3af5-1e4a-f3c0-f69d-3fff145fde08@kernel.org> Date: Sun, 16 May 2021 23:26:51 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210516161214.4693-4-digetx@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/16/2021 9:12 AM, Dmitry Osipenko wrote: > 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 driver. > > Suggested-by: Nathan Chancellor > Signed-off-by: Dmitry Osipenko Reviewed-by: Nathan Chancellor > --- > drivers/memory/tegra/tegra124-emc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/memory/tegra/tegra124-emc.c b/drivers/memory/tegra/tegra124-emc.c > index 5699d909abc2..c9eb948cf4df 100644 > --- a/drivers/memory/tegra/tegra124-emc.c > +++ b/drivers/memory/tegra/tegra124-emc.c > @@ -272,8 +272,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 | \ >