[PATCH] check_mem_region should be deprecated

From: Stephen Hemminger
Date: Thu Sep 25 2003 - 12:39:58 EST


For 2.6.0-test, check_mem_region has the same races as check_region so it should
be marked deprecated as well.

diff -Nru a/include/linux/ioport.h b/include/linux/ioport.h
--- a/include/linux/ioport.h Thu Sep 25 10:32:22 2003
+++ b/include/linux/ioport.h Thu Sep 25 10:32:22 2003
@@ -107,7 +107,6 @@

/* Compatibility cruft */
#define release_region(start,n) __release_region(&ioport_resource, (start), (n))
-#define check_mem_region(start,n) __check_region(&iomem_resource, (start), (n))
#define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n))

extern int __check_region(struct resource *, unsigned long, unsigned long);
@@ -116,5 +115,9 @@
static inline int __deprecated check_region(unsigned long s, unsigned long n)
{
return __check_region(&ioport_resource, s, n);
+}
+static inline int __deprecated check_mem_region(unsigned long s, unsigned long n)
+{
+ return __check_region(&iomem_resource, s, n);
}
#endif /* _LINUX_IOPORT_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/