Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [pgoyette-localcount] src



Module Name:    src
Committed By:   pgoyette
Date:           Tue Jul 19 06:27:01 UTC 2016

Modified Files:
        src/external/cddl/osnet/dev/fbt [pgoyette-localcount]: fbt.c
        src/external/cddl/osnet/dev/sdt [pgoyette-localcount]: sdt.c
        src/external/cddl/osnet/dist/uts/common/dtrace [pgoyette-localcount]:
            dtrace.c
        src/external/cddl/osnet/dist/uts/common/fs/zfs [pgoyette-localcount]:
            zfs_ioctl.c
        src/sys/arch/acorn26/ioc [pgoyette-localcount]: arcpp.c
        src/sys/arch/acorn32/mainbus [pgoyette-localcount]: fd.c
        src/sys/arch/acorn32/podulebus [pgoyette-localcount]: asc.c
        src/sys/arch/alpha/pci [pgoyette-localcount]: mcpcia.c
        src/sys/arch/alpha/tc [pgoyette-localcount]: ioasic.c
        src/sys/arch/amiga/amiga [pgoyette-localcount]: autoconf.c device.h
        src/sys/arch/amiga/dev [pgoyette-localcount]: afsc.c ahsc.c atzsc.c
            bppcsc.c cbiiisc.c drsc.c fd.c gtsc.c mfc.c mgnsc.c ms.c ser.c
            wesc.c zssc.c
        src/sys/arch/arc/dev [pgoyette-localcount]: opms.c pccons.c
        src/sys/arch/arc/jazz [pgoyette-localcount]: fd.c
        src/sys/arch/arm/amlogic [pgoyette-localcount]: amlogic_com.c
        src/sys/arch/arm/at91 [pgoyette-localcount]: at91dbgu.c at91usart.c
        src/sys/dev [pgoyette-localcount]: audio.c cgd.c fss.c ld.c md.c
            rndpseudo.c vnd.c
        src/sys/dev/dm [pgoyette-localcount]: device-mapper.c
        src/sys/dev/pad [pgoyette-localcount]: pad.c
        src/sys/dev/pci [pgoyette-localcount]: pci_usrreq.c
        src/sys/dev/pud [pgoyette-localcount]: pud_dev.c
        src/sys/dev/putter [pgoyette-localcount]: putter.c
        src/sys/dev/raidframe [pgoyette-localcount]: rf_netbsdkintf.c
        src/sys/dev/scsipi [pgoyette-localcount]: cd.c sd.c
        src/sys/dev/sysmon [pgoyette-localcount]: sysmon.c
        src/sys/dev/usb [pgoyette-localcount]: ucom.c ulpt.c
        src/sys/dev/wscons [pgoyette-localcount]: wskbd.c wsmouse.c
        src/sys/external/bsd/ipf/netinet [pgoyette-localcount]: ip_fil_netbsd.c
        src/sys/kern [pgoyette-localcount]: kern_drvctl.c tty_ptm.c tty_pty.c
            tty_tty.c
        src/sys/net [pgoyette-localcount]: bpf.c if_tap.c
        src/sys/net/npf [pgoyette-localcount]: npf.c
        src/sys/netsmb [pgoyette-localcount]: smb_dev.c
        src/sys/opencrypto [pgoyette-localcount]: cryptodev.c
        src/sys/rump/dev/lib/libbpf [pgoyette-localcount]: bpf_component.c
        src/sys/rump/librump/rumpvfs [pgoyette-localcount]: devnull.c rumpblk.c
        src/sys/sys [pgoyette-localcount]: localcount.h

Log Message:
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@


To generate a diff of this commit:
cvs rdiff -u -r1.18.2.3 -r1.18.2.4 src/external/cddl/osnet/dev/fbt/fbt.c
cvs rdiff -u -r1.16.2.3 -r1.16.2.4 src/external/cddl/osnet/dev/sdt/sdt.c
cvs rdiff -u -r1.32.2.3 -r1.32.2.4 \
    src/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c
cvs rdiff -u -r1.10.2.1 -r1.10.2.2 \
    src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_ioctl.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/sys/arch/acorn26/ioc/arcpp.c
cvs rdiff -u -r1.58 -r1.58.2.1 src/sys/arch/acorn32/mainbus/fd.c
cvs rdiff -u -r1.20 -r1.20.4.1 src/sys/arch/acorn32/podulebus/asc.c
cvs rdiff -u -r1.29 -r1.29.28.1 src/sys/arch/alpha/pci/mcpcia.c
cvs rdiff -u -r1.46 -r1.46.10.1 src/sys/arch/alpha/tc/ioasic.c
cvs rdiff -u -r1.117 -r1.117.4.1 src/sys/arch/amiga/amiga/autoconf.c
cvs rdiff -u -r1.14 -r1.14.18.1 src/sys/arch/amiga/amiga/device.h
cvs rdiff -u -r1.44 -r1.44.18.1 src/sys/arch/amiga/dev/afsc.c
cvs rdiff -u -r1.38 -r1.38.18.1 src/sys/arch/amiga/dev/ahsc.c
cvs rdiff -u -r1.43 -r1.43.18.1 src/sys/arch/amiga/dev/atzsc.c
cvs rdiff -u -r1.3 -r1.3.18.1 src/sys/arch/amiga/dev/bppcsc.c
cvs rdiff -u -r1.21 -r1.21.18.1 src/sys/arch/amiga/dev/cbiiisc.c
cvs rdiff -u -r1.33 -r1.33.10.1 src/sys/arch/amiga/dev/drsc.c
cvs rdiff -u -r1.96 -r1.96.2.1 src/sys/arch/amiga/dev/fd.c
cvs rdiff -u -r1.41 -r1.41.18.1 src/sys/arch/amiga/dev/gtsc.c
cvs rdiff -u -r1.57 -r1.57.8.1 src/sys/arch/amiga/dev/mfc.c
cvs rdiff -u -r1.46 -r1.46.18.1 src/sys/arch/amiga/dev/mgnsc.c
cvs rdiff -u -r1.39 -r1.39.8.1 src/sys/arch/amiga/dev/ms.c
cvs rdiff -u -r1.83 -r1.83.8.1 src/sys/arch/amiga/dev/ser.c
cvs rdiff -u -r1.40 -r1.40.18.1 src/sys/arch/amiga/dev/wesc.c
cvs rdiff -u -r1.45 -r1.45.18.1 src/sys/arch/amiga/dev/zssc.c
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/arc/dev/opms.c
cvs rdiff -u -r1.62 -r1.62.4.1 src/sys/arch/arc/dev/pccons.c
cvs rdiff -u -r1.47 -r1.47.2.1 src/sys/arch/arc/jazz/fd.c
cvs rdiff -u -r1.5 -r1.5.4.1 src/sys/arch/arm/amlogic/amlogic_com.c
cvs rdiff -u -r1.15 -r1.15.2.1 src/sys/arch/arm/at91/at91dbgu.c
cvs rdiff -u -r1.13 -r1.13.2.1 src/sys/arch/arm/at91/at91usart.c
cvs rdiff -u -r1.268.2.1 -r1.268.2.2 src/sys/dev/audio.c
cvs rdiff -u -r1.108.2.1 -r1.108.2.2 src/sys/dev/cgd.c
cvs rdiff -u -r1.93.2.1 -r1.93.2.2 src/sys/dev/fss.c
cvs rdiff -u -r1.94.2.1 -r1.94.2.2 src/sys/dev/ld.c
cvs rdiff -u -r1.76.2.1 -r1.76.2.2 src/sys/dev/md.c
cvs rdiff -u -r1.35.2.1 -r1.35.2.2 src/sys/dev/rndpseudo.c
cvs rdiff -u -r1.256.2.2 -r1.256.2.3 src/sys/dev/vnd.c
cvs rdiff -u -r1.38.2.1 -r1.38.2.2 src/sys/dev/dm/device-mapper.c
cvs rdiff -u -r1.25.2.2 -r1.25.2.3 src/sys/dev/pad/pad.c
cvs rdiff -u -r1.29.2.1 -r1.29.2.2 src/sys/dev/pci/pci_usrreq.c
cvs rdiff -u -r1.7.2.2 -r1.7.2.3 src/sys/dev/pud/pud_dev.c
cvs rdiff -u -r1.35.8.1 -r1.35.8.2 src/sys/dev/putter/putter.c
cvs rdiff -u -r1.345.2.3 -r1.345.2.4 src/sys/dev/raidframe/rf_netbsdkintf.c
cvs rdiff -u -r1.331.2.1 -r1.331.2.2 src/sys/dev/scsipi/cd.c
cvs rdiff -u -r1.317.2.1 -r1.317.2.2 src/sys/dev/scsipi/sd.c
cvs rdiff -u -r1.28.2.1 -r1.28.2.2 src/sys/dev/sysmon/sysmon.c
cvs rdiff -u -r1.113.2.1 -r1.113.2.2 src/sys/dev/usb/ucom.c
cvs rdiff -u -r1.97.2.1 -r1.97.2.2 src/sys/dev/usb/ulpt.c
cvs rdiff -u -r1.136.2.1 -r1.136.2.2 src/sys/dev/wscons/wskbd.c
cvs rdiff -u -r1.66.8.1 -r1.66.8.2 src/sys/dev/wscons/wsmouse.c
cvs rdiff -u -r1.16.2.1 -r1.16.2.2 \
    src/sys/external/bsd/ipf/netinet/ip_fil_netbsd.c
cvs rdiff -u -r1.41.2.1 -r1.41.2.2 src/sys/kern/kern_drvctl.c
cvs rdiff -u -r1.37.2.1 -r1.37.2.2 src/sys/kern/tty_ptm.c
cvs rdiff -u -r1.142.2.1 -r1.142.2.2 src/sys/kern/tty_pty.c
cvs rdiff -u -r1.40.8.1 -r1.40.8.2 src/sys/kern/tty_tty.c
cvs rdiff -u -r1.199.2.1 -r1.199.2.2 src/sys/net/bpf.c
cvs rdiff -u -r1.84.2.1 -r1.84.2.2 src/sys/net/if_tap.c
cvs rdiff -u -r1.31.2.1 -r1.31.2.2 src/sys/net/npf/npf.c
cvs rdiff -u -r1.44.2.1 -r1.44.2.2 src/sys/netsmb/smb_dev.c
cvs rdiff -u -r1.85.2.1 -r1.85.2.2 src/sys/opencrypto/cryptodev.c
cvs rdiff -u -r1.2 -r1.2.2.1 src/sys/rump/dev/lib/libbpf/bpf_component.c
cvs rdiff -u -r1.7.2.1 -r1.7.2.2 src/sys/rump/librump/rumpvfs/devnull.c
cvs rdiff -u -r1.64.2.1 -r1.64.2.2 src/sys/rump/librump/rumpvfs/rumpblk.c
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/sys/sys/localcount.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index