* [PATCH] check_mem_region should be deprecated
@ 2003-09-25 17:33 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-09-25 17:33 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-25 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-25 17:33 [PATCH] check_mem_region should be deprecated Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®