NODEVFS cleanup:
Remove cdevsw_add() and cdevsw_remove(), they served us well for a long time. Bump __FreeBSD_version to 500104 to mark this.
This commit is contained in:
parent
4c61f9036b
commit
f477b4fd53
@ -127,28 +127,6 @@ devsw(dev_t dev)
|
||||
return (&dead_cdevsw);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add a cdevsw entry
|
||||
*/
|
||||
|
||||
int
|
||||
cdevsw_add(struct cdevsw *newentry)
|
||||
{
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove a cdevsw entry
|
||||
*/
|
||||
|
||||
int
|
||||
cdevsw_remove(struct cdevsw *oldentry)
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* dev_t and u_dev_t primitives
|
||||
*/
|
||||
|
@ -307,8 +307,6 @@ static moduledata_t name##_mod = { \
|
||||
DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
|
||||
|
||||
|
||||
int cdevsw_add(struct cdevsw *_new);
|
||||
int cdevsw_remove(struct cdevsw *_old);
|
||||
int count_dev(dev_t _dev);
|
||||
void destroy_dev(dev_t _dev);
|
||||
void revoke_and_destroy_dev(dev_t _dev);
|
||||
|
@ -307,8 +307,6 @@ static moduledata_t name##_mod = { \
|
||||
DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
|
||||
|
||||
|
||||
int cdevsw_add(struct cdevsw *_new);
|
||||
int cdevsw_remove(struct cdevsw *_old);
|
||||
int count_dev(dev_t _dev);
|
||||
void destroy_dev(dev_t _dev);
|
||||
void revoke_and_destroy_dev(dev_t _dev);
|
||||
|
@ -55,7 +55,7 @@
|
||||
* doc/en_US.ISO8859-1/books/porters-handbook/book.sgml
|
||||
*/
|
||||
#undef __FreeBSD_version
|
||||
#define __FreeBSD_version 500103 /* Master, propagated to newvers */
|
||||
#define __FreeBSD_version 500104 /* Master, propagated to newvers */
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
|
Loading…
Reference in New Issue
Block a user