Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2012 19:30:29 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239791 - in head/sys: kern sys
Message-ID:  <201208281930.q7SJUTXY018342@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Tue Aug 28 19:30:29 2012
New Revision: 239791
URL: http://svn.freebsd.org/changeset/base/239791

Log:
  Remove unused SI_* flags.
  
  The SI_DEVOPEN, SI_CONSOPEN and SI_CANDELETE flags are not used by any
  piece of code in the tree.

Modified:
  head/sys/kern/kern_conf.c
  head/sys/sys/conf.h

Modified: head/sys/kern/kern_conf.c
==============================================================================
--- head/sys/kern/kern_conf.c	Tue Aug 28 19:28:31 2012	(r239790)
+++ head/sys/kern/kern_conf.c	Tue Aug 28 19:30:29 2012	(r239791)
@@ -1431,10 +1431,7 @@ DB_SHOW_COMMAND(cdev, db_show_cdev)
 	SI_FLAG(SI_NAMED);
 	SI_FLAG(SI_CHEAPCLONE);
 	SI_FLAG(SI_CHILD);
-	SI_FLAG(SI_DEVOPEN);
-	SI_FLAG(SI_CONSOPEN);
 	SI_FLAG(SI_DUMPDEV);
-	SI_FLAG(SI_CANDELETE);
 	SI_FLAG(SI_CLONELIST);
 	db_printf("si_flags %s\n", buf);
 

Modified: head/sys/sys/conf.h
==============================================================================
--- head/sys/sys/conf.h	Tue Aug 28 19:28:31 2012	(r239790)
+++ head/sys/sys/conf.h	Tue Aug 28 19:30:29 2012	(r239791)
@@ -59,10 +59,7 @@ struct cdev {
 #define	SI_NAMED	0x0004	/* make_dev{_alias} has been called */
 #define	SI_CHEAPCLONE	0x0008	/* can be removed_dev'ed when vnode reclaims */
 #define	SI_CHILD	0x0010	/* child of another struct cdev **/
-#define	SI_DEVOPEN	0x0020	/* opened by device */
-#define	SI_CONSOPEN	0x0040	/* opened by console */
 #define	SI_DUMPDEV	0x0080	/* is kernel dumpdev */
-#define	SI_CANDELETE	0x0100	/* can do BIO_DELETE */
 #define	SI_CLONELIST	0x0200	/* on a clone list */
 	struct timespec	si_atime;
 	struct timespec	si_ctime;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208281930.q7SJUTXY018342>