mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 03:00:04 +07:00
drm/nouveau/fb/gf100-: declare constants as unsigned long long.
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>
This commit is contained in:
parent
2574c809d7
commit
2cf3c8bc47
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user