drm/nouveau/fb/gf100-: declare constants as unsigned long long.
authorWambui Karuga <wambui.karugax@gmail.com>
Thu, 2 Jan 2020 12:25:48 +0000 (15:25 +0300)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 15 Jan 2020 00:49:59 +0000 (10:49 +1000)
Explicitly declare constants as unsigned long long to address the
following sparse warnings:
warning: constant is so big it is long

v2: convert to unsigned long long for compatibility with 32-bit
architectures.

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Suggested by: lia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c

index ac87a3b6b7c9e4de1c837c5e03ab2a472d0a9945..ba43fe158b2211c9f6d5380859573b0d1b005726 100644 (file)
@@ -655,7 +655,7 @@ gf100_ram_new_(const struct nvkm_ram_func *func,
 
 static const struct nvkm_ram_func
 gf100_ram = {
-       .upper = 0x0200000000,
+       .upper = 0x0200000000ULL,
        .probe_fbp = gf100_ram_probe_fbp,
        .probe_fbp_amount = gf100_ram_probe_fbp_amount,
        .probe_fbpa_amount = gf100_ram_probe_fbpa_amount,
index 70a06e3cd55a2b4f1326589eb4f39774feacf858..d97fa43efb912c2816bf9d032686d8d4e1a1c55b 100644 (file)
@@ -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 = 0x0200000000ULL,
        .probe_fbp = gf100_ram_probe_fbp,
        .probe_fbp_amount = gf108_ram_probe_fbp_amount,
        .probe_fbpa_amount = gf100_ram_probe_fbpa_amount,
index 456aed1f2a027b06ad444a84eb3c0a98e21b4440..d350d92852d285ac65293f73224b4a2a02c3e09b 100644 (file)
@@ -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 = 0x0200000000ULL,
        .probe_fbp = gf100_ram_probe_fbp,
        .probe_fbp_amount = gf108_ram_probe_fbp_amount,
        .probe_fbpa_amount = gf100_ram_probe_fbpa_amount,
index 27c68e3f977211bf393799894f81912541e7297c..be91da854dca7fa467c7178adfa2b7a3c263758e 100644 (file)
@@ -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 = 0x1000000000ULL,
        .probe_fbp = gm107_ram_probe_fbp,
        .probe_fbp_amount = gf108_ram_probe_fbp_amount,
        .probe_fbpa_amount = gf100_ram_probe_fbpa_amount,
index 6b0cac1fe7b441bf0fdb23c24e3783681f4372ce..8f91ea91ee25f7cb8509817f8398ec6c972cca93 100644 (file)
@@ -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 = 0x1000000000ULL,
        .probe_fbp = gm107_ram_probe_fbp,
        .probe_fbp_amount = gm200_ram_probe_fbp_amount,
        .probe_fbpa_amount = gf100_ram_probe_fbpa_amount,
index adb62a6beb638a580ce8fa29db9260282c79a92d..378f6fb70990778f88ba0a76e09f1114a294e97c 100644 (file)
@@ -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 = 0x1000000000ULL,
        .probe_fbp = gm107_ram_probe_fbp,
        .probe_fbp_amount = gm200_ram_probe_fbp_amount,
        .probe_fbpa_amount = gp100_ram_probe_fbpa,