cvs commit: src/sys/cam/scsi scsi_pass.c scsi_ses.c scsi_sg.c scsi_target.c src/sys/cddl/dev/dtrace dtrace_clone.c src/sys/dev/led led.c src/sys/dev/sound/pci emu10kx.c src/sys/dev/sound/pcm dsp.c mixer.c src/sys/dev/vkbd vkbd.c ...

Ed Schouten ed at FreeBSD.org
Fri Sep 26 14:21:12 UTC 2008


ed          2008-09-26 14:19:52 UTC

  FreeBSD src repository

  Modified files:
    sys/cam/scsi         scsi_pass.c scsi_ses.c scsi_sg.c 
                         scsi_target.c 
    sys/cddl/dev/dtrace  dtrace_clone.c 
    sys/dev/led          led.c 
    sys/dev/sound/pci    emu10kx.c 
    sys/dev/sound/pcm    dsp.c mixer.c 
    sys/dev/vkbd         vkbd.c 
    sys/fs/coda          coda_fbsd.c 
    sys/geom             geom_dev.c 
    sys/i386/acpica      acpi_machdep.c 
    sys/kern             kern_conf.c 
    sys/net              if.c if_tap.c if_tun.c 
    sys/netgraph         ng_device.c 
    sys/netsmb           smb_dev.c 
    sys/security/audit   audit_pipe.c 
  Log:
  SVN rev 183381 on 2008-09-26 14:19:52Z by ed
  
  Remove unit2minor() use from kernel code.
  
  When I changed kern_conf.c three months ago I made device unit numbers
  equal to (unneeded) device minor numbers. We used to require
  bitshifting, because there were eight bits in the middle that were
  reserved for a device major number. Not very long after I turned
  dev2unit(), minor(), unit2minor() and minor2unit() into macro's.
  The unit2minor() and minor2unit() macro's were no-ops.
  
  We'd better not remove these four macro's from the kernel, because there
  is a lot of (external) code that may still depend on them. For now it's
  harmless to remove all invocations of unit2minor() and minor2unit().
  
  Reviewed by:    kib
  
  Revision  Changes    Path
  1.49      +2 -2      src/sys/cam/scsi/scsi_pass.c
  1.38      +1 -1      src/sys/cam/scsi/scsi_ses.c
  1.10      +2 -2      src/sys/cam/scsi/scsi_sg.c
  1.74      +1 -1      src/sys/cam/scsi/scsi_target.c
  1.2       +1 -1      src/sys/cddl/dev/dtrace/dtrace_clone.c
  1.20      +1 -1      src/sys/dev/led/led.c
  1.14      +1 -1      src/sys/dev/sound/pci/emu10kx.c
  1.110     +1 -1      src/sys/dev/sound/pcm/dsp.c
  1.62      +1 -1      src/sys/dev/sound/pcm/mixer.c
  1.14      +1 -1      src/sys/dev/vkbd/vkbd.c
  1.49      +1 -1      src/sys/fs/coda/coda_fbsd.c
  1.99      +1 -1      src/sys/geom/geom_dev.c
  1.40      +2 -2      src/sys/i386/acpica/acpi_machdep.c
  1.221     +1 -1      src/sys/kern/kern_conf.c
  1.286     +1 -1      src/sys/net/if.c
  1.75      +2 -2      src/sys/net/if_tap.c
  1.166     +2 -2      src/sys/net/if_tun.c
  1.23      +1 -1      src/sys/netgraph/ng_device.c
  1.34      +1 -1      src/sys/netsmb/smb_dev.c
  1.18      +1 -1      src/sys/security/audit/audit_pipe.c


More information about the cvs-src mailing list