Kill unused cdev_pc_init()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Kill unused cdev_pc_init()

Martin Pieuchot
ok?

Index: arch/amd64/amd64/conf.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/conf.c,v
retrieving revision 1.69
diff -u -p -r1.69 conf.c
--- arch/amd64/amd64/conf.c 13 May 2020 08:32:43 -0000 1.69
+++ arch/amd64/amd64/conf.c 23 May 2020 11:18:21 -0000
@@ -75,12 +75,6 @@ struct bdevsw bdevsw[] =
 };
 int nblkdev = nitems(bdevsw);
 
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
-
 /* open, close, read, ioctl */
 #define cdev_joy_init(c,n) { \
  dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
Index: arch/arm64/arm64/conf.c
===================================================================
RCS file: /cvs/src/sys/arch/arm64/arm64/conf.c,v
retrieving revision 1.13
diff -u -p -r1.13 conf.c
--- arch/arm64/arm64/conf.c 13 May 2020 08:10:03 -0000 1.13
+++ arch/arm64/arm64/conf.c 23 May 2020 11:18:24 -0000
@@ -72,12 +72,6 @@ struct bdevsw bdevsw[] =
 };
 int nblkdev = nitems(bdevsw);
 
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
-
 /* open, close, read, ioctl */
 #define cdev_joy_init(c,n) { \
  dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
Index: arch/i386/i386/conf.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/conf.c,v
retrieving revision 1.168
diff -u -p -r1.168 conf.c
--- arch/i386/i386/conf.c 13 May 2020 08:32:43 -0000 1.168
+++ arch/i386/i386/conf.c 23 May 2020 11:18:27 -0000
@@ -77,12 +77,6 @@ struct bdevsw bdevsw[] =
 };
 int nblkdev = nitems(bdevsw);
 
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttpoll, dev_init(c,n,mmap), D_TTY }
-
 /* open, close, read, ioctl */
 #define cdev_joy_init(c,n) { \
  dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
Index: arch/i386/include/conf.h
===================================================================
RCS file: /cvs/src/sys/arch/i386/include/conf.h,v
retrieving revision 1.18
diff -u -p -r1.18 conf.h
--- arch/i386/include/conf.h 13 May 2020 08:32:43 -0000 1.18
+++ arch/i386/include/conf.h 23 May 2020 11:18:42 -0000
@@ -40,15 +40,6 @@ cdev_decl(pms);
 bdev_decl(fd);
 cdev_decl(fd);
 
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttpoll, dev_init(c,n,mmap), D_TTY }
-
-cdev_decl(pc);
-
-
 #define cdev_acpiapm_init(c,n) {\
  dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
  (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \

Reply | Threaded
Open this post in threaded view
|

Re: Kill unused cdev_pc_init()

Mark Kettenis
> Date: Sat, 23 May 2020 13:32:33 +0200
> From: Martin Pieuchot <[hidden email]>
>
> ok?

sure

> Index: arch/amd64/amd64/conf.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/amd64/amd64/conf.c,v
> retrieving revision 1.69
> diff -u -p -r1.69 conf.c
> --- arch/amd64/amd64/conf.c 13 May 2020 08:32:43 -0000 1.69
> +++ arch/amd64/amd64/conf.c 23 May 2020 11:18:21 -0000
> @@ -75,12 +75,6 @@ struct bdevsw bdevsw[] =
>  };
>  int nblkdev = nitems(bdevsw);
>  
> -/* open, close, read, write, ioctl, tty, mmap */
> -#define cdev_pc_init(c,n) { \
> - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> - dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
> - dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
> -
>  /* open, close, read, ioctl */
>  #define cdev_joy_init(c,n) { \
>   dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> Index: arch/arm64/arm64/conf.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/arm64/arm64/conf.c,v
> retrieving revision 1.13
> diff -u -p -r1.13 conf.c
> --- arch/arm64/arm64/conf.c 13 May 2020 08:10:03 -0000 1.13
> +++ arch/arm64/arm64/conf.c 23 May 2020 11:18:24 -0000
> @@ -72,12 +72,6 @@ struct bdevsw bdevsw[] =
>  };
>  int nblkdev = nitems(bdevsw);
>  
> -/* open, close, read, write, ioctl, tty, mmap */
> -#define cdev_pc_init(c,n) { \
> - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> - dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
> - dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
> -
>  /* open, close, read, ioctl */
>  #define cdev_joy_init(c,n) { \
>   dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> Index: arch/i386/i386/conf.c
> ===================================================================
> RCS file: /cvs/src/sys/arch/i386/i386/conf.c,v
> retrieving revision 1.168
> diff -u -p -r1.168 conf.c
> --- arch/i386/i386/conf.c 13 May 2020 08:32:43 -0000 1.168
> +++ arch/i386/i386/conf.c 23 May 2020 11:18:27 -0000
> @@ -77,12 +77,6 @@ struct bdevsw bdevsw[] =
>  };
>  int nblkdev = nitems(bdevsw);
>  
> -/* open, close, read, write, ioctl, tty, mmap */
> -#define cdev_pc_init(c,n) { \
> - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> - dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
> - dev_init(c,n,tty), ttpoll, dev_init(c,n,mmap), D_TTY }
> -
>  /* open, close, read, ioctl */
>  #define cdev_joy_init(c,n) { \
>   dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> Index: arch/i386/include/conf.h
> ===================================================================
> RCS file: /cvs/src/sys/arch/i386/include/conf.h,v
> retrieving revision 1.18
> diff -u -p -r1.18 conf.h
> --- arch/i386/include/conf.h 13 May 2020 08:32:43 -0000 1.18
> +++ arch/i386/include/conf.h 23 May 2020 11:18:42 -0000
> @@ -40,15 +40,6 @@ cdev_decl(pms);
>  bdev_decl(fd);
>  cdev_decl(fd);
>  
> -/* open, close, read, write, ioctl, tty, mmap */
> -#define cdev_pc_init(c,n) { \
> - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
> - dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
> - dev_init(c,n,tty), ttpoll, dev_init(c,n,mmap), D_TTY }
> -
> -cdev_decl(pc);
> -
> -
>  #define cdev_acpiapm_init(c,n) {\
>   dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
>   (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
>
>