mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] check_mem_region should be deprecated
Date: Thu, 25 Sep 2003 10:33:47 -0700	[thread overview]
Message-ID: <20030925103347.38f5a78a.shemminger@osdl.org> (raw)

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 */

                 reply	other threads:[~2003-09-25 17:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030925103347.38f5a78a.shemminger@osdl.org \
    --to=shemminger@osdl.org \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®