Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15821352ybl; Tue, 31 Dec 2019 16:01:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyXMNE6JYz8k04TezY6dCRggwJzdYPlEy0B5/IlpTuUlondp/lKDfRhpAFlEsz5retdbjIX X-Received: by 2002:aa7:da13:: with SMTP id r19mr79511265eds.188.1577836875610; Tue, 31 Dec 2019 16:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577836875; cv=none; d=google.com; s=arc-20160816; b=VrxRFe0ZqbxPSZW7E9gfcg+BEPskpd/H7zkES1jnt7wXTk2MT4LOZUm+hKxohZ4kW8 p5IDoTI+dFrI+lZRLJyQTUqYXitIOT9Ht6/OR1JZUkvB4npf0yNyYoBLxp9h9Mufu1Wb 535iGTdi7uboCJDTOBx1Y9A8WntX+0+tTgSHzfNXCFDB+c97q5FMGPdI9yBvOs49Z9rE ywD/99Pj5W6695Bv2gmwTqCr80JwaFRfAZFMsGpWLbpN50pxBfMg47pbuADYOHBUptqk RWbxrvFqv+jD+ZpIih0eHwBBd+jcZiA36wEJRwwH6NG4eeyOFTRIR9r7CK/zNK/Da0kR JKLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=LsL27s0tuCQlfnDvJy5Zm7PNE+go0EEE73GIc5LtbDE=; b=V6+klZlhWpqHnqBnBZKRjqrGPyvd+agp17FfxCl9m2AOBIyGItXbw3bcs2TgKUC5MJ 1xqN38EhpKyCbvWfZ973nT16AAMCQKYzWB8Q5Ax1Oa9xRAVLPi+qGPCUZzxBCtT/6V3N 0VUFxmHCXlYbM/R321PK14Cx/S6MF1yges63aNTZRNnIiZ+rmlGZUqYPOzoaks/vcUkP O0Mvsvpl517JmxivRXGTt+WyBQ56aIyVSpPVunFFNJ+mcXqE8PomoOhW/cUE2l6Xh5tb JLNSIZyTNuoRhlOSkSsoVgZBBgoZbhoI5sB/8kFdyP8beT0brC7Yft7nrtP2TorL70zN U19A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si31765674ejr.341.2019.12.31.16.00.51; Tue, 31 Dec 2019 16:01:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727106AbfLaXyI (ORCPT + 99 others); Tue, 31 Dec 2019 18:54:08 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:38852 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbfLaXyI (ORCPT ); Tue, 31 Dec 2019 18:54:08 -0500 Received: by mail-vs1-f65.google.com with SMTP id v12so23389640vsv.5 for ; Tue, 31 Dec 2019 15:54:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LsL27s0tuCQlfnDvJy5Zm7PNE+go0EEE73GIc5LtbDE=; b=Rt+LQC27timXAUDuy4d9DAnJ8Smj6KWqfWrVQRUuqf1PKFA1BIE1dj8CSPqgV4Ccx/ fifgMCyv8kywwUpA/SRpKpDHQ6TBO8a71VBsn6iDvvII2rsu4RTp/r76v0ldL97XjK++ pohRSN0IvhROfKiTeerpYIRulWPjXjqBuSiuZX7JMSbjtFOck3hLuYTXNZeyLvxmjLqW 92B0X796PQa61Sq84PHPxdVXeF41hg38491S+RwdCe/T1WQYTO4B4mv0rI9Zc+61MbS8 TMkbddR3h4sgiMN9tNIheqHt8ugZ1hTMUJH3cyuLEQ1VT0VmvCPu6zbmvO88ZGk9PRE3 nmbA== X-Gm-Message-State: APjAAAVO+6T5TmtGMxwaS4f4iCRR3YsR/9BJwxQ3bCG94tqG5R2kZZbc xwDDGjyTQYhHPIo3VPcV3UAXRef9YaQxTNrg7EI= X-Received: by 2002:a05:6102:3024:: with SMTP id v4mr39682304vsa.220.1577836447055; Tue, 31 Dec 2019 15:54:07 -0800 (PST) MIME-Version: 1.0 References: <20191231205345.32615-1-wambui.karugax@gmail.com> In-Reply-To: <20191231205345.32615-1-wambui.karugax@gmail.com> From: Ilia Mirkin Date: Tue, 31 Dec 2019 18:53:55 -0500 Message-ID: Subject: Re: [PATCH] drm/nouveau: declare constants as unsigned long. To: Wambui Karuga Cc: Ben Skeggs , David Airlie , Daniel Vetter , dri-devel , nouveau , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Probably want ULL for 32-bit arches to be correct here too. On Tue, Dec 31, 2019 at 3:53 PM Wambui Karuga wrote: > > Explicitly declare constants are unsigned long to address the following > sparse warnings: > warning: constant is so big it is long > > Signed-off-by: Wambui Karuga > --- > drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c | 2 +- > drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c | 2 +- > drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c | 2 +- > drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c | 2 +- > drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c | 2 +- > drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c > index ac87a3b6b7c9..506b358fcdb6 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c > @@ -655,7 +655,7 @@ gf100_ram_new_(const struct nvkm_ram_func *func, > > static const struct nvkm_ram_func > gf100_ram = { > - .upper = 0x0200000000, > + .upper = 0x0200000000UL, > .probe_fbp = gf100_ram_probe_fbp, > .probe_fbp_amount = gf100_ram_probe_fbp_amount, > .probe_fbpa_amount = gf100_ram_probe_fbpa_amount, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c > index 70a06e3cd55a..3bc39895bbce 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c > @@ -43,7 +43,7 @@ gf108_ram_probe_fbp_amount(const struct nvkm_ram_func *func, u32 fbpao, > > static const struct nvkm_ram_func > gf108_ram = { > - .upper = 0x0200000000, > + .upper = 0x0200000000UL, > .probe_fbp = gf100_ram_probe_fbp, > .probe_fbp_amount = gf108_ram_probe_fbp_amount, > .probe_fbpa_amount = gf100_ram_probe_fbpa_amount, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c > index 456aed1f2a02..d01f32c0956a 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c > @@ -1698,7 +1698,7 @@ gk104_ram_new_(const struct nvkm_ram_func *func, struct nvkm_fb *fb, > > static const struct nvkm_ram_func > gk104_ram = { > - .upper = 0x0200000000, > + .upper = 0x0200000000UL, > .probe_fbp = gf100_ram_probe_fbp, > .probe_fbp_amount = gf108_ram_probe_fbp_amount, > .probe_fbpa_amount = gf100_ram_probe_fbpa_amount, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c > index 27c68e3f9772..e24ac664eb15 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c > @@ -33,7 +33,7 @@ gm107_ram_probe_fbp(const struct nvkm_ram_func *func, > > static const struct nvkm_ram_func > gm107_ram = { > - .upper = 0x1000000000, > + .upper = 0x1000000000UL, > .probe_fbp = gm107_ram_probe_fbp, > .probe_fbp_amount = gf108_ram_probe_fbp_amount, > .probe_fbpa_amount = gf100_ram_probe_fbpa_amount, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c > index 6b0cac1fe7b4..17994cbda54b 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c > @@ -48,7 +48,7 @@ gm200_ram_probe_fbp_amount(const struct nvkm_ram_func *func, u32 fbpao, > > static const struct nvkm_ram_func > gm200_ram = { > - .upper = 0x1000000000, > + .upper = 0x1000000000UL, > .probe_fbp = gm107_ram_probe_fbp, > .probe_fbp_amount = gm200_ram_probe_fbp_amount, > .probe_fbpa_amount = gf100_ram_probe_fbpa_amount, > diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c > index adb62a6beb63..7a07a6ed4578 100644 > --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c > +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c > @@ -79,7 +79,7 @@ gp100_ram_probe_fbpa(struct nvkm_device *device, int fbpa) > > static const struct nvkm_ram_func > gp100_ram = { > - .upper = 0x1000000000, > + .upper = 0x1000000000UL, > .probe_fbp = gm107_ram_probe_fbp, > .probe_fbp_amount = gm200_ram_probe_fbp_amount, > .probe_fbpa_amount = gp100_ram_probe_fbpa, > -- > 2.17.1 >