2003-12-26 Martin Mares <mj@ucw.cz>
+ * Replaced obsolete syntax of __attribute__((unused)) in the middle of
+ parameter declarations (which is no longer supported by GCC 3.1) by the
+ current syntax (attribute at the end). Thanks to pixel@mandrakesoft.com
+ for reporting this problem.
+
* Removed CVS $Id$ tags from all files.
* Makefile: Added some more warnings.
/*
* The PCI Library -- User Access
*
- * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
}
static void
-pci_null_debug(char * UNUSED msg, ...)
+pci_null_debug(char *msg UNUSED, ...)
{
}
/*
* The PCI Library -- Reading of Bus Dumps
*
- * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
}
static void
-dump_cleanup(struct pci_access * UNUSED a)
+dump_cleanup(struct pci_access *a UNUSED)
{
}
static void
-dump_scan(struct pci_access * UNUSED a)
+dump_scan(struct pci_access *a UNUSED)
{
}
}
static int
-dump_write(struct pci_dev * UNUSED d, int UNUSED pos, byte * UNUSED buf, int UNUSED len)
+dump_write(struct pci_dev *d UNUSED, int pos UNUSED, byte *buf UNUSED, int len UNUSED)
{
d->access->error("Writing to dump files is not supported.");
return 0;
/*
* Linux PCI Library -- Device Filtering
*
- * Copyright (c) 1998--2002 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1998--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#include "internal.h"
void
-pci_filter_init(struct pci_access * UNUSED a, struct pci_filter *f)
+pci_filter_init(struct pci_access *a UNUSED, struct pci_filter *f)
{
f->bus = f->slot = f->func = -1;
f->vendor = f->device = -1;
/*
* The PCI Library -- Direct Configuration access via i386 Ports
*
- * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
}
static void
-conf12_cleanup(struct pci_access * UNUSED a)
+conf12_cleanup(struct pci_access *a UNUSED)
{
iopl(3);
intel_iopl_set = -1;
/*
* The PCI Library -- Internal Include File
*
- * Copyright (c) 1997--2000 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
/*
* The PCI Library -- Configuration Access via /proc/bus/pci
*
- * Copyright (c) 1997--1999 Martin Mares <mj@ucw.cz>
+ * Copyright (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/