# HG changeset patch # User arpi_esp # Date 990647512 0 # Node ID 76ca00724e126279e6499260279922beca1d135a # Parent 4f5a6c252703ac698847a03d448fb887590abaaf gcc warnings fixed - patch by Aelius aelius@wish.net diff -r 4f5a6c252703 -r 76ca00724e12 drivers/mga_vid.c --- a/drivers/mga_vid.c Wed May 23 09:19:58 2001 +0000 +++ b/drivers/mga_vid.c Wed May 23 19:51:52 2001 +0000 @@ -554,7 +554,7 @@ void mga_handle_irq(int irq, void *dev_id, struct pt_regs *pregs) { // static int frame=0; - static int counter=0; +// static int counter=0; long int cc; // if ( ! mga_enabled_flag ) return; @@ -629,7 +629,7 @@ //FIXME remove // printk(KERN_DEBUG "vcount = %d\n",readl(mga_mmio_base + VCOUNT)); printk(KERN_DEBUG "mga_mmio_base = %p\n",mga_mmio_base); - printk(KERN_DEBUG "mga_mem_base = %08lx\n",mga_mem_base); + printk(KERN_DEBUG "mga_mem_base = %08x\n",mga_mem_base); //FIXME remove printk(KERN_DEBUG "mga_vid: Received configuration\n"); @@ -724,7 +724,7 @@ static int mga_vid_find_card(void) { struct pci_dev *dev = NULL; - unsigned int card_option, temp; + unsigned int card_option; if((dev = pci_find_device(PCI_VENDOR_ID_MATROX, PCI_DEVICE_ID_MATROX_G400, NULL))) { @@ -758,7 +758,7 @@ mga_mmio_base = ioremap_nocache(dev->base_address[1] & PCI_BASE_ADDRESS_MEM_MASK,0x4000); mga_mem_base = dev->base_address[0] & PCI_BASE_ADDRESS_MEM_MASK; #endif - printk(KERN_INFO "mga_vid: MMIO at 0x%p IRQ: %d framebuffer: 0x%08lX\n", mga_mmio_base, mga_irq, mga_mem_base); + printk(KERN_INFO "mga_vid: MMIO at 0x%p IRQ: %d framebuffer: 0x%08X\n", mga_mmio_base, mga_irq, mga_mem_base); pci_read_config_dword(dev, 0x40, &card_option); printk(KERN_INFO "mga_vid: OPTION word: 0x%08X mem: 0x%02X %s\n", card_option, diff -r 4f5a6c252703 -r 76ca00724e12 drivers/mga_vid.h --- a/drivers/mga_vid.h Wed May 23 09:19:58 2001 +0000 +++ b/drivers/mga_vid.h Wed May 23 19:51:52 2001 +0000 @@ -15,7 +15,7 @@ #ifndef __LINUX_MGAVID_H #define __LINUX_MGAVID_H -#include +//#include typedef struct mga_vid_config_s { diff -r 4f5a6c252703 -r 76ca00724e12 drivers/mga_vid_test.c --- a/drivers/mga_vid_test.c Wed May 23 09:19:58 2001 +0000 +++ b/drivers/mga_vid_test.c Wed May 23 19:51:52 2001 +0000 @@ -16,6 +16,7 @@ #include #include #include +#include #include "mga_vid.h" mga_vid_config_t config;