Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: nv: fix sparse noise

Mostly signedness fixes. nv10_sim_state existence in both drivers suggests
that one of them should be removed, but that's for later.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Antonino A. Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
7d345b22 7ce3ab10

+7 -7
+2 -2
drivers/video/nvidia/nv_hw.c
··· 129 129 int nvclk_khz; 130 130 char mem_page_miss; 131 131 char mem_latency; 132 - int memory_type; 132 + u32 memory_type; 133 133 int memory_width; 134 134 char enable_video; 135 135 char gr_during_vid; ··· 719 719 memctrl >>= 16; 720 720 721 721 if ((memctrl == 0x1A9) || (memctrl == 0x1AB) || (memctrl == 0x1ED)) { 722 - int dimm[3]; 722 + u32 dimm[3]; 723 723 724 724 dev = pci_get_bus_and_slot(0, 2); 725 725 pci_read_config_dword(dev, 0x40, &dimm[0]);
+2 -2
drivers/video/nvidia/nv_setup.c
··· 265 265 266 266 dev = pci_get_bus_and_slot(0, 1); 267 267 if ((par->Chipset & 0xffff) == 0x01a0) { 268 - int amt = 0; 268 + u32 amt; 269 269 270 270 pci_read_config_dword(dev, 0x7c, &amt); 271 271 par->RamAmountKBytes = (((amt >> 6) & 31) + 1) * 1024; 272 272 } else if ((par->Chipset & 0xffff) == 0x01f0) { 273 - int amt = 0; 273 + u32 amt; 274 274 275 275 pci_read_config_dword(dev, 0x84, &amt); 276 276 par->RamAmountKBytes = (((amt >> 4) & 127) + 1) * 1024;
+1 -1
drivers/video/riva/nv_driver.c
··· 158 158 unsigned long memlen = 0; 159 159 unsigned int chipset = par->Chipset; 160 160 struct pci_dev* dev; 161 - int amt; 161 + u32 amt; 162 162 163 163 switch (chip->Architecture) { 164 164 case NV_ARCH_03:
+2 -2
drivers/video/riva/riva_hw.c
··· 231 231 int nvclk_khz; 232 232 char mem_page_miss; 233 233 char mem_latency; 234 - int memory_type; 234 + u32 memory_type; 235 235 int memory_width; 236 236 char enable_video; 237 237 char gr_during_vid; ··· 2107 2107 ) 2108 2108 { 2109 2109 struct pci_dev* dev; 2110 - int amt; 2110 + u32 amt; 2111 2111 2112 2112 #ifdef __BIG_ENDIAN 2113 2113 /* turn on big endian register access */