Commit ed8ea4d4 authored by William Stinson's avatar William Stinson Committed by Linus Torvalds

[PATCH] mark check_region "deprecated"

This marks check_region "deprecated".

This gives a nice warning messages for programs that still use
check_region for example:

 drivers/parport/parport_pc.c:2215: warning: `__check_region' is deprecated (declared at include/linux/ioport.h:111)
parent 8ad65876
......@@ -8,6 +8,7 @@
#ifndef _LINUX_IOPORT_H
#define _LINUX_IOPORT_H
#include <linux/compiler.h>
/*
* Resources are tree-like, allowing
* nesting etc..
......@@ -107,7 +108,7 @@ extern struct resource * __request_region(struct resource *, unsigned long start
#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);
extern int deprecated __check_region(struct resource *, unsigned long, unsigned long);
extern void __release_region(struct resource *, unsigned long, unsigned long);
#define get_ioport_list(buf) get_resource_list(&ioport_resource, buf, PAGE_SIZE)
......
......@@ -237,7 +237,7 @@ struct resource * __request_region(struct resource *parent, unsigned long start,
return res;
}
int __check_region(struct resource *parent, unsigned long start, unsigned long n)
int deprecated __check_region(struct resource *parent, unsigned long start, unsigned long n)
{
struct resource * res;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment