From: visa Date: Mon, 27 Jun 2022 14:11:44 +0000 (+0000) Subject: Remove switch(4) leftovers. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9ded12c53b9a250ad4fc11818afeb5662dade550;p=openbsd Remove switch(4) leftovers. OK deraadt@ mpi@ claudio@ miod@ --- diff --git a/etc/etc.hppa/MAKEDEV.md b/etc/etc.hppa/MAKEDEV.md index 2ccd26a5133..af22626de5a 100644 --- a/etc/etc.hppa/MAKEDEV.md +++ b/etc/etc.hppa/MAKEDEV.md @@ -1,6 +1,6 @@ define(MACHINE,hppa)dnl vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.68 2021/11/11 09:47:33 claudio Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.69 2022/06/27 14:11:44 visa Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries @@ -108,4 +108,3 @@ target(all, rd, 0)dnl target(all, cd, 0, 1)dnl target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl target(all, vnd, 0, 1, 2, 3)dnl -target(all, switch, 0, 1, 2, 3)dnl diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 5783e5244d2..0a315bf5d9c 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.156 2021/01/23 05:08:36 thfr Exp $ */ +/* $OpenBSD: conf.h,v 1.157 2022/06/27 14:11:44 visa Exp $ */ /* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */ /*- @@ -257,13 +257,6 @@ extern struct cdevsw cdevsw[]; 0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, \ 0, 0, dev_init(c,n,kqfilter) } -/* open, close, read, write, ioctl, poll, kqfilter -- XXX should be generic device */ -#define cdev_switch_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_type_stop((*))) enodev, \ - 0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, \ - 0, 0, dev_init(c,n,kqfilter) } - /* open, close, ioctl, poll, kqfilter -- XXX should be generic device */ #define cdev_vscsi_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), \ @@ -607,7 +600,6 @@ cdev_decl(pf); cdev_decl(tun); cdev_decl(tap); -cdev_decl(switch); cdev_decl(pppx); cdev_decl(pppac);